Update autospec to work on Windows
Reported by Chuck Grindel | July 11th, 2008 @ 08:32 PM | in 1.1.5
On Windows, the call to autotest in the autospec file does not work, because autotest is a batch file which turns around and calls the autotest ruby script. When shelling out from a Ruby script to call a batch file, one must use the "call" command. Below is an updated version of the file.
#!/usr/bin/env ruby
ENV['RSPEC'] = 'true'
autotest_cmd = 'autotest'
autotest_cmd = "call #{autotest_cmd}" if RUBY_PLATFORM =~ /mswin/
system autotest_cmd
Comments and changes to this ticket
-
David Chelimsky July 11th, 2008 @ 08:44 PM
- → Milestone changed from No-Milestone-Assigned to 1.1.5
- → Tag changed from to autotest windows
- → Assigned user changed from to David Chelimsky
-
David Chelimsky July 12th, 2008 @ 04:55 AM
- → State changed from new to wontfix
Chuck - given Luis Lavena's response (http://groups.google.com/group/r... it looks like we don't really need this.
-

Chuck Grindel July 13th, 2008 @ 11:55 PM
Hi, David,
Thanks for the heads up. It definitely sounds reasonable to not address this in RSpec.
BTW, thanks for all of your efforts with RSpec. It really has helped us create better tests and better software as a result.
Thanks,
Chuck
----- Original Message ----
From: Lighthouse
Sent: Friday, July 11, 2008 10:55:27 PM
Subject: [rspec #466] Update autospec to work on Windows
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Behaviour Driven Development for Ruby.
