stripe-ruby/test/stripe/setup_attempt_test.rb
remi-stripe 29f321b224
Add support for the SetupAttempt resource and List API (#949)
* Codegen for openapi 3854362

* Fix and add tests
2020-09-29 22:54:58 -07:00

17 lines
488 B
Ruby

# frozen_string_literal: true
require ::File.expand_path("../test_helper", __dir__)
module Stripe
class SetupAttemptTest < Test::Unit::TestCase
should "be listable" do
setup_attempts = Stripe::SetupAttempt.list({
setup_intent: "seti_123",
})
assert_requested :get, "#{Stripe.api_base}/v1/setup_attempts?setup_intent=seti_123"
assert setup_attempts.data.is_a?(Array)
assert setup_attempts.data[0].is_a?(Stripe::SetupAttempt)
end
end
end