1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Yves Senn 2014-11-25 13:53:57 +01:00
parent 0715d8c368
commit 7836e887d7

View file

@ -208,7 +208,7 @@ module ApplicationTests
end end
def run_test_file(name, options = {}) 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 end
def ruby(*args) def ruby(*args)