Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

nielsm opened this Issue Nov 12, 2010 · 2 comments


None yet
2 participants

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:inload'
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:inmap'
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:inrun'
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:inrun'
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 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 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