diff --git a/spec/unit/request_pattern_spec.rb b/spec/unit/request_pattern_spec.rb index f6fb2e51..b7e85f74 100644 --- a/spec/unit/request_pattern_spec.rb +++ b/spec/unit/request_pattern_spec.rb @@ -614,7 +614,7 @@ def match(request_signature) it "should not match when body is not xml" do expect(WebMock::RequestPattern.new(:post, 'www.example.com', body: body_hash)). not_to match(WebMock::RequestSignature.new(:post, "www.example.com", - headers: {content_type: content_type}, body: "foo bar")) + headers: {content_type: content_type}, body: "")) end it "matches when the content type include a charset" do