summaryrefslogtreecommitdiff
path: root/test/functional/content_controller_test.rb
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-01-31 23:12:55 +0100
committerhukl <hukl@eight.local>2009-01-31 23:12:55 +0100
commit5273b18eac02533b11c5b69d27f36fe8c25e0186 (patch)
treec04b70c639b0d9987c60006d8cbf77a13c49cf43 /test/functional/content_controller_test.rb
parent673d7da787a8bf5c6477871557f27352edbb5a64 (diff)
additional tests and fixtures
Diffstat (limited to 'test/functional/content_controller_test.rb')
-rw-r--r--test/functional/content_controller_test.rb6
1 files changed, 4 insertions, 2 deletions
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
14 14
15 def test_rendering_a_page 15 def test_rendering_a_page
16 assert Node.valid? 16 assert Node.valid?
17 assert_not_nil Node.find_by_slug("my_first_page") 17 assert_not_nil first_child = Node.find_by_slug("first_child")
18 get :render_page, :language => 'de', :page_path => ["root", "my_first_page"] 18 first_child.pages.create :title => "First Child"
19
20 get :render_page, :language => 'de', :page_path => ["first_child"]
19 assert_response :success 21 assert_response :success
20 assert_equal "layouts/application", @response.layout 22 assert_equal "layouts/application", @response.layout
21 end 23 end