Skip to content

Commit 55c7d4c

Browse files
committed
fixed plan error
1 parent 44a96f3 commit 55c7d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/shared_stripe_examples/invoice_examples.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
let(:customer) { @teardown_customer = true; Stripe::Customer.create(source: stripe_helper.generate_card_token) }
111111
let(:coupon_amtoff) { @teardown_coupon_amtoff = true; Stripe::Coupon.create(id: '100OFF', currency: 'usd', amount_off: 100_00, duration: 'repeating', duration_in_months: 6) }
112112
let(:coupon_pctoff) { @teardown_coupon_pctoff = true; Stripe::Coupon.create(id: '50%OFF', currency: 'usd', percent_off: 50, duration: 'repeating', duration_in_months: 6) }
113-
let(:plan) { @teardown_plan = true; Stripe::Plan.create(id: '50m', amount: 50_00, interval: 'month', name: '50m', currency: 'usd') }
113+
let(:plan) { @teardown_plan = true; stripe_helper.create_plan(id: '50m', amount: 50_00, interval: 'month', name: '50m', currency: 'usd') }
114114
let(:quantity) { 3 }
115115
let(:subscription) { @teardown_subscription = true; Stripe::Subscription.create(plan: plan.id, customer: customer.id, quantity: quantity) }
116116

0 commit comments

Comments
 (0)