uninitialized constant Test::Unit::TestResult::TestResultFailureSupport
Posted
by Vitaly Kushner
on Stack Overflow
See other posts from Stack Overflow
or by Vitaly Kushner
Published on 2009-10-05T13:12:59Z
Indexed on
2010/05/14
20:54 UTC
Read the original article
Hit count: 347
I get the error in subj when I'm trying to run specs or generators in a fresh rails project.
This happens when I add shoulda to the mix.
I added the following in the config/environment.rb:
config.gem 'rspec', :version => '1.2.6', :lib => false
config.gem 'rspec-rails', :version => '1.2.6', :lib => false
config.gem "thoughtbot-shoulda", :version => "2.10.2", :lib => 'shoulda', :source => "http://gems.github.com"
I'm on OSX.
- ruby 1.8.6 (2008-08-11 patchlevel 287)
- gems 1.3.5
- rails 2.3.4
- rspec - 1.2.6
- shoulda - 2.10.2
- test-unit - 2.0.3
I'm aware of this and adding config.gem 'test-unit', :lib => 'test/unit'
indeed solves the genrator problem as it doesn't throw an exception, but it prints 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
at the end of the run so I suppose it tries to run tests which is unexpected and undesired, also the specs stop to run at all, seems like rspec is not running at all, when running rake spec
I get the test-unit output again (with 0 tests as there are only specs, no tests defined)
© Stack Overflow or respective owner