From 7836e887d70f341a47061fafedcd595b7dfa7320 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Tue, 25 Nov 2014 13:53:57 +0100 Subject: [PATCH] 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. --- railties/test/application/test_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/test/application/test_test.rb b/railties/test/application/test_test.rb index c724c867ec..4d06056280 100644 --- a/railties/test/application/test_test.rb +++ b/railties/test/application/test_test.rb @@ -208,7 +208,7 @@ module ApplicationTests 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)