diff --git a/lib/webmock/request_pattern.rb b/lib/webmock/request_pattern.rb index 8fb84e83..7f9437d4 100644 --- a/lib/webmock/request_pattern.rb +++ b/lib/webmock/request_pattern.rb @@ -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) ||