diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-20 14:44:48 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-20 14:44:48 +0100 |
commit | cae1768c6a0e3d1cd4a2c2d836ef213438689db6 (patch) | |
tree | 9facc64841105b01a48d35cee9ccf26aefedeb71 /actionpack/test | |
parent | 9f3f2b2e070529d84fa750cabec031b418c0d16f (diff) | |
download | rails-cae1768c6a0e3d1cd4a2c2d836ef213438689db6.tar.gz rails-cae1768c6a0e3d1cd4a2c2d836ef213438689db6.tar.bz2 rails-cae1768c6a0e3d1cd4a2c2d836ef213438689db6.zip |
Remove deprecated layout lookup.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/abstract/layouts_test.rb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/actionpack/test/abstract/layouts_test.rb b/actionpack/test/abstract/layouts_test.rb index de6f42d826..fc25718d9e 100644 --- a/actionpack/test/abstract/layouts_test.rb +++ b/actionpack/test/abstract/layouts_test.rb @@ -57,11 +57,8 @@ module AbstractControllerTests layout "hello_override" end - class WithNilChild < WithString - layout nil - end - class WithStringImpliedChild < WithString + layout nil end class WithChildOfImplied < WithStringImpliedChild @@ -258,20 +255,14 @@ module AbstractControllerTests test "when a child controller has an implied layout, use that layout and not the parent controller layout" do controller = WithStringImpliedChild.new - assert_deprecated { controller.process(:index) } - assert_equal "With Implied Hello string!", controller.response_body - end - - test "when a child controller specifies layout nil, do not use the parent layout" do - controller = WithNilChild.new controller.process(:index) - assert_equal "Hello string!", controller.response_body + assert_equal "With Implied Hello string!", controller.response_body end test "when a grandchild has no layout specified, the child has an implied layout, and the " \ "parent has specified a layout, use the child controller layout" do controller = WithChildOfImplied.new - assert_deprecated { controller.process(:index) } + controller.process(:index) assert_equal "With Implied Hello string!", controller.response_body end |