Merge pull request #650 from stripe/brandur-fix-tests

Fix some parameters being sent in tests
This commit is contained in:
Brandur 2018-05-16 10:14:41 -07:00 committed by GitHub
commit 1f18f24991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
module Stripe
VERSION = "3.15.0".freeze
end

View File

@ -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

View File

@ -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)

View File

@ -22,7 +22,6 @@ module Stripe
should "be creatable" do
item = Stripe::SubscriptionItem.create(
item: "silver",
plan: "sapphire-elite",
quantity: 3,
subscription: "sub_123"