On Tue, Dec 2, 2008 at 1:18 PM, Rick DeNatale <span dir="ltr">&lt;<a href="mailto:rick.denatale@gmail.com">rick.denatale@gmail.com</a>&gt;</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>&nbsp; def make_test_cmd(files_to_test)<br>&nbsp;&nbsp;&nbsp; return &#39;&#39; if files_to_test.empty?<br>&nbsp;&nbsp;&nbsp; return &quot;spec #{files_to_test.keys.flatten.join(&#39; &#39;)} #{add_options_if_present}&quot;<br>

&nbsp; 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>&nbsp; def make_test_cmd(files_to_test)<br>&nbsp;&nbsp;&nbsp; return &#39;&#39; if files_to_test.empty?<br>&nbsp;&nbsp;&nbsp; return &quot;#{ruby} -S #{files_to_test.keys.flatten.join(&#39; &#39;)} #{add_options_if_present}&quot;<br>

&nbsp; 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&#39;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&#39;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>