arkaan 0.8.10 → 0.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/arkaan/specs.rb +6 -6
- 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: 582ae77affc1c3416bb3407251121f5dc3a5caa8
|
|
4
|
+
data.tar.gz: 8a88991e5083e8027354e3f3d8d8922bf4cfd712
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f836aaf8df7aa1fafecacb9917fd61355f4929581eadbc318e7c5d1b614978469e47355060ce5932b94ff253399e46cd4ba4d10eefc9b8fd74338f4fc12804a0
|
|
7
|
+
data.tar.gz: 2ed179e505eb98b8ee3cea01dc251f47d133deb54c4d48377f4976af76c949509953289e0c266d4a55e3fd3f0963c57ae25013bccd9145c03c2a1d2d88f3ef39
|
data/lib/arkaan/specs.rb
CHANGED
|
@@ -56,14 +56,14 @@ module Arkaan
|
|
|
56
56
|
it 'Raises a not found (404) error when the key doesn\'t belong to any application' do
|
|
57
57
|
expect(last_response.status).to be 404
|
|
58
58
|
end
|
|
59
|
-
it 'returns the correct body when the
|
|
59
|
+
it 'returns the correct body when the application doesn\'t exist' do
|
|
60
60
|
expect(JSON.parse(last_response.body)).to eq({
|
|
61
61
|
'status' => 404,
|
|
62
|
-
'field' => '
|
|
62
|
+
'field' => 'app_key',
|
|
63
63
|
'error' => 'unknown',
|
|
64
|
-
'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#
|
|
64
|
+
'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#application-key-not-found'
|
|
65
65
|
})
|
|
66
|
-
|
|
66
|
+
end
|
|
67
67
|
end
|
|
68
68
|
describe 'gateway not found' do
|
|
69
69
|
before do
|
|
@@ -75,9 +75,9 @@ module Arkaan
|
|
|
75
75
|
it 'returns the correct body when the gateway doesn\'t exist' do
|
|
76
76
|
expect(JSON.parse(last_response.body)).to eq({
|
|
77
77
|
'status' => 404,
|
|
78
|
-
'field' => '
|
|
78
|
+
'field' => 'token',
|
|
79
79
|
'error' => 'unknown',
|
|
80
|
-
'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#
|
|
80
|
+
'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#gateway-token-not-found'
|
|
81
81
|
})
|
|
82
82
|
end
|
|
83
83
|
end
|