RSpec 2 not working on Rails 3.1.1

Hey,

I updated some Gems and now rspec seems to be broken. The weird thing is
it fails because of Test::Unit which doesnt make much sense to me.

/Users/username/.rvm/gems/[email protected]_project/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53:
warning: already initialized constant WFKV_
/Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/test/unit/testcase.rb:9:in
<class:TestCase>': uninitialized constant Test::Unit::TestCase::Assertions (NameError) from /Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/test/unit/testcase.rb:8:inmodule:Unit
from
/Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/test/unit/testcase.rb:4:in
<module:Test>' from /Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/test/unit/testcase.rb:3:in<top (required)>’
from
/Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/test/unit.rb:5:in
<top (required)>' from /Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/test/unit/assertions.rb:4:in<top (required)>’
from
/Users/username/.rvm/gems/[email protected]_project/gems/rspec-rails-2.6.1/lib/rspec/rails/adapters.rb:2:in
<top (required)>' from /Users/username/.rvm/gems/[email protected]_project/gems/rspec-rails-2.6.1/lib/rspec/rails.rb:10:in<top (required)>’
from /Users/username/Sites/ror_project/spec/spec_helper.rb:4:in <top (required)>' from /Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:inrequire’
from
/Users/username/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in
require' from /Users/username/Sites/ror_project/spec/models/avatar_spec.rb:13:in<top
(required)>’
from
/Users/username/.rvm/gems/ru[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
load' from /Users/username/.rvm/gems/[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:inblock in load_spec_files’
from
/Users/username/.rvm/gems/[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
map' from /Users/username/.rvm/gems/[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:inload_spec_files’
from
/Users/username/.rvm/gems/[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:18:in
run' from /Users/username/.rvm/gems/[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:inrun_in_process’
from
/Users/username/.rvm/gems/[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in
run' from /Users/username/.rvm/gems/[email protected]_project/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:inblock in autorun’

spec_helper.rb:4 is: require ‘rspec/rails’

Anyone an idea what’s wrong here?

I am having the exact same issue. Help is appreciated.

Logan

I’m having this issue as well. Any thoughts on what the conflict is?

Hi there,

I was having the same issue, it turned out that was some “minitest” and
“turn” issue.

Just REMOVE this lines from your Gemfile
gem ‘turn’
gem ‘minitest’

Next do a “bundle update” and that should solve the issue.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs