diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-30 12:30:15 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-30 12:30:15 +0100 |
commit | 431fc3c81735f8873e52f4a1942a5ac761d18cc9 (patch) | |
tree | 5ba5c23ef986b4a4b17172781d0404074b9e12f2 /railties/test/application | |
parent | 766e857bea9bd29f27be1ccd888eec066f2e3f04 (diff) | |
download | rails-431fc3c81735f8873e52f4a1942a5ac761d18cc9.tar.gz rails-431fc3c81735f8873e52f4a1942a5ac761d18cc9.tar.bz2 rails-431fc3c81735f8873e52f4a1942a5ac761d18cc9.zip |
Improve railtie deprecation messages.
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 57bd797ef0..60d644bd59 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -37,6 +37,13 @@ module ApplicationTests require "#{app_path}/config/environment" assert_respond_to Rails::Application, :routes_reloader assert_equal Rails::Application.routes_reloader, Rails.application.routes_reloader + assert_equal Rails::Application.routes_reloader, AppTemplate::Application.routes_reloader + end + + test "Rails::Application responds to paths" do + require "#{app_path}/config/environment" + assert_respond_to AppTemplate::Application, :paths + assert_equal AppTemplate::Application.paths.app.views.to_a, ["#{app_path}/app/views"] end test "the application root is set correctly" do |