lib/parallel_tests/gherkin/runner.rb in parallel_tests-0.16.12 vs lib/parallel_tests/gherkin/runner.rb in parallel_tests-0.16.13

- old
+ new

@@ -5,11 +5,10 @@ module Gherkin class Runner < ParallelTests::Test::Runner class << self def run_tests(test_files, process_number, num_processes, options) - windows = (RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/) #Shellwords doesn't work for windows - sanitized_test_files = test_files.map { |val| windows ? "\"#{val}\"" : Shellwords.escape(val) } + sanitized_test_files = test_files.map { |val| WINDOWS ? "\"#{val}\"" : Shellwords.escape(val) } options = options.merge(:env => {"AUTOTEST" => "1"}) if $stdout.tty? # display color when we are in a terminal cmd = [ executable, (runtime_logging if File.directory?(File.dirname(runtime_log))),