aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/isolation
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-09-08 06:56:20 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-09-08 06:57:09 +0900
commit39f3ab51e9d9c585dd65c09dcfe9a3ece4521c1f (patch)
tree46f53a1d06e92dfafe1f00cce3b0a66e80de5fc6 /railties/test/isolation
parent241d6a596a88ecaf2387c50d866b00db62a07615 (diff)
downloadrails-39f3ab51e9d9c585dd65c09dcfe9a3ece4521c1f.tar.gz
rails-39f3ab51e9d9c585dd65c09dcfe9a3ece4521c1f.tar.bz2
rails-39f3ab51e9d9c585dd65c09dcfe9a3ece4521c1f.zip
Remove unused `fork` arg for `rails`
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}"