Commit 0569d067698ede12f18f86b81f7ec8883fcc8195
1 parent
947f0a69
Exists in
master
and in
22 other branches
ActionItem65: adjusting test
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@502 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
test/functional/content_viewer_controller_test.rb
... | ... | @@ -17,10 +17,12 @@ class ContentViewerControllerTest < Test::Unit::TestCase |
17 | 17 | def test_should_display_homepage |
18 | 18 | uses_host 'anhetegua.net' |
19 | 19 | |
20 | - Article.expects(:find_by_path).with('aprofile').returns(Article.new) | |
20 | + a = Article.new | |
21 | + Article.expects(:find_by_path).with('aprofile').returns(a) | |
21 | 22 | |
22 | 23 | get :view_page, :profile => 'aprofile', :page => [] |
23 | 24 | assert_response :success |
25 | + assert_equal a, assigns(:page) | |
24 | 26 | end |
25 | 27 | |
26 | 28 | def test_should_get_not_found_error_for_unexisting_page | ... | ... |