lib/parallel_tests/gherkin/runner.rb in parallel_tests-1.1.1 vs lib/parallel_tests/gherkin/runner.rb in parallel_tests-1.2.0

- old
+ new

@@ -22,11 +22,11 @@ cmd = [ executable, (runtime_logging if File.directory?(File.dirname(runtime_log))), cucumber_opts(options[:test_options]), *sanitized_test_files - ].compact.join(' ') + ].compact.reject(&:empty?).join(' ') execute_command(cmd, process_number, num_processes, options) end def test_file_name @test_file_name || 'feature' @@ -88,19 +88,19 @@ end end def runtime_logging - " --format ParallelTests::Gherkin::RuntimeLogger --out #{runtime_log}" + "--format ParallelTests::Gherkin::RuntimeLogger --out #{runtime_log}" end def runtime_log "tmp/parallel_runtime_#{name}.log" end def determine_executable case - when File.exists?("bin/#{name}") + when File.exist?("bin/#{name}") "bin/#{name}" when ParallelTests.bundler_enabled? "bundle exec #{name}" when File.file?("script/#{name}") "script/#{name}"