[rspec-users] Setup for autospec for non-rails project

Rick DeNatale rick.denatale at gmail.com
Tue Dec 2 13:18:18 EST 2008


Okay,

If I add this to my .autospec file

class Autotest::Rspec

  def make_test_cmd(files_to_test)
    return '' if files_to_test.empty?
    return "spec #{files_to_test.keys.flatten.join(' ')}
#{add_options_if_present}"
  end
end

It works.

This replaces a method defined in the rspec gem in lib/autotest/rspec.rb

  def make_test_cmd(files_to_test)
    return '' if files_to_test.empty?
    return "#{ruby} -S #{files_to_test.keys.flatten.join(' ')}
#{add_options_if_present}"
  end


I guess I need to file a bug report?!?

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081202/4ada8968/attachment.html>


More information about the rspec-users mailing list