solidus_api 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of solidus_api might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/spec/models/spree/legacy_user_spec.rb +6 -2
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d8748a7cb17f2da88ee82038992cbe3b5b1e613
|
4
|
+
data.tar.gz: 862809a543c246df6135095e777ba6f711b7bc14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20d3aefbd9bcf0fc0f079558bcf65855f5a6cf46d14f31291d3779562ad08ec573d3a9105876c5647cf97fa3f405280eabea5282f78cbae08b7b26c4441343e1
|
7
|
+
data.tar.gz: ab295708931c7d4404377e942d8906cef0d2ab01befda544499d65eefab6a765fe8e609efb5968de822ab92d7b096bf90ab646c9f00785af7decd1be84dd0296
|
@@ -6,8 +6,12 @@ module Spree
|
|
6
6
|
|
7
7
|
it "can generate an API key" do
|
8
8
|
expect(user).to receive(:save!)
|
9
|
-
user.generate_spree_api_key!
|
10
|
-
|
9
|
+
expect { user.generate_spree_api_key! }.to change(user, :spree_api_key).to be_present
|
10
|
+
end
|
11
|
+
|
12
|
+
it "can generate an API key without persisting" do
|
13
|
+
expect(user).not_to receive(:save!)
|
14
|
+
expect { user.generate_spree_api_key }.to change(user, :spree_api_key).to be_present
|
11
15
|
end
|
12
16
|
|
13
17
|
it "can clear an API key" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.6
|
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: 1.0.
|
26
|
+
version: 1.0.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rabl
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -328,4 +328,3 @@ test_files:
|
|
328
328
|
- spec/support/controller_hacks.rb
|
329
329
|
- spec/support/database_cleaner.rb
|
330
330
|
- spec/support/have_attributes_matcher.rb
|
331
|
-
has_rdoc:
|