diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/routing_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb index b4ff14409f..bf2af11e9f 100644 --- a/railties/test/application/routing_test.rb +++ b/railties/test/application/routing_test.rb @@ -218,11 +218,9 @@ module ApplicationTests test 'routes are loaded just after initialization' do require "#{app_path}/config/application" - ActiveSupport.on_load(:after_initialize) do - ::InitializeRackApp = lambda { |env| [200, {}, ["InitializeRackApp"]] } - end - app_file 'config/routes.rb', <<-RUBY + InitializeRackApp = lambda { |env| [200, {}, ["InitializeRackApp"]] } + AppTemplate::Application.routes.draw do match 'foo', :to => ::InitializeRackApp end |