stripe-ruby-mock 1.8.3.13 → 1.8.3.14
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.
@@ -24,7 +24,7 @@ module StripeMock
|
|
24
24
|
plan = plans[ params[:plan] ]
|
25
25
|
assert_existance :plan, params[:plan], plan
|
26
26
|
|
27
|
-
sub = Data.test_subscription
|
27
|
+
sub = Data.test_subscription id: new_id('su'), plan: plan, customer: $1
|
28
28
|
customer[:subscription] = sub
|
29
29
|
end
|
30
30
|
|
data/lib/stripe_mock/version.rb
CHANGED
@@ -87,6 +87,7 @@ shared_examples 'Customer API' do
|
|
87
87
|
expect(customer.subscription).to_not be_nil
|
88
88
|
expect(customer.subscription.id).to eq(sub.id)
|
89
89
|
expect(customer.subscription.plan.id).to eq('silver')
|
90
|
+
expect(customer.subscription.customer).to eq(customer.id)
|
90
91
|
end
|
91
92
|
|
92
93
|
it "cancels a stripe customer's subscription" 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.
|
4
|
+
version: 1.8.3.14
|
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-
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: stripe
|