<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -36,37 +36,10 @@ class Autotest::Rspec &lt; Autotest
   end
 
   def make_test_cmd(files_to_test)
-    return &quot;#{ruby} -S #{spec_command} #{add_options_if_present} #{files_to_test.keys.flatten.join(' ')}&quot;
+    return &quot;#{ruby} -S #{files_to_test.keys.flatten.join(' ')} #{add_options_if_present}&quot;
   end
   
   def add_options_if_present # :nodoc:
     File.exist?(&quot;spec/spec.opts&quot;) ? &quot;-O spec/spec.opts &quot; : &quot;&quot;
   end
-
-  # Finds the proper spec command to use.  Precendence is set in the
-  # lazily-evaluated method spec_commands.  Alias + Override that in
-  # ~/.autotest to provide a different spec command then the default
-  # paths provided.
-  def spec_command(separator=File::ALT_SEPARATOR)
-    unless defined? @spec_command then
-      @spec_command = spec_commands.find { |cmd| File.exists? cmd }
-
-      raise RspecCommandError, &quot;No spec command could be found!&quot; unless @spec_command
-
-      @spec_command.gsub! File::SEPARATOR, separator if separator
-    end
-    @spec_command
-  end
-
-  # Autotest will look for spec commands in the following
-  # locations, in this order:
-  #
-  #   * bin/spec
-  #   * default spec bin/loader installed in Rubygems
-  def spec_commands
-    [
-      File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec')),
-      File.join(Config::CONFIG['bindir'], 'spec')
-    ]
-  end
 end</diff>
      <filename>lib/autotest/rspec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -37,62 +37,6 @@ HERE
   end
 
   describe Rspec do
-    describe &quot;selection of rspec command&quot; do
-      include AutotestHelper
-    
-      before(:each) do
-        common_setup
-        @rspec_autotest = Rspec.new
-      end
-    
-      it &quot;should try to find the spec command if it exists in ./bin and use it above everything else&quot; do
-        File.stub!(:exists?).and_return true
-
-        spec_path = File.expand_path(&quot;#{File.dirname(__FILE__)}/../../bin/spec&quot;)
-        File.should_receive(:exists?).with(spec_path).and_return true
-        @rspec_autotest.spec_command.should == spec_path
-      end
-
-      it &quot;should otherwise select the default spec command in gem_dir/bin/spec&quot; do
-        @rspec_autotest.stub!(:spec_commands).and_return [&quot;/foo/spec&quot;]
-        Config::CONFIG.stub!(:[]).and_return &quot;/foo&quot;
-        File.should_receive(:exists?).with(&quot;/foo/spec&quot;).and_return(true)
-
-        @rspec_autotest.spec_command.should == &quot;/foo/spec&quot;
-      end
-    
-      it &quot;should raise an error if no spec command is found at all&quot; do
-        File.stub!(:exists?).and_return false
-      
-        lambda {
-          @rspec_autotest.spec_command
-        }.should raise_error(RspecCommandError, &quot;No spec command could be found!&quot;)
-      end
-    end
-    
-    describe &quot;selection of rspec command (windows compatibility issues)&quot; do
-      include AutotestHelper
-    
-      before(:each) do
-        common_setup
-      end
-    
-      it &quot;should use the ALT_SEPARATOR if it is non-nil&quot; do
-        @rspec_autotest = Rspec.new
-        spec_command = File.expand_path(&quot;#{File.dirname(__FILE__)}/../../bin/spec&quot;)
-        @rspec_autotest.stub!(:spec_commands).and_return [spec_command]
-        @rspec_autotest.spec_command(@windows_alt_separator).should == spec_command.gsub('/', @windows_alt_separator)
-      end
-    
-      it &quot;should not use the ALT_SEPATOR if it is nil&quot; do
-        @windows_alt_separator = nil
-        @rspec_autotest = Rspec.new
-        spec_command = File.expand_path(&quot;#{File.dirname(__FILE__)}/../../bin/spec&quot;)
-        @rspec_autotest.stub!(:spec_commands).and_return [spec_command]
-        @rspec_autotest.spec_command.should == spec_command
-      end
-    end
-
     describe &quot;adding spec.opts --options&quot; do 
       before(:each) do
         @rspec_autotest = Rspec.new
@@ -116,7 +60,6 @@ HERE
         @rspec_autotest.stub!(:add_options_if_present).and_return &quot;-O spec/spec.opts&quot;
       
         @ruby = @rspec_autotest.ruby
-        @spec_command = @rspec_autotest.spec_command
         @options = @rspec_autotest.add_options_if_present
         @files_to_test = {
           :spec =&gt; [&quot;file_one&quot;, &quot;file_two&quot;]
@@ -126,16 +69,9 @@ HERE
         @files_to_test.stub!(:keys).and_return @files_to_test[:spec]
         @to_test = @files_to_test.keys.flatten.join ' '
       end
-
-      it &quot;should contain the various commands, ordered by preference&quot; do
-        Rspec.new.spec_commands.should == [
-          File.expand_path(&quot;#{File.dirname(__FILE__)}/../../bin/spec&quot;),
-          &quot;#{Config::CONFIG['bindir']}/spec&quot;
-        ]
-      end
     
       it &quot;should make the apropriate test command&quot; do
-        @rspec_autotest.make_test_cmd(@files_to_test).should == &quot;#{@ruby} -S #{@spec_command} #{@options} #{@to_test}&quot;
+        @rspec_autotest.make_test_cmd(@files_to_test).should == &quot;#{@ruby} -S #{@to_test} #{@options}&quot;
       end
     end
   </diff>
      <filename>spec/autotest/rspec_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>74fd2a7e6893e95a6d4706b1dcf209e436cf7d1e</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </author>
  <url>http://github.com/jpshackelford/rspec/commit/1aca72d0c5b5dc92c1ac9a4b94ccb8f6961067d2</url>
  <id>1aca72d0c5b5dc92c1ac9a4b94ccb8f6961067d2</id>
  <committed-date>2008-07-12T16:09:07-07:00</committed-date>
  <authored-date>2008-07-12T16:09:07-07:00</authored-date>
  <message>removed spec_command from autotest/rspec (ruby works just fine)</message>
  <tree>e7191449c0477a483c292c2325d8fee7cd2de0ce</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
