From 483539fb5fd36c8085c25ab3b2287561fd62a373 Mon Sep 17 00:00:00 2001 From: mo Date: Sat, 10 Nov 2018 22:00:32 -0700 Subject: do not convert to json. --- test/net/client_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/net/client_test.rb b/test/net/client_test.rb index 9ffd67f..e20dffb 100644 --- a/test/net/client_test.rb +++ b/test/net/client_test.rb @@ -155,7 +155,7 @@ class ClientTest < Minitest::Test def test_put VCR.use_cassette('put_breaches') do uri = URI.parse('https://haveibeenpwned.com/api/breaches') - body = { command: 'echo hello' }.to_json + body = { command: 'echo hello' } response = subject.put(uri, body: body) refute_nil response assert_equal 'Congratulations!', JSON.parse(response.body)['Message'] @@ -165,7 +165,7 @@ class ClientTest < Minitest::Test def test_put_with_block_syntax VCR.use_cassette('put_breaches') do uri = URI.parse('https://haveibeenpwned.com/api/breaches') - body = { command: 'echo hello' }.to_json + body = { command: 'echo hello' } subject.put(uri, body: body) do |_request, response| @response = response end -- cgit v1.2.3