vacuum 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vacuum/response.rb +1 -1
- data/lib/vacuum/version.rb +1 -1
- data/test/test_vacuum.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29760fe694c82b91b6a60810cb9037a273bbb29d
|
4
|
+
data.tar.gz: 1139fee4614b774eb362a3adb3796c13321eae3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4c873b36a94e9579b53eba1791bf845f14beaac33340399a0fe60512fb9cb16b5b8b5772ac7da13661200e013f14f676d16574e929e138d180a66c1454c7db4
|
7
|
+
data.tar.gz: 9f27bea1a47964cc64afe172ed056c28ed4c07e833e3082a0334bd6bb8c6a9fd38a370584fa6d9e2c639acff076677ed8fedc4b191f8446cf4d4168150302c77
|
data/lib/vacuum/response.rb
CHANGED
data/lib/vacuum/version.rb
CHANGED
data/test/test_vacuum.rb
CHANGED
@@ -83,12 +83,15 @@ class TestVacuum < Minitest::Test
|
|
83
83
|
|
84
84
|
def test_digs
|
85
85
|
Excon.stub({}, body: '<foo><bar>baz</bar></foo>')
|
86
|
+
parser = MiniTest::Mock.new
|
86
87
|
res = @req.item_lookup(query: {}, mock: true)
|
87
88
|
assert_equal 'baz', res.dig('foo', 'bar')
|
89
|
+
res.parser = parser
|
90
|
+
assert_equal 'baz', res.dig('foo', 'bar')
|
88
91
|
end
|
89
92
|
|
90
93
|
def test_handles_unauthorized_errors
|
91
|
-
Excon.stub({}, status: 403
|
94
|
+
Excon.stub({}, status: 403)
|
92
95
|
res = @req.item_lookup(query: {}, mock: true)
|
93
96
|
assert_equal 403, res.status
|
94
97
|
end
|