lib/minitest/utils/reporter.rb in minitest-utils-0.4.2 vs lib/minitest/utils/reporter.rb in minitest-utils-0.4.3
- old
+ new
@@ -106,10 +106,11 @@
return if location.empty?
command = if defined?(Rails) && Rails.version >= "5.0.0"
%[bin/rails test #{location}:#{line}]
else
- %[rake TEST=#{location} TESTOPTS="--name=#{result.name}"]
+ bundle = "bundle exec " if defined?(Bundler)
+ %[#{bundle}rake TEST=#{location} TESTOPTS="--name=#{result.name}"]
end
str = "\n"
str << color(command, :red)