Commit 235be3068ffbfad4cc9500d5ae44a8194fc62a49

Authored by AntonioTerceiro
1 parent 68d2269b

ActionItem8: showing Leo how to use mocha

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@407 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/functional/content_viewer_controller_test.rb
... ... @@ -16,7 +16,9 @@ class ContentViewerControllerTest < Test::Unit::TestCase
16 16  
17 17 def test_should_display_homepage
18 18 uses_host 'anhetegua.net'
19   - Profile.create!(:identifier => 'aprofile', :name => "A profile")
  19 +
  20 + Comatose::Page.expects(:find_by_path).with('aprofile').returns(Comatose::Page.new)
  21 +
20 22 get :view_page, :profile => 'aprofile', :page => []
21 23 assert_response :success
22 24 end
... ...