From 0569d067698ede12f18f86b81f7ec8883fcc8195 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 19 Sep 2007 19:49:26 +0000 Subject: [PATCH] ActionItem65: adjusting test --- test/functional/content_viewer_controller_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index e4d519c..ee4fb99 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -17,10 +17,12 @@ class ContentViewerControllerTest < Test::Unit::TestCase def test_should_display_homepage uses_host 'anhetegua.net' - Article.expects(:find_by_path).with('aprofile').returns(Article.new) + a = Article.new + Article.expects(:find_by_path).with('aprofile').returns(a) get :view_page, :profile => 'aprofile', :page => [] assert_response :success + assert_equal a, assigns(:page) end def test_should_get_not_found_error_for_unexisting_page -- libgit2 0.21.2