mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
19 lines
519 B
Ruby
19 lines
519 B
Ruby
# frozen_string_literal: true
|
|
|
|
require ::File.expand_path("../../test_helper", __dir__)
|
|
|
|
module Stripe
|
|
module BillingPortal
|
|
class SessionTest < Test::Unit::TestCase
|
|
should "be creatable" do
|
|
session = Stripe::BillingPortal::Session.create(
|
|
customer: "cus_123",
|
|
return_url: "https://stripe.com/return"
|
|
)
|
|
assert_requested :post, "#{Stripe.api_base}/v1/billing_portal/sessions"
|
|
assert session.is_a?(Stripe::BillingPortal::Session)
|
|
end
|
|
end
|
|
end
|
|
end
|