mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
Merge pull request #650 from stripe/brandur-fix-tests
Fix some parameters being sent in tests
This commit is contained in:
commit
1f18f24991
@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
VERSION = "3.15.0".freeze
|
||||
end
|
||||
|
@ -46,7 +46,7 @@ module Stripe
|
||||
context "#create_subscription" do
|
||||
should "create a new subscription" do
|
||||
customer = Stripe::Customer.retrieve("cus_123")
|
||||
subscription = customer.create_subscription(plan: "silver")
|
||||
subscription = customer.create_subscription(items: [{ plan: "silver" }])
|
||||
assert subscription.is_a?(Stripe::Subscription)
|
||||
end
|
||||
end
|
||||
|
@ -41,7 +41,7 @@ module Stripe
|
||||
context "#pay" do
|
||||
should "pay an order" do
|
||||
order = Stripe::Order.retrieve("or_123")
|
||||
order = order.pay(token: "tok_123")
|
||||
order = order.pay(source: "tok_123")
|
||||
assert order.is_a?(Stripe::Order)
|
||||
end
|
||||
end
|
||||
@ -49,7 +49,7 @@ module Stripe
|
||||
context "#return_order" do
|
||||
should "return an order" do
|
||||
order = Stripe::Order.retrieve("or_123")
|
||||
order = order.return_order(orders: [
|
||||
order = order.return_order(items: [
|
||||
{ parent: "sku_123" },
|
||||
])
|
||||
assert order.is_a?(Stripe::OrderReturn)
|
||||
|
@ -22,7 +22,6 @@ module Stripe
|
||||
|
||||
should "be creatable" do
|
||||
item = Stripe::SubscriptionItem.create(
|
||||
item: "silver",
|
||||
plan: "sapphire-elite",
|
||||
quantity: 3,
|
||||
subscription: "sub_123"
|
||||
|
Loading…
x
Reference in New Issue
Block a user