提交 420004e0 编写于 作者: C Carl Lerche

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.
上级 2370e87a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册