diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-26 21:59:28 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-26 21:59:28 -0500 |
commit | a6757a02e12aa584bd74dbcde18a7886be8e9029 (patch) | |
tree | 74d3ca8fe45d1bc031371e7735241fa265e42c67 /railties/test | |
parent | 14866fa3d83676d340d94464f50e2e0ea989c3c1 (diff) | |
download | rails-a6757a02e12aa584bd74dbcde18a7886be8e9029.tar.gz rails-a6757a02e12aa584bd74dbcde18a7886be8e9029.tar.bz2 rails-a6757a02e12aa584bd74dbcde18a7886be8e9029.zip |
Move middleware and route configuration from AC::Dispatcher to Rails application object
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/console_app_test.rb | 6 | ||||
-rw-r--r-- | railties/test/fcgi_dispatcher_test.rb | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/railties/test/console_app_test.rb b/railties/test/console_app_test.rb index 7d697d4d05..1437e6d885 100644 --- a/railties/test/console_app_test.rb +++ b/railties/test/console_app_test.rb @@ -5,6 +5,12 @@ require 'action_controller' # console_app uses 'action_controller/integration' require 'rails/dispatcher' require 'rails/console_app' +module Rails + def self.application + ActionController::Routing::Routes + end +end + # console_app sets Test::Unit.run to work around the at_exit hook in test/unit, which kills IRB if Test::Unit.respond_to?(:run=) Test::Unit.run = false diff --git a/railties/test/fcgi_dispatcher_test.rb b/railties/test/fcgi_dispatcher_test.rb index 1e704b862f..4d77a321a0 100644 --- a/railties/test/fcgi_dispatcher_test.rb +++ b/railties/test/fcgi_dispatcher_test.rb @@ -5,6 +5,12 @@ uses_gem "fcgi", "0.8.7" do require 'action_controller' require 'rails/fcgi_handler' +module Rails + def self.application + ActionController::Routing::Routes + end +end + class RailsFCGIHandlerTest < Test::Unit::TestCase def setup @log = StringIO.new |