[rspec-users] `exit?': undefined method `run?' for Test::Unit:Module (
Daniel Hoey
lists at ruby-forum.com
Wed Sep 3 01:46:34 EDT 2008
I had the same problem with some of my specs. Solved by adding
require 'test/unit'
to the spec file. Not complete sure why this occurs but the
Test::Unit.run? method is defined in test/unit.rb.
kasutaja wrote:
> Why am I getting this error if running from Netbeans or just from
> command
> line with executing blah_spec.rb? If I run with spec bla blah
> blah_spec.rb
> then it's fine.
>
> .
>
> Finished in 0.264 seconds
>
> 1 example, 0 failures
> c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec.rb:27:in `exit?':
> undefined method `run?' for Test::Unit:Module (NoMethodError)
> from
> c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec/runner.rb:193:in
> `register_at_exit_hook'
> from C:/projects/xpstuff/watir/src/list_sitt.rb:3
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list