Sha256: 23acfb6f1cb876f5dacffe3cf105417cc6e8f1427c61a938ee887c2bf9d215e4

Contents?: true

Size: 488 Bytes

Versions: 7

Compression:

Stored size: 488 Bytes

Contents

# 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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stripe-5.31.0 test/stripe/setup_attempt_test.rb
stripe-5.30.0 test/stripe/setup_attempt_test.rb
stripe-5.29.1 test/stripe/setup_attempt_test.rb
stripe-5.29.0 test/stripe/setup_attempt_test.rb
stripe-5.28.0 test/stripe/setup_attempt_test.rb
stripe-5.27.0 test/stripe/setup_attempt_test.rb
stripe-5.26.0 test/stripe/setup_attempt_test.rb