提交 fa634484 编写于 作者: A Aaron Patterson

use before_setup to set up test instance variables

上级 0acd4a57
......@@ -389,8 +389,12 @@ module Runner
APP_SESSIONS = {}
def app
@app ||= nil
attr_reader :app, :integration_session
def before_setup
super
@app = nil
@integration_session = nil
end
# Reset the current session. This is useful for testing multiple sessions
......@@ -482,11 +486,6 @@ def method_missing(sym, *args, &block)
super
end
end
private
def integration_session
@integration_session ||= nil
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册