diff options
author | Yehuda Katz and Carl Lerche <wycats@gmail.com> | 2009-04-07 17:57:20 -0700 |
---|---|---|
committer | Yehuda Katz and Carl Lerche <wycats@gmail.com> | 2009-04-07 17:57:20 -0700 |
commit | 3cecbc21e37f772a72917f80c53a7645f81d94c5 (patch) | |
tree | fbdb4e9a6934e066ecc14e06b7f76202d54e29b1 /actionpack/test/new_base/test_helper.rb | |
parent | 95c9718118bc0342ddb320f23b5e0a17fb12b7ad (diff) | |
download | rails-3cecbc21e37f772a72917f80c53a7645f81d94c5.tar.gz rails-3cecbc21e37f772a72917f80c53a7645f81d94c5.tar.bz2 rails-3cecbc21e37f772a72917f80c53a7645f81d94c5.zip |
Get Base2 layouts to work :)
Diffstat (limited to 'actionpack/test/new_base/test_helper.rb')
-rw-r--r-- | actionpack/test/new_base/test_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/new_base/test_helper.rb b/actionpack/test/new_base/test_helper.rb index 5edd7b4f63..d29449ddc1 100644 --- a/actionpack/test/new_base/test_helper.rb +++ b/actionpack/test/new_base/test_helper.rb @@ -69,6 +69,15 @@ class Rack::TestCase < ActiveSupport::TestCase end ActionController::Routing.use_controllers!(controllers) + + # Move into a bootloader + AbstractController::Base.subclasses.each do |klass| + klass = klass.constantize + next unless klass < AbstractController::Layouts + klass.class_eval do + _write_layout_method + end + end end def app @@ -123,6 +132,9 @@ class Rack::TestCase < ActiveSupport::TestCase end +class ::ApplicationController < ActionController::Base2 +end + class SimpleRouteCase < Rack::TestCase setup do ActionController::Routing::Routes.draw do |map| |