Initialize a new instance of Rails.application during integration tests

This is to fix the AWDWR tests until the application object is refactored to be a singleton.
This commit is contained in:
Carl Lerche 2009-09-30 12:39:26 -07:00
parent 2370e87ae0
commit 420004e030
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ module ActionDispatch
def self.app
# DEPRECATE Rails application fallback
# This should be set by the initializer
@@app || (defined?(Rails.application) && Rails.application) || nil
@@app || (defined?(Rails.application) && Rails.application.new) || nil
end
def self.app=(app)