diff options
author | José Valim <jose.valim@gmail.com> | 2010-10-02 17:45:26 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-02 17:45:26 +0200 |
commit | 7b0c592e38e4b1d370e04d856d245f825dfa9cfe (patch) | |
tree | 0b17024cdbf02adc55bb053254a36a9b6cf2a40c /railties/test/application | |
parent | 609849a0f10ce37d96444f0359ce325b01d916ca (diff) | |
download | rails-7b0c592e38e4b1d370e04d856d245f825dfa9cfe.tar.gz rails-7b0c592e38e4b1d370e04d856d245f825dfa9cfe.tar.bz2 rails-7b0c592e38e4b1d370e04d856d245f825dfa9cfe.zip |
reload_routes! is part of the public API and should not be removed.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/routing_test.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb index e42f5720a9..62589c998d 100644 --- a/railties/test/application/routing_test.rb +++ b/railties/test/application/routing_test.rb @@ -209,7 +209,7 @@ module ApplicationTests end app_file 'config/routes.rb', <<-RUBY - AppTemplate::Application.routes.draw do |map| + AppTemplate::Application.routes.draw do match 'foo', :to => ::InitializeRackApp end RUBY @@ -218,6 +218,13 @@ module ApplicationTests assert_equal "InitializeRackApp", last_response.body end + test 'reload_routes! is part of Rails.application API' do + app("development") + assert_nothing_raised do + Rails.application.reload_routes! + end + end + test 'resource routing with irregular inflection' do app_file 'config/initializers/inflection.rb', <<-RUBY ActiveSupport::Inflector.inflections do |inflect| |