diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2012-02-28 10:57:28 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2012-02-28 14:42:57 +0400 |
commit | b27c29ef4a26755b8de04686241694ce5ee33724 (patch) | |
tree | 41a114be7cee24e0dff847c1bf0a20393b8b2f3e /actionpack/test/abstract | |
parent | 699ba8ab52973bf0499643235f162734fb644ab7 (diff) | |
download | rails-b27c29ef4a26755b8de04686241694ce5ee33724.tar.gz rails-b27c29ef4a26755b8de04686241694ce5ee33724.tar.bz2 rails-b27c29ef4a26755b8de04686241694ce5ee33724.zip |
Fix layout lookup for anonymous controller
Diffstat (limited to 'actionpack/test/abstract')
-rw-r--r-- | actionpack/test/abstract/layouts_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/abstract/layouts_test.rb b/actionpack/test/abstract/layouts_test.rb index fc25718d9e..e07a6de4a9 100644 --- a/actionpack/test/abstract/layouts_test.rb +++ b/actionpack/test/abstract/layouts_test.rb @@ -299,6 +299,18 @@ module AbstractControllerTests controller.process(:index) assert_equal "Overwrite Hello index!", controller.response_body end + + test "layout for anonymous controller" do + klass = Class.new(WithString) do + def index + render :text => 'index', :layout => true + end + end + + controller = klass.new + controller.process(:index) + assert_equal "With String index", controller.response_body + end end end end |