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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1e4f94cd07462a030047555911538bcaf13cba8
4
- data.tar.gz: f35bbca0a030a0627ee12d6e53689e52b83c3956
3
+ metadata.gz: 7ff260b616c251dba5224a5fe2fdf911596fade7
4
+ data.tar.gz: c575c8571b0e883b95ff1f71570c1e1503e1bc7a
5
5
  SHA512:
6
- metadata.gz: fc7bb77eff861a8585824f001119058b5388be6cd27f09605785cae8b20e62e6d3c04eaadf836b4524c2b74d7cc1cd2bb56e2972f6a27879af24c5da558d0b0f
7
- data.tar.gz: f0bf714d8696e7abb69a6f56d9626821216b4aab9005aec55d0fa8d890e062480db1006a1aadc485e18ee34a83a3d7da9df0e4c24adf66807e6610e5972da6cf
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: rand) }
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'].should eq user.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.10
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-03 00:00:00.000000000 Z
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.10
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.10
26
+ version: 2.2.11
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rabl
29
29
  requirement: !ruby/object:Gem::Requirement