mirror of
				https://github.com/stripe/stripe-ruby.git
				synced 2025-10-31 00:02:18 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			488 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			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
 |