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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf88c1b5b7e08e1e827e6e1aa248a6f463aa679a
4
- data.tar.gz: 2623801b2f5225ab462f91ae01371d4bb8f99216
3
+ metadata.gz: 3d8748a7cb17f2da88ee82038992cbe3b5b1e613
4
+ data.tar.gz: 862809a543c246df6135095e777ba6f711b7bc14
5
5
  SHA512:
6
- metadata.gz: 9587c750fa755bbb29d549ed3980ff2930ae697b23421ce96736cf7d384ae665970e751c047a4f60da62d46fc2ad71d948839ab9d5f51dd2aca35e60953cc5f6
7
- data.tar.gz: 491e7e9ac83ff165aad1b8bc69fe6e03cb10d2b84a8ca5a8c52bcb9bbefada7951f5090abd9e47eb7f807dac1b0bfb7c98d14a7ee21d51e7e3eddb623304a6e6
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
- expect(user.spree_api_key).not_to be_blank
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.5
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-02-23 00:00:00.000000000 Z
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.5
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.5
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: