From 5273b18eac02533b11c5b69d27f36fe8c25e0186 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 31 Jan 2009 23:12:55 +0100 Subject: additional tests and fixtures --- test/functional/content_controller_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/functional/content_controller_test.rb') diff --git a/test/functional/content_controller_test.rb b/test/functional/content_controller_test.rb index 15e1299..76a9b24 100644 --- a/test/functional/content_controller_test.rb +++ b/test/functional/content_controller_test.rb @@ -14,8 +14,10 @@ class ContentControllerTest < ActionController::TestCase def test_rendering_a_page assert Node.valid? - assert_not_nil Node.find_by_slug("my_first_page") - get :render_page, :language => 'de', :page_path => ["root", "my_first_page"] + assert_not_nil first_child = Node.find_by_slug("first_child") + first_child.pages.create :title => "First Child" + + get :render_page, :language => 'de', :page_path => ["first_child"] assert_response :success assert_equal "layouts/application", @response.layout end -- cgit v1.3