Sha256: 129412ed3db90b8647cf0cb63dd38ef382fad985b9162dc4d7039bd6790f55a2

Contents?: true

Size: 519 Bytes

Versions: 16

Compression:

Stored size: 519 Bytes

Contents

# 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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
stripe-5.31.0 test/stripe/billing_portal/session_test.rb
stripe-5.30.0 test/stripe/billing_portal/session_test.rb
stripe-5.29.1 test/stripe/billing_portal/session_test.rb
stripe-5.29.0 test/stripe/billing_portal/session_test.rb
stripe-5.28.0 test/stripe/billing_portal/session_test.rb
stripe-5.27.0 test/stripe/billing_portal/session_test.rb
stripe-5.26.0 test/stripe/billing_portal/session_test.rb
stripe-5.25.0 test/stripe/billing_portal/session_test.rb
stripe-5.24.0 test/stripe/billing_portal/session_test.rb
stripe-5.23.1 test/stripe/billing_portal/session_test.rb
stripe-5.23.0 test/stripe/billing_portal/session_test.rb
stripe-5.22.0 test/stripe/billing_portal/session_test.rb
stripe-5.21.0 test/stripe/billing_portal/session_test.rb
stripe-5.20.0 test/stripe/billing_portal/session_test.rb
stripe-5.19.0 test/stripe/billing_portal/session_test.rb
stripe-5.18.0 test/stripe/billing_portal/session_test.rb