arkaan 0.8.10 → 0.8.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/arkaan/specs.rb +6 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5088b21f44e4d7a4185105483eee9d51a0f88588
4
- data.tar.gz: 1028f84176a4b83d9357522ab0b089649b3cbb80
3
+ metadata.gz: 582ae77affc1c3416bb3407251121f5dc3a5caa8
4
+ data.tar.gz: 8a88991e5083e8027354e3f3d8d8922bf4cfd712
5
5
  SHA512:
6
- metadata.gz: 852ffa0bda4d725f05a118272c8cdbb3b605e6ea415dc46a3acabf6bf73d9af301034f301c66628182fc59c229c715dc0b177bfa18f7c8584498239a61f8bf45
7
- data.tar.gz: 0cdc180f626d98c54b1ac3a2e7b61a04470159b2ce597a2f3649feee6e6ba85ff553d64611b43c7e3ec5a60bf204e920a36101815b968955897cf0a8a75dbcbd
6
+ metadata.gz: f836aaf8df7aa1fafecacb9917fd61355f4929581eadbc318e7c5d1b614978469e47355060ce5932b94ff253399e46cd4ba4d10eefc9b8fd74338f4fc12804a0
7
+ data.tar.gz: 2ed179e505eb98b8ee3cea01dc251f47d133deb54c4d48377f4976af76c949509953289e0c266d4a55e3fd3f0963c57ae25013bccd9145c03c2a1d2d88f3ef39
@@ -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 gateway doesn\'t exist' do
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' => 'token',
62
+ 'field' => 'app_key',
63
63
  'error' => 'unknown',
64
- 'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#gateway-token-not-found'
64
+ 'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#application-key-not-found'
65
65
  })
66
- end
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' => 'app_key',
78
+ 'field' => 'token',
79
79
  'error' => 'unknown',
80
- 'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#application-key-not-found'
80
+ 'docs' => 'https://github.com/jdr-tools/arkaan/wiki/Errors#gateway-token-not-found'
81
81
  })
82
82
  end
83
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arkaan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Courtois