<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -37,7 +37,8 @@ class Autotest::Rspec &lt; Autotest
 
   def make_test_cmd(files_to_test)
     return '' if files_to_test.empty?
-    return &quot;#{ruby} -S #{files_to_test.keys.flatten.join(' ')} #{add_options_if_present}&quot;
+    spec_program = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec'))
+    return &quot;#{ruby} #{spec_program} #{files_to_test.keys.flatten.join(' ')} #{add_options_if_present}&quot;
   end
   
   def add_options_if_present # :nodoc:</diff>
      <filename>lib/autotest/rspec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -60,6 +60,7 @@ HERE
         @rspec_autotest.stub!(:add_options_if_present).and_return &quot;-O spec/spec.opts&quot;
       
         @ruby = @rspec_autotest.ruby
+        @spec_cmd = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec'))
         @options = @rspec_autotest.add_options_if_present
         @files_to_test = {
           :spec =&gt; [&quot;file_one&quot;, &quot;file_two&quot;]
@@ -71,7 +72,7 @@ HERE
       end
     
       it &quot;should make the appropriate test command&quot; do
-        @rspec_autotest.make_test_cmd(@files_to_test).should == &quot;#{@ruby} -S #{@to_test} #{@options}&quot;
+        @rspec_autotest.make_test_cmd(@files_to_test).should == &quot;#{@ruby} #{@spec_cmd} #{@to_test} #{@options}&quot;
       end
 
       it &quot;should return a blank command for no files&quot; do</diff>
      <filename>spec/autotest/rspec_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7bdda7dfddd7060cecc260101bc4fe578e9dcf7b</id>
    </parent>
  </parents>
  <author>
    <name>raggi</name>
    <email>jftucker@gmail.com</email>
  </author>
  <url>http://github.com/raggi/rspec/commit/2538636794e7a27f62065b6a19ddbdc1cec38f5e</url>
  <id>2538636794e7a27f62065b6a19ddbdc1cec38f5e</id>
  <committed-date>2008-11-05T06:22:57-08:00</committed-date>
  <authored-date>2008-11-05T06:22:57-08:00</authored-date>
  <message>Removed incorrect -S flag on autospec commands. Added explicit spec command for ruby to run, guarantee running rspec, even if spec files are very wrong. (closes #507 (http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/507-removal-of-spec-command-in-autotest-breaks-windows))</message>
  <tree>5aca6b5b40c2df6bac1c10388c4742f7ea37dc40</tree>
  <committer>
    <name>raggi</name>
    <email>jftucker@gmail.com</email>
  </committer>
</commit>
