aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/test_runner_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb
index 17333b6ac9..a01325fdb8 100644
--- a/railties/test/application/test_runner_test.rb
+++ b/railties/test/application/test_runner_test.rb
@@ -593,7 +593,7 @@ module ApplicationTests
file = create_test_for_env("development")
results = Dir.chdir(app_path) {
- `ruby -Ilib:test #{file} -e development`.each_line.map { |line| JSON.parse line }
+ `RAILS_ENV=development ruby -Ilib:test #{file}`.each_line.map { |line| JSON.parse line }
}
assert_equal 1, results.length
failures = results.first["failures"]