On Tue, Dec 2, 2008 at 1:18 PM, Rick DeNatale <span dir="ltr"><<a href="mailto:rick.denatale@gmail.com">rick.denatale@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Okay,<br><br>If I add this to my .autospec file<br><br>class Autotest::Rspec<br><br> def make_test_cmd(files_to_test)<br> return '' if files_to_test.empty?<br> return "spec #{files_to_test.keys.flatten.join(' ')} #{add_options_if_present}"<br>
end<br>end<br><br>It works.<br><br>This replaces a method defined in the rspec gem in lib/autotest/rspec.rb<br><br> def make_test_cmd(files_to_test)<br> return '' if files_to_test.empty?<br> return "#{ruby} -S #{files_to_test.keys.flatten.join(' ')} #{add_options_if_present}"<br>
end<br><br><br>I guess I need to file a bug report?!?<div><div></div><div class="Wj3C7c"></div></div></blockquote><div><br>After investigating github, it looks like a slightly different <br>fix for this is already in the works.<br>
<a href="http://github.com/dchelimsky/rspec/commit/d6029bd91a08ce87ad10c917bfb7b4c75645bf79">http://github.com/dchelimsky/rspec/commit/d6029bd91a08ce87ad10c917bfb7b4c75645bf79</a> <br><br>although it will only work if it's in the gem code rather than in .autotest (it finds the spec command file path relative to the source file).<br>
<br>So for the time being, I'll just use my .autotest patch<br></div></div><br>-- <br>Rick DeNatale<br><br>My blog on Ruby<br><a href="http://talklikeaduck.denhaven2.com/">http://talklikeaduck.denhaven2.com/</a><br>