diff --git a/test/unit/process_runner_test.rb b/test/unit/process_runner_test.rb
index <HASH>..<HASH> 100644
--- a/test/unit/process_runner_test.rb
+++ b/test/unit/process_runner_test.rb
@@ -92,8 +92,8 @@ class ProcessRunnerTest < Test::Unit::TestCase
   
   def execute_with_open4_and_bad_mode(command, options="")
     assert !File.stat(command).executable?, "File should not be executable to begin"
+    @runner.expects(:update_executable_mode)
     @runner.execute_open4 command, options
-    assert File.stat(command).executable?, "File should be converted to become executable"
     assert_matches /^Hello World/, @runner.read
   end
Updated process runner test to work on Windoze