excon-hypermedia 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 658f225688ebcf552f0a36a0cbe53057f53a9e8c
|
4
|
+
data.tar.gz: ac4753702b6c6492ebe8aadee78f0d5022cf1906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd9e7bd4d055d98b24cd89c592413f1251646709b09041db6ab40c233b32d74a4a2a4e0cda9dc5f6b4bc6d718b5ccbbdb2bffc1ad6b4246243727c92e7706868
|
7
|
+
data.tar.gz: 6e89aa76165cfe1f8e11caec5ed679de423b51aa1cf917dd6357a585fe573c5029b750a87727087041488e911579a1ae72f4b97e0daf62cc0a7e2f2d025d61a6
|
data/test/excon/hcp_test.rb
CHANGED
@@ -20,9 +20,13 @@ module Excon
|
|
20
20
|
assert response.rel('pump', hcp: true).get[:hcp]
|
21
21
|
end
|
22
22
|
|
23
|
+
def test_hcp_response_without_existing_response
|
24
|
+
assert Excon.get('https://example.org/product/bicycle', hcp: true)
|
25
|
+
end
|
26
|
+
|
23
27
|
def test_hcp_response_with_missing_embedding
|
24
28
|
api = Excon.get('https://www.example.org/api.json')
|
25
|
-
response = api.rel('product', expand: { uid: 'bicycle' },
|
29
|
+
response = api.rel('product', expand: { uid: 'bicycle' }, hcp: true).get
|
26
30
|
|
27
31
|
assert_equal nil, response[:hcp]
|
28
32
|
end
|