mad_cart 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:3001/api/products.json
5
+ uri: http://localhost:3001/api/products.json?page=1&per_page=50
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -14,11 +14,11 @@ http_interactions:
14
14
  Accept-Encoding:
15
15
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
16
  Accept:
17
- - ! '*/*'
17
+ - "*/*"
18
18
  response:
19
19
  status:
20
20
  code: 200
21
- message: ! 'OK '
21
+ message: 'OK '
22
22
  headers:
23
23
  X-Frame-Options:
24
24
  - SAMEORIGIN
@@ -35,7 +35,7 @@ http_interactions:
35
35
  Cache-Control:
36
36
  - max-age=900, public
37
37
  Etag:
38
- - ! '"1fa4b01070520093a33ebd555491e875"'
38
+ - '"1fa4b01070520093a33ebd555491e875"'
39
39
  X-Request-Id:
40
40
  - f0b9d1f6-3284-4a5d-ac7a-2e31d456e496
41
41
  X-Runtime:
@@ -52,7 +52,7 @@ http_interactions:
52
52
  - request_method=GET; path=/
53
53
  body:
54
54
  encoding: US-ASCII
55
- string: ! '{"count":0,"total_count":0,"current_page":1,"per_page":25,"pages":0,"products":[]}'
55
+ string: '{"count":0,"total_count":0,"current_page":1,"per_page":25,"pages":0,"products":[]}'
56
56
  http_version:
57
57
  recorded_at: Thu, 31 Jul 2014 14:24:20 GMT
58
58
  - request:
@@ -65,15 +65,15 @@ http_interactions:
65
65
  X-Spree-Token:
66
66
  - d1202dea0f624d1c2f0c8544f5dffe4b24bbcaf3a9601cc5
67
67
  User-Agent:
68
- - Faraday v0.9.0
68
+ - Faraday v0.9.1
69
69
  Accept-Encoding:
70
70
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
71
  Accept:
72
- - ! '*/*'
72
+ - "*/*"
73
73
  response:
74
74
  status:
75
75
  code: 200
76
- message: ! 'OK '
76
+ message: 'OK '
77
77
  headers:
78
78
  X-Frame-Options:
79
79
  - SAMEORIGIN
@@ -84,27 +84,27 @@ http_interactions:
84
84
  Content-Type:
85
85
  - application/json; charset=utf-8
86
86
  Etag:
87
- - ! '"a9dbd28d9782cb1412355546414a494b"'
87
+ - '"f1644c9342b3c2f244342adb4e5935d1"'
88
88
  Cache-Control:
89
89
  - max-age=0, private, must-revalidate
90
90
  X-Request-Id:
91
- - 31e9ac96-1215-40d7-a7a4-1b6cadee3478
91
+ - 0e3e5e54-d3ad-45fa-a4fa-636f422a1d06
92
92
  X-Runtime:
93
- - '0.499069'
93
+ - '0.417755'
94
94
  Server:
95
95
  - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
96
96
  Date:
97
- - Thu, 31 Jul 2014 14:31:12 GMT
97
+ - Wed, 11 Feb 2015 11:01:29 GMT
98
98
  Content-Length:
99
- - '1701'
99
+ - '1667'
100
100
  Connection:
101
101
  - Keep-Alive
102
102
  Set-Cookie:
103
- - guest_token=IllrNXp0Uld1MGxxWkNwRHRKcUhRaUEi--7af3a10f1bb3481c15ba73ad7bc1141cdfb3001c;
104
- path=/; expires=Mon, 31 Jul 2034 14:31:12 -0000
105
- - request_method=GET; path=/
103
+ - guest_token=Im1nV2FxSkNhY0ZJQkplU21WZVlGRkEi--f75a2877d0db83fe2f220d8326c3f8791af5f64b;
104
+ path=/; expires=Sun, 11 Feb 2035 11:01:28 -0000
106
105
  body:
107
- encoding: US-ASCII
108
- string: ! '{"count":0,"current_page":"1","pages":0,"orders":[]}'
106
+ encoding: UTF-8
107
+ string: '{"count":0,"current_page":"1","pages":0,"orders":[]}'
109
108
  http_version:
110
- recorded_at: Thu, 31 Jul 2014 14:31:12 GMT
109
+ recorded_at: Wed, 11 Feb 2015 11:01:29 GMT
110
+ recorded_with: VCR 2.5.0
@@ -27,10 +27,10 @@ describe MadCart::Store::Spree do
27
27
  context "retrieval" do
28
28
 
29
29
  it "returns all products" do
30
- VCR.use_cassette(spree_cassette) do
30
+ VCR.use_cassette(spree_cassette, :record => :new_episodes) do
31
31
  api = MadCart::Store::Spree.new(valid_credentials)
32
32
 
33
- api.products.size.should == 16
33
+ api.products.size.should == 58
34
34
 
35
35
  first_product = api.products.first
36
36
 
@@ -53,9 +53,9 @@ describe MadCart::Store::Spree do
53
53
  context "count" do
54
54
 
55
55
  it "returns how many products there are" do
56
- VCR.use_cassette(spree_cassette) do
56
+ VCR.use_cassette(spree_cassette, :record => :new_episodes) do
57
57
  api = MadCart::Store::Spree.new(valid_credentials)
58
- api.products_count.should == 16
58
+ api.products_count.should == 58
59
59
  end
60
60
  end
61
61
 
@@ -67,7 +67,7 @@ describe MadCart::Store::Spree do
67
67
  context "retrieval" do
68
68
 
69
69
  it "returns all customers" do
70
- VCR.use_cassette(spree_cassette) do
70
+ VCR.use_cassette(spree_cassette, :record => :new_episodes) do
71
71
  api = MadCart::Store::Spree.new(valid_credentials)
72
72
 
73
73
  api.customers.size.should be > 0
@@ -88,7 +88,7 @@ describe MadCart::Store::Spree do
88
88
  describe "validating credentials" do
89
89
 
90
90
  it "succeeds if it can get orders.json from Spree" do
91
- VCR.use_cassette(spree_cassette) do
91
+ VCR.use_cassette(spree_cassette, :record => :new_episodes) do
92
92
  api = MadCart::Store::Spree.new(valid_credentials)
93
93
 
94
94
  api.should be_valid
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mad_cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Heiligers
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-09-04 00:00:00.000000000 Z
13
+ date: 2015-02-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday