Yea a fix would be amazing. This is knda annoying because now I have to press ctrl-c or something to run that spec.<br><br><div class="gmail_quote">On Sun, Apr 6, 2008 at 12:36 PM, Willem Källman &lt;<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Same problem here, but I guess it has nothing to do with RSpec or the<br>
fact that you are testing a model. Instead, Autotest seems to misbehave.<br>
<br>
Say we have a project directory with these contents:<br>
lib/script.rb<br>
spec/spec_script.rb<br>
spec/spec.opts<br>
<br>
The following is what Autotest does on my system:<br>
After running &#39;$ autotest&#39;<br>
and changing the contents of spec_script.rb, Autotest invokes<br>
/&lt;path_to_ruby&gt;/ruby -S /&lt;path_to_rspec&gt;/rspec-1.1.3/bin/spec -O<br>
spec/spec.opts &nbsp;spec/spec_script.rb<br>
Which is perfectly fine.<br>
However, when I edit and save script.rb, Autotest will call &#39;spec&#39;<br>
without specifying a file: /&lt;path_to_ruby&gt;/ruby -S<br>
/&lt;path_to_rspec&gt;/rspec-1.1.3/bin/spec -O<br>
Just as you described it.<br>
<br>
I&#39;d really love to hear some ideas on how to fix this. Thank you!<br>
<font color="#888888">--<br>
Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br>
</font></blockquote></div><br>