File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
docs /
3
3
spec /tmp
4
4
tags
5
+ .rvmrc
Original file line number Diff line number Diff line change @@ -274,17 +274,17 @@ def $stdout.tty?
274
274
trailing_args = options [ :trailing_args ]
275
275
puts "Will run with: #{ trailing_args } " unless trailing_args . empty?
276
276
277
- # Pass any additional push arguments to the test runner
278
- trailing_args . each { |a | ARGV . push a }
279
277
280
278
# Unfortunately rspec's interface isn't as simple as just requiring the
281
279
# test file that you want to run (suddenly test/unit seems like the less
282
280
# crazy one!).
283
281
if options [ :test_framework ] == :rspec
284
282
# We pretend the filepath came in as an argument and duplicate the
285
283
# behaviour of the `rspec` binary.
286
- ARGV . concat files
284
+ ARGV . concat ( files + trailing_args )
287
285
else
286
+ # Pass any additional push arguments to the test runner
287
+ ARGV . concat trailing_args
288
288
# We require the full path of the file here in the child process.
289
289
files . each { |f | require File . expand_path f }
290
290
end
You can’t perform that action at this time.
0 commit comments