diff options
| author | mokha <mokha@cisco.com> | 2018-05-14 18:46:21 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-05-14 18:46:21 -0600 |
| commit | dbe6f55ead4b9e44dde471bab29af9179f5471a0 (patch) | |
| tree | e484b5fbbbe311039d69141be2e8666edcb63e2a /test | |
| parent | dd2d2d91a151435ed27f9c8167667251fe6ac489 (diff) | |
rubocop -a
Diffstat (limited to 'test')
| -rw-r--r-- | test/net/client_test.rb | 10 | ||||
| -rw-r--r-- | test/net/content_type_mapper_test.rb | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/net/client_test.rb b/test/net/client_test.rb index 5743123..db50f5d 100644 --- a/test/net/client_test.rb +++ b/test/net/client_test.rb @@ -39,8 +39,8 @@ class ClientTest < Minitest::Test def test_get_with_headers headers = { 'Accept' => 'application/vnd.haveibeenpwned.v2+json' } WebMock.stub_request(:get, 'https://haveibeenpwned.com/api/breaches') - .with(headers: headers) - .to_return(status: 201, body: {}.to_json) + .with(headers: headers) + .to_return(status: 201, body: {}.to_json) uri = URI.parse('https://haveibeenpwned.com/api/breaches') @@ -53,8 +53,8 @@ class ClientTest < Minitest::Test uri = URI.parse('https://haveibeenpwned.com/api/breaches') body = { 'hello' => 'world' } WebMock.stub_request(:get, uri.to_s) - .with(body: body.to_json) - .to_return(status: 201, body: {}.to_json) + .with(body: body.to_json) + .to_return(status: 201, body: {}.to_json) response = subject.get(uri, body: body) @@ -136,7 +136,7 @@ class ClientTest < Minitest::Test subject = Net::Hippie::Client.new( certificate: certificate.to_pem, key: private_key.export(OpenSSL::Cipher.new('AES-256-CBC'), passphrase), - passphrase: passphrase, + passphrase: passphrase ) uri = URI.parse('https://haveibeenpwned.com/api/breaches') diff --git a/test/net/content_type_mapper_test.rb b/test/net/content_type_mapper_test.rb index 9599202..0d8ed64 100644 --- a/test/net/content_type_mapper_test.rb +++ b/test/net/content_type_mapper_test.rb @@ -20,7 +20,7 @@ class ContentTypeMapperTest < Minitest::Test def test_return_html subject = Net::Hippie::ContentTypeMapper.new headers = { 'Content-Type' => 'text/html' } - body = "<html></html>" + body = '<html></html>' result = subject.map_from(headers, body) assert_equal body, result end |
