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:
parent
0715d8c368
commit
7836e887d7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue