diff options
| author | mo <mo@mokhan.ca> | 2018-11-10 22:00:32 -0700 |
|---|---|---|
| committer | mo <mo@mokhan.ca> | 2018-11-10 22:00:32 -0700 |
| commit | 483539fb5fd36c8085c25ab3b2287561fd62a373 (patch) | |
| tree | ac5090f91b9cfee83d58c4ca681b76f225c6c014 | |
| parent | fb531b832279884b713cc8a381e8b92f7c9fbbd0 (diff) | |
do not convert to json.v0.2.1
| -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 |
