diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index 77b52f1..45515b7 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -16,7 +16,9 @@ class ContentViewerControllerTest < Test::Unit::TestCase def test_should_display_homepage uses_host 'anhetegua.net' - Profile.create!(:identifier => 'aprofile', :name => "A profile") + + Comatose::Page.expects(:find_by_path).with('aprofile').returns(Comatose::Page.new) + get :view_page, :profile => 'aprofile', :page => [] assert_response :success end -- libgit2 0.21.2