提交 5b070116 编写于 作者: K Kasper Timm Hansen

Fix root not being defined on Travis.

上级 26b19a46
......@@ -72,7 +72,12 @@ def format_rerun_snippet(result)
end
def app_root
@app_root ||= defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root
@app_root ||=
if defined?(ENGINE_ROOT)
ENGINE_ROOT
elsif Rails.respond_to?(:root)
Rails.root
end
end
def colored_output?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册