From bb4378404ddb5f9aac69f84a5b613df147009aa4 Mon Sep 17 00:00:00 2001 From: wangjohn Date: Mon, 3 Jun 2013 20:57:01 -0700 Subject: 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. --- railties/test/application/rake_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/test/application/rake_test.rb') 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` }) -- cgit v1.2.3