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:
parent
2370e87ae0
commit
420004e030
@ -486,7 +486,7 @@ class IntegrationTest < ActiveSupport::TestCase
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user