diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-08-27 15:56:16 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-08-27 15:56:16 -0300 |
commit | d395391e1dfae4531671fbb09911e6b9418474ba (patch) | |
tree | 65d679e11c15de32c18a4303d6dcb9f88f2a0925 /actionpack/test/abstract_unit.rb | |
parent | 286f47f3b034db4550110b9a0f9ff48dda29e807 (diff) | |
parent | c10396b1426fcddea35d88fe865846b8aaab5de4 (diff) | |
download | rails-d395391e1dfae4531671fbb09911e6b9418474ba.tar.gz rails-d395391e1dfae4531671fbb09911e6b9418474ba.tar.bz2 rails-d395391e1dfae4531671fbb09911e6b9418474ba.zip |
Merge commit 'rails/master'
Diffstat (limited to 'actionpack/test/abstract_unit.rb')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index a21b00915e..07ba37c51c 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -62,8 +62,20 @@ module ActionController } Base.session_store = nil + class << Routing + def possible_controllers + @@possible_controllers ||= [] + end + end + class Base include ActionController::Testing + + def self.inherited(klass) + name = klass.name.underscore.sub(/_controller$/, '') + ActionController::Routing.possible_controllers << name unless name.blank? + super + end end Base.view_paths = FIXTURE_LOAD_PATH |