it "sends a UTF-8 body" do
response = client.post(local_server, body: "This is a post body ∑")
expect(JSON.load(response.body)["body"]).to eq "This is a post body ∑"
end
1) Manticore::Client#post sends a UTF-8 body
Failure/Error: expect(JSON.load(response.body)["body"]).to eq "This is a post body ∑"
expected: "This is a post body ∑"
got: "This is a post body â\u0088\u0091"
(compared using ==)
# ./spec/manticore/client_spec.rb:461:in `block in (root)'
This test fails on JRuby 9.2.0.0.
Source location
Example failure:
Test passes on 9.0.5.0 - https://travis-ci.org/cheald/manticore/jobs/383309866
Build 221 overview - https://travis-ci.org/cheald/manticore/builds/383309863