diff options
Diffstat (limited to 'test/functional/content_controller_test.rb')
| -rw-r--r-- | test/functional/content_controller_test.rb | 6 |
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 |
