2 examples, 0 failures
: undefined method run?' for Test::Unit:Module (NoMethodError) from C:/ruby-186-26/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:192:inregister_at_exit_hook’
from samples/lab6-refactored.rb:4
As a result, my rspec script gives me this error. Any suggestions? Increase
the guard on the failing method call?
Bret, try requiring test/unit before requiring rspec.
I think this has to do with Rails trying to reopen a test/unit module
that doesn’t exists (since test/unit was not required), so it defines
the Test module instead.
2 examples, 0 failures
: undefined method run?' for Test::Unit:Module (NoMethodError) from C:/ruby-186-26/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/ runner.rb:192:inregister_at_exit_hook’
from samples/lab6-refactored.rb:4
File it on lighthouse. I cued David into this bug @ rubyconf, and he
seemed somewhat surprised by it. No doubt, it has something to do
with active_record/active_support requiring test/unit.
File it on lighthouse. I cued David into this bug @ rubyconf, and he seemed
somewhat surprised by it. No doubt, it has something to do with
active_record/active_support requiring test/unit.
Fixed:
Cheers,
David
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.