diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-11 12:58:37 +0200 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-09-11 23:26:17 +1000 |
commit | 11710c0d7d9e9c86a1a3be069bed8819a6bcbafa (patch) | |
tree | 443d49f63f5f3d11a58e0a1b020b46072091b339 /railties | |
parent | b3f6c41e16b46273ede8ae26b5bf8d931057720a (diff) | |
download | rails-11710c0d7d9e9c86a1a3be069bed8819a6bcbafa.tar.gz rails-11710c0d7d9e9c86a1a3be069bed8819a6bcbafa.tar.bz2 rails-11710c0d7d9e9c86a1a3be069bed8819a6bcbafa.zip |
Fix routing test
Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
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 |