Topic: rSpec with Autotest error
I am currently making the switch to rSpec. However I have a problem when running rSpec with Autotest. This is the error message I get I launching autotest:
C:\InstantRails\ruby\bin\ruby -rrubygems -e "require 'redgreen'" -S script/spec -O spec/spec.opts spec/models/weather_spec.rb spec/control
lers/weathers_routing_spec.rb spec/views/weathers/edit.html.erb_spec.rb spec/controllers/weathers_controller_spec.rb spec/helpers/weathers_h
elper_spec.rb spec/views/weathers/show.html.erb_spec.rb spec/views/weathers/index.html.erb_spec.rb spec/views/weathers/new.html.erb_spec.rb
invalid option: -O
Test::Unit automatic runner.
Usage: -e [options] [-- untouched arguments]
Has anyone else had this problem?
EDIT: part of the solution can be found here: http://www.ruby-forum.com/topic/139525
But I made changes to my .autotest file, autotest just doesn't care about those changes. What's happening?
EDIT: this strange behaviour happens only in the rails app where I have installed rspec as a plugin. In my other apps when I edit .autotest then the changes take effect.
EDIT: I have destroyed my app and recreated it, and autotest still doesn't care a penny about my .autotest file, that's becoming crazy! I have even deleted the .autotest file, and still it seems to be picking it up from somewhere because it triggers snarl all the time...
EDIT: ok it was fixed by setting correctly the HOME environment variable to Documents and Settings\myname
Last edited by Johnson (2008-02-13 12:10:54)