Skip to content

WebMock 1.6 breaks when running RSpec 2.1 under Rails 3 #63

Closed
nielsm opened this Issue Nov 12, 2010 · 2 comments

2 participants

@nielsm
nielsm commented Nov 12, 2010

I attempted to bump up our webmock version to 1.6 this morning, but after doing so, whenever we try to run our specs, we get this error:

uninitialized constant RSpec::Expectations (NameError)
from /Library/Ruby/Gems/1.8/gems/webmock-1.6.0/lib/webmock/rspec.rb:32
from /Users/nielsm/Sites/magnetic/spec/spec_helper.rb:7
from /Users/nielsm/Sites/magnetic/spec/controllers/about_controller_spec.rb:1:in require'
from /Users/nielsm/Sites/magnetic/spec/controllers/about_controller_spec.rb:1
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in
load'
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in load_spec_files'
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in
map'
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/configuration.rb:334:in load_spec_files'
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/command_line.rb:18:in
run'
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:55:in run_in_process'
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:46:in
run'
from /Library/Ruby/Gems/1.8/gems/rspec-core-2.1.0/lib/rspec/core/runner.rb:10:in `autorun'
from /Library/Ruby/Gems/1.8/bin/rspec:19

@bblimke
Owner
bblimke commented Nov 13, 2010

Looks like in new RSpec, RSpec::Expectations have to be required separately.
Fix is released in version 1.6.1

@nielsm
nielsm commented Nov 13, 2010

Perfect! Works for me now.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.