diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/net/client_test.rb | 4 |
1 files 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 |
