<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hi,<br><br>Thanks for the info, Luis.&nbsp; I am glad that they fixed the calling a batch file issue.&nbsp; I have had to handle this myself in several different situations.<br><br>I do have one additional question.&nbsp; It sounds like your setup is very similar to ours.&nbsp; Is your project new or did you upgrade?&nbsp; Do you run autospec or autotest from the command line?&nbsp; It seems like running autotest directly should still work given the history comment, but I could not get things to fly until I started using autospec.&nbsp; Just curious.<br><br>Thanks,<br>Chuck<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Luis Lavena
 &lt;luislavena@gmail.com&gt;<br>To: rspec-users &lt;rspec-users@rubyforge.org&gt;<br>Cc: RSpec Developers Mailing List &lt;rspec-devel@rubyforge.org&gt;<br>Sent: Friday, July 11, 2008 3:29:04 PM<br>Subject: Re: [rspec-users] Getting RSpec 1.1.4+ to Work with Autotest (ZenTest 3.10.0) on Windows (Win32)<br><br>
On Fri, Jul 11, 2008 at 8:33 PM, Charles Grindel &lt;<a ymailto="mailto:cgrindel@yahoo.com" href="mailto:cgrindel@yahoo.com">cgrindel@yahoo.com</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; After upgrading to Rails 2.1, RSpec 1.1.4+ and ZenTest 3.10.0, autotest<br>&gt; would no longer find any of my specs on my Windows development machine.<br>&gt; Some Googling directed me to a very recent update in the History.txt file<br>&gt; for rspec-fails:<br>&gt;<br>&gt; IMPORTANT: use 'script/autospec' (or just 'autospec' if you have the rspec<br>&gt; gem<br>&gt; installed) instead of 'autotest'. We changed the way autotest discovers<br>&gt; rspec<br>&gt; so the autotest executable won't automatically load rspec anymore. This<br>&gt; allows<br>&gt; rspec to live side by side other spec frameworks without always co-opting<br>&gt; autotest through autotest's discovery mechanism.<br>&gt;<br><br>Dunno if this funny, but I'm running right now with the exact
 same<br>combination of components and autotest picks my updated spec and files<br>(even the ones in lib).<br><br>&gt; My project is running RSpec and Rspec-rails as plugins, but I gave it a<br>&gt; shot.&nbsp; Unfortunately, autotest would not even start.&nbsp; A quick inspection of<br>&gt; autospec revealed that the call to autotest in this file will not work on<br>&gt; Windows, as is.&nbsp; In the Windows environment, autotest is a batch file which<br>&gt; must be executed with the "call" command when shelling out from a Ruby<br>&gt; script.&nbsp; So, I updated my autospec file to the following:<br>&gt;<br>&gt; #!/usr/bin/env ruby<br>&gt; ENV['RSPEC'] = 'true'<br>&gt; autotest_cmd = 'autotest'<br>&gt; autotest_cmd = "call #{autotest_cmd}" if RUBY_PLATFORM =~ /mswin/<br>&gt; system autotest_cmd<br>&gt;<br>&gt; I have submitted a ticket requesting that autospec be updated accordingly.<br>&gt;<br>&gt; <a
 href="http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/466-update-autospec-to-work-on-windows" target="_blank">http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/466-update-autospec-to-work-on-windows</a><br>&gt;<br><br>The upcoming version of Ruby (1.8.6 after patchlevel 114) will include<br>a fix for this issue, which I described in this post (less quirks for<br>us section):<br><br><a href="http://blog.mmediasys.com/2008/04/24/contributions-speedup-and-less-quirks-for-us/" target="_blank">http://blog.mmediasys.com/2008/04/24/contributions-speedup-and-less-quirks-for-us/</a><br><br>So there is no need to prepend 'call' or ".bat" on Windows anymore<br>(also, you should consider mswin AND mingw as valid platforms ;-)<br><br>Regards,<br>-- <br>Luis Lavena<br>AREA 17<br>-<br>Human beings, who are almost unique in having the ability to learn from<br>the experience of others, are also remarkable for their apparent<br>disinclination to do
 so.<br>Douglas Adams<br>_______________________________________________<br>rspec-users mailing list<br><a ymailto="mailto:rspec-users@rubyforge.org" 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></div></div></div></body></html>