<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt">Hi,<br><br>After upgrading to Rails 2.1, RSpec 1.1.4+ and ZenTest 3.10.0, autotest would no longer find any of my specs on my Windows development machine.&nbsp; Some Googling directed me to a very recent update in the History.txt file for rspec-fails:<br><br>IMPORTANT: use 'script/autospec' (or just 'autospec' if you have the rspec gem<br>installed) instead of 'autotest'. We changed the way autotest discovers rspec<br>so the autotest executable won't automatically load rspec anymore. This allows<br>rspec to live side by side other spec frameworks without always co-opting<br>autotest through autotest's discovery mechanism.<br><br>My project is running RSpec and Rspec-rails as plugins, but I gave it a shot.&nbsp; Unfortunately, autotest would not even start.&nbsp; A quick inspection of autospec revealed that
 the call to autotest in this file will not work on Windows, as is.&nbsp; In the Windows environment, autotest is a batch file which must be executed with the "call" command when shelling out from a Ruby script.&nbsp; So, I updated my autospec file to the following:<br><br>#!/usr/bin/env ruby<br>ENV['RSPEC'] = 'true'<br>autotest_cmd = 'autotest'<br>autotest_cmd = "call #{autotest_cmd}" if RUBY_PLATFORM =~ /mswin/<br>system autotest_cmd<br><br>I have submitted a ticket requesting that autospec be updated accordingly.<br><br>http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/466-update-autospec-to-work-on-windows<br><br>Thanks,<br>Chuck<br></div></body></html>