stripe-ruby-mock 1.8.3.12 → 1.8.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,45 +3,38 @@ module StripeMock
3
3
 
4
4
  def self.test_customer(params)
5
5
  {
6
- :email => 'stripe_mock@example.com',
7
- :description => 'an auto-generated stripe customer data mock',
8
- :subscription_history => [],
9
- :bills => [],
10
- :charges => [],
11
- :livemode => false,
12
- :object => "customer",
13
- :id => "c_test_customer",
14
- :active_card => {
15
- :object => "card",
16
- :last4 => "4242",
17
- :type => "Visa",
18
- :exp_month => 12,
19
- :exp_year => 2013,
20
- :fingerprint => "3TQGpK9JoY1GgXPw",
21
- :country => "US",
22
- :name => "From Here",
23
- :address_line1 => nil,
24
- :address_line2 => nil,
25
- :address_city => nil,
26
- :address_state => nil,
27
- :address_zip => nil,
28
- :address_country => nil,
29
- :cvc_check => "pass",
30
- :address_line1_check => nil,
31
- :address_zip_check => nil
6
+ email: 'stripe_mock@example.com',
7
+ description: 'an auto-generated stripe customer data mock',
8
+ object: "customer",
9
+ created: 1372126710,
10
+ id: "cus_24vuDSooAnB087",
11
+ livemode: false,
12
+ active_card: {
13
+ object: "card",
14
+ last4: "4242",
15
+ type: "Visa",
16
+ exp_month: 12,
17
+ exp_year: 2013,
18
+ fingerprint: "wXWJT135mEK107G8",
19
+ country: "US",
20
+ name: "Vetty Vet",
21
+ address_line1: nil,
22
+ address_line2: nil,
23
+ address_city: nil,
24
+ address_state: nil,
25
+ address_zip: nil,
26
+ address_country: nil,
27
+ cvc_check: "pass",
28
+ address_line1_check: nil,
29
+ address_zip_check: nil
32
30
  },
33
- :created => 1304114758
31
+ delinquent: false,
32
+ subscription: nil,
33
+ discount: nil,
34
+ account_balance: 0
34
35
  }.merge(params)
35
36
  end
36
37
 
37
- def self.test_customer_array
38
- {
39
- :data => [test_customer, test_customer, test_customer],
40
- :object => 'list',
41
- :url => '/v1/customers'
42
- }
43
- end
44
-
45
38
  def self.test_charge(params={})
46
39
  {
47
40
  id: "ch_1fD6uiR9FAA2zc",
@@ -1,4 +1,4 @@
1
1
  module StripeMock
2
2
  # stripe-ruby-mock version
3
- VERSION = "1.8.3.12"
3
+ VERSION = "1.8.3.13"
4
4
  end
@@ -39,6 +39,7 @@ shared_examples 'Customer API' do
39
39
 
40
40
  expect(customer.id).to eq(original.id)
41
41
  expect(customer.email).to eq(original.email)
42
+ expect(customer.subscription).to be_nil
42
43
  end
43
44
 
44
45
  it "cannot retrieve a customer that doesn't exist" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe-ruby-mock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3.12
4
+ version: 1.8.3.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-01 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: stripe