Skip to content

Commit 130069c

Browse files
committed
Fix borked comparison.
1 parent 218ee4e commit 130069c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/net/http/post/multipart_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def assert_additional_headers_added(post, parts_headers)
100100

101101
body = post.body_stream.read
102102
expect(body.lines.grep(/name="foo"/).length).to be == 2
103-
expect(body) =~ /Content-Type: application\/json; charset=UTF-8/
103+
expect(body).to be =~ /Content-Type: application\/json; charset=UTF-8/
104104
end
105105

106106
it "test_form_multipart_body_with_arrayparam" do

0 commit comments

Comments
 (0)