Rspec not finding Test::Unit::TestCase::Assertions #484

Closed
cocoahero opened this Issue Jan 16, 2012 · 3 comments

Projects

None yet

3 participants

@cocoahero

Just created a brand new rails app and added rspec-rails and guard to the Gemfile. I started up Guard and got this backtrace.

/Users/jbaker/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit/testcase.rb:9:in `<class:TestCase>': uninitialized constant Test::Unit::TestCase::Assertions (NameError)
    from /Users/jbaker/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit/testcase.rb:8:in `<module:Unit>'
    from /Users/jbaker/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit/testcase.rb:4:in `<module:Test>'
    from /Users/jbaker/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit/testcase.rb:3:in `<top (required)>'
    from /Users/jbaker/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit.rb:5:in `<top (required)>'
    from /Users/jbaker/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/test/unit/assertions.rb:4:in `<top (required)>'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-rails-2.8.1/lib/rspec/rails/adapters.rb:2:in `<top (required)>'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-rails-2.8.1/lib/rspec/rails.rb:10:in `<top (required)>'
    from /Users/jbaker/Development/Projects/myapp/spec/spec_helper.rb:4:in `<top (required)>'
    from /Users/jbaker/Development/Projects/myapp/spec/requests/tasks_spec.rb:1:in `require'
    from /Users/jbaker/Development/Projects/myapp/spec/requests/tasks_spec.rb:1:in `<top (required)>'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `block in load_spec_files'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `map'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/configuration.rb:698:in `load_spec_files'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:80:in `run_in_process'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:69:in `run'
    from /Users/jbaker/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.8.0/lib/rspec/core/runner.rb:10:in `block in autorun'

Note that I am running ruby 1.9.3-p0 and rspec-rails 2.8.1.

Any ideas?

@justinko

Hello, you just need to remove the gem 'turn' from your Gemfile.

rspec/rspec-core#482

@justinko justinko closed this Jan 16, 2012
@cocoahero

Update:

It seems to be related to the turn gem. Not sure why, but when I comment it out/in in my gemfile, the error goes away and back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment