lib/testrbl.rb in testrbl-0.1.0 vs lib/testrbl.rb in testrbl-0.1.1

- old
+ new

@@ -15,9 +15,11 @@ file, line = argv.first.split(':') run "testrb #{file} #{pattern_from_file(file, line)}" end def self.run(command) + safe_to_bundle_exec = (File.exist?('Gemfile.lock') and File.read('Gemfile.lock').include?(" test-unit ")) + command = "#{"bundle exec " if safe_to_bundle_exec}#{command} --use-color=yes" puts command exec command end private