RSpec 2 not working on Rails 3.1.1

8 views
Skip to first unread message

Heinz Strunk

unread,
Oct 14, 2011, 2:24:28 PM10/14/11
to rubyonra...@googlegroups.com
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/ruby-1.9.2-p290@ror_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:in
`<module: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/ruby-1.9.2-p290@ror_project/gems/rspec-rails-2.6.1/lib/rspec/rails/adapters.rb:2:in
`<top (required)>'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_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:in
`require'
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/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
`load'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
`block in load_spec_files'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
`map'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419:in
`load_spec_files'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:18:in
`run'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:in
`run_in_process'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in
`run'
from
/Users/username/.rvm/gems/ruby-1.9.2-p290@ror_project/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:in
`block in autorun'

spec_helper.rb:4 is: require 'rspec/rails'

Anyone an idea what's wrong here?

--
Posted via http://www.ruby-forum.com/.

Logan Abbott

unread,
Oct 19, 2011, 12:18:20 AM10/19/11
to rubyonra...@googlegroups.com
I am having the exact same issue. Help is appreciated.

Logan

Ron d.

unread,
Oct 20, 2011, 9:43:18 PM10/20/11
to rubyonra...@googlegroups.com
I'm having this issue as well. Any thoughts on what the conflict is?

Juan David Z.

unread,
Oct 21, 2011, 4:48:43 PM10/21/11
to rubyonra...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages