提交 7836e887 编写于 作者: Y Yves Senn

tests, run `test_test.rb` with `RAILS_ENV=test`.

The tests to verify our testing setup used `RAILS_ENV=development`
to execute the tests. Let's keep it as close to a real-world setup
as possible.
上级 0715d8c3
......@@ -208,7 +208,7 @@ def assert_successful_test_run(name)
end
def run_test_file(name, options = {})
ruby '-Itest', "#{app_path}/test/#{name}", options
ruby '-Itest', "#{app_path}/test/#{name}", options.deep_merge(env: {"RAILS_ENV" => "test"})
end
def ruby(*args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册