Skip to content

Commit

Permalink
Merge pull request #1013 from lucasarnaud/fix-matching-stubs-with-Has…
Browse files Browse the repository at this point in the history
…hExcludingMatcher

Fix matching stubs with HashExcludingMatcher
  • Loading branch information
bblimke committed Aug 19, 2023
2 parents 1daebe2 + 5726e10 commit 0ef905f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webmock/request_pattern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def matches?(body, content_type = "")
matching_body_hashes?(body_as_hash(body, content_type), @pattern, content_type)
elsif (@pattern).is_a?(Array)
matching_body_array?(body_as_hash(body, content_type), @pattern, content_type)
elsif (@pattern).is_a?(WebMock::Matchers::HashIncludingMatcher)
elsif (@pattern).is_a?(WebMock::Matchers::HashArgumentMatcher)
@pattern == body_as_hash(body, content_type)
else
empty_string?(@pattern) && empty_string?(body) ||
Expand Down

0 comments on commit 0ef905f

Please sign in to comment.