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.3.5 specs fail with both rspec 1.3.x and rspec 2.0.0 installed #44

Closed
graaff opened this Issue Oct 3, 2010 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

graaff commented Oct 3, 2010

I'm getting the following error when trying to run the specs using 'rake spec'. The weird thing about the error is that it has rspec 1.3.x and rspec 2.0.0 code included in the same run. This seems to happen because lib/webmock/adapters/rspec.rb tries to load rspec-2.0.0 first, so it gets pulled in even though the current set of specs is running on 1.3.x.

/usr/lib64/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/example_group.rb:66:in it_should_behave_like': Could not find shared example group named "WebMock" (RuntimeError) from ./spec/patron_spec.rb:13 from /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/example_group.rb:130:inmodule_eval'
from /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/example_group.rb:130:in subclass' from /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/example_group.rb:117:indescribe'
from /usr/lib64/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/extensions/object.rb:7:in describe' from ./spec/patron_spec.rb:10 from /usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:inload'
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in load_files' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:ineach'
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in load_files' from /usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:inrun_examples'
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in `run'
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec:5
rake aborted!
Command /usr/bin/ruby18 -I"lib:lib:spec" "/usr/lib64/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec" "spec/webmock_spec.rb" "spec/util/uri_spec.rb" "spec/util/headers_spec.rb" "spec/util/hash_counter_spec.rb" "spec/response_spec.rb" "spec/request_stub_spec.rb" "spec/request_signature_spec.rb" "spec/request_registry_spec.rb" "spec/request_pattern_spec.rb" "spec/request_execution_verifier_spec.rb" "spec/patron_spec.rb" "spec/other_net_http_libs_spec.rb" "spec/net_http_spec.rb" "spec/httpclient_spec.rb" "spec/em_http_request_spec.rb" failed

Owner

bblimke commented Oct 3, 2010

Thanks for reporting. It's fixed in master.

Contributor

graaff commented Oct 18, 2010

Fix confirmed with webmock 1.4.0. Thanks!

This issue was closed.

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