spree_api 2.2.10 → 2.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/spec/controllers/spree/api/users_controller_spec.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ff260b616c251dba5224a5fe2fdf911596fade7
|
4
|
+
data.tar.gz: c575c8571b0e883b95ff1f71570c1e1503e1bc7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c83992f15eec1cf04aa7adfeb92f3805f2845d422dc23b49514735d2e79b2bfe75aae047d536b9352c97653ebf3b617668acba0b00ed40ea0c709b1dd8c19ad
|
7
|
+
data.tar.gz: 7ab3450b8d301c6ade86486b7ddc7e514b14c07561a0919c7cad3ad120ea1d071c7ffeb6a40191022040b74b0316969bc4b1c165f17a71be2c124b64f16529ee
|
@@ -4,7 +4,7 @@ module Spree
|
|
4
4
|
describe Api::UsersController do
|
5
5
|
render_views
|
6
6
|
|
7
|
-
let(:user) { create(:user, spree_api_key:
|
7
|
+
let(:user) { create(:user, spree_api_key: SecureRandom.hex) }
|
8
8
|
let(:stranger) { create(:user, :email => 'stranger@example.com') }
|
9
9
|
let(:attributes) { [:id, :email, :created_at, :updated_at] }
|
10
10
|
|
@@ -12,7 +12,7 @@ module Spree
|
|
12
12
|
it "can get own details" do
|
13
13
|
api_get :show, id: user.id, token: user.spree_api_key
|
14
14
|
|
15
|
-
json_response['email'].
|
15
|
+
expect(json_response['email']).to eq user.email
|
16
16
|
end
|
17
17
|
|
18
18
|
it "cannot get other users details" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.2.
|
19
|
+
version: 2.2.11
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.2.
|
26
|
+
version: 2.2.11
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rabl
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|