lib/pork.rb in pork-1.1.0 vs lib/pork.rb in pork-1.1.1
- old
+ new
@@ -60,10 +60,10 @@
@auto = auto
@autorun ||= at_exit do
next unless @auto
Random.srand(ENV['PORK_SEED'].to_i) if ENV['PORK_SEED']
execute_mode(ENV['PORK_MODE']) if ENV['PORK_MODE']
- require "pork/mode/#{execute_mode}" unless execute_mode == :execute
+ require "pork/mode/#{execute_mode}" if execute_mode.to_s != 'execute'
seed
trap
run
stat.report
exit! stat.failures.size + stat.errors.size + ($! && 1).to_i