[Ruby] Autotest, rspec & Leopard
Alex Vollmer
alex.vollmer at gmail.com
Sat Dec 1 22:31:50 PST 2007
I'm sure this has come up for somebody else, but I haven't found the
answer yet. I upgraded to Leopard and decided to go with the ruby
install (including gems) that comes with my shiny new OS. However, now
I can't run autotest with rspec. When I do I get this error:
loading autotest/rspec
/Library/Ruby/Gems/1.8/gems/rspec-1.0.8/lib/autotest/rspec.rb:80:in
`spec_command': No spec command could be found! (RspecCommandError)
from /Library/Ruby/Gems/1.8/gems/rspec-1.0.8/lib/autotest/rspec.rb:
10:in `initialize'
from /Library/Ruby/Gems/1.8/gems/ZenTest-3.6.1/lib/autotest.rb:123:in
`new'
from /Library/Ruby/Gems/1.8/gems/ZenTest-3.6.1/lib/autotest.rb:123:in
`run'
from /Library/Ruby/Gems/1.8/gems/ZenTest-3.6.1/bin/autotest:48
from /usr/bin/autotest:16:in `load'
from /usr/bin/autotest:16
I've tried overriding the Autotest::Rspec.spec_commands method in my
~/.autotest file with the correct path, but I just get a warning that
the method has been redefined and my changes don't appear to take hold:
loading autotest/rspec
/Library/Ruby/Gems/1.8/gems/rspec-1.0.8/lib/autotest/rspec.rb:88:
warning: method redefined; discarding old spec_commands
/Library/Ruby/Gems/1.8/gems/rspec-1.0.8/lib/autotest/rspec.rb:80:in
`spec_command': No spec command could be found! (RspecCommandError)
from /Library/Ruby/Gems/1.8/gems/rspec-1.0.8/lib/autotest/rspec.rb:
10:in `initialize'
from /Library/Ruby/Gems/1.8/gems/ZenTest-3.6.1/lib/autotest.rb:123:in
`new'
from /Library/Ruby/Gems/1.8/gems/ZenTest-3.6.1/lib/autotest.rb:123:in
`run'
from /Library/Ruby/Gems/1.8/gems/ZenTest-3.6.1/bin/autotest:48
from /usr/bin/autotest:16:in `load'
from /usr/bin/autotest:16
I found a post at http://www.luisdelarosa.com/2007/11/10/ruby-bugs-on-leopard/
about fiddling with GEM_PATH and GEM_HOME, but these didn't make any
difference. What are other Leopard-enabled folks doing? Should I
abandon Apple's packaging and go back to MacPorts?
TIA,
Alex V.
----
Musings & Notes
http://blog.livollmers.net
More information about the Ruby
mailing list