diff options
author | wangjohn <wangjohn@mit.edu> | 2013-06-03 20:57:01 -0700 |
---|---|---|
committer | wangjohn <wangjohn@mit.edu> | 2013-06-03 21:38:17 -0700 |
commit | bb4378404ddb5f9aac69f84a5b613df147009aa4 (patch) | |
tree | 2e53d1061637167974deef49706882d77c5db1d5 /railties/test/application/rake_test.rb | |
parent | 424fa92b35231a4217574e8012d96a0954659cde (diff) | |
download | rails-bb4378404ddb5f9aac69f84a5b613df147009aa4.tar.gz rails-bb4378404ddb5f9aac69f84a5b613df147009aa4.tar.bz2 rails-bb4378404ddb5f9aac69f84a5b613df147009aa4.zip |
Removing use of subclassed application constant and instead using the
more agnostic Rails.application syntax. This means tests will be more
portable, and won't rely on the existence of a particular subclass.
Diffstat (limited to 'railties/test/application/rake_test.rb')
-rw-r--r-- | railties/test/application/rake_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index cfa5cc1322..dc2684ae0d 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -34,7 +34,7 @@ module ApplicationTests config.middleware.use SuperMiddleware end - AppTemplate::Application.initialize! + Rails.application.initialize! RUBY assert_match("SuperMiddleware", Dir.chdir(app_path){ `rake middleware` }) |