Skip to content

Commit

Permalink
Setup correct reference to rspec v1 hash_including matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
karayusuf committed Mar 6, 2012
1 parent 8825a2a commit 9606049
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/webmock/api.rb
Expand Up @@ -35,6 +35,8 @@ def assert_not_requested(*args, &block)
def hash_including(expected)
if defined?(::RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher)
RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher.new(expected)
elsif defined?(::Spec::Mocks::ArgumentMatchers::HashIncludingMatcher)
Spec::Mocks::ArgumentMatchers::HashIncludingMatcher.new(expected)
else
WebMock::Matchers::HashIncludingMatcher.new(expected)
end
Expand Down

0 comments on commit 9606049

Please sign in to comment.