diff options
| author | mo <mo@mokhan.ca> | 2018-05-07 15:31:53 -0600 |
|---|---|---|
| committer | mo <mo@mokhan.ca> | 2018-05-07 15:32:07 -0600 |
| commit | 84dc2be02ec86ebda02a6120bcc31e63048bc606 (patch) | |
| tree | 5f5f10c7646112a38e3132a4ca5be836ffc7282a /test/net/client_test.rb | |
| parent | 6bb6fdb072c576a4d80e0e1869049ea122738695 (diff) | |
attempt to normalize uri.v0.1.3
Diffstat (limited to 'test/net/client_test.rb')
| -rw-r--r-- | test/net/client_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/net/client_test.rb b/test/net/client_test.rb index 508fb03..2eaca20 100644 --- a/test/net/client_test.rb +++ b/test/net/client_test.rb @@ -17,6 +17,14 @@ class Net::Hippie::ClientTest < Minitest::Test end end + def test_get_with_string_uri + VCR.use_cassette("get_breaches") do + response = subject.get('https://haveibeenpwned.com/api/breaches') + refute_nil response + assert_equal(283, JSON.parse(response.body).count) + end + end + def test_get_with_block_syntax VCR.use_cassette("get_breaches") do uri = URI.parse('https://haveibeenpwned.com/api/breaches') |
