aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/isolation
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/isolation')
-rw-r--r--railties/test/isolation/abstract_unit.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb
index a4c6fc4e68..b127a3b10b 100644
--- a/railties/test/isolation/abstract_unit.rb
+++ b/railties/test/isolation/abstract_unit.rb
@@ -243,11 +243,9 @@ module TestHelpers
# stderr:: true to pass STDERR output straight to the "real" STDERR.
# By default, the STDERR and STDOUT of the process will be
# combined in the returned string.
- # fork:: false to not use fork even when it's available. By default,
- # when possible, the command is executed in a fork of the current
- # process, avoiding the need to load core Rails libraries anew.
- def rails(*args, allow_failure: false, stderr: false, fork: true)
+ def rails(*args, allow_failure: false, stderr: false)
args = args.flatten
+ fork = true
command = "bin/rails #{Shellwords.join args}#{' 2>&1' unless stderr}"