Sha256: f2134fa2b15331c5848e0303eca59c0532968eed5b91164ca8d71f19766d209a

Contents?: true

Size: 526 Bytes

Versions: 27

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

require ::File.expand_path("../test_helper", __dir__)

module Stripe
  class SourceTransactionTest < Test::Unit::TestCase
    setup do
      @source = Stripe::Source.retrieve("src_123")
    end

    should "be listable" do
      transactions = @source.source_transactions

      assert_requested :get, "#{Stripe.api_base}/v1/sources/#{@source.id}/source_transactions"
      assert transactions.data.is_a?(Array)
      assert transactions.first.is_a?(Stripe::SourceTransaction)
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
stripe-5.9.0 test/stripe/source_transaction_test.rb
stripe-5.8.0 test/stripe/source_transaction_test.rb
stripe-5.7.1 test/stripe/source_transaction_test.rb
stripe-5.7.0 test/stripe/source_transaction_test.rb
stripe-5.6.0 test/stripe/source_transaction_test.rb
stripe-5.5.0 test/stripe/source_transaction_test.rb
stripe-5.4.1 test/stripe/source_transaction_test.rb
stripe-5.4.0 test/stripe/source_transaction_test.rb
stripe-5.3.0 test/stripe/source_transaction_test.rb
stripe-5.2.0 test/stripe/source_transaction_test.rb
stripe-5.1.1 test/stripe/source_transaction_test.rb
stripe-5.1.0 test/stripe/source_transaction_test.rb
stripe-5.0.1 test/stripe/source_transaction_test.rb
stripe-5.0.0 test/stripe/source_transaction_test.rb
stripe-4.24.0 test/stripe/source_transaction_test.rb
stripe-4.23.0 test/stripe/source_transaction_test.rb
stripe-4.22.1 test/stripe/source_transaction_test.rb
stripe-4.22.0 test/stripe/source_transaction_test.rb
bongloy-4.21.3 test/stripe/source_transaction_test.rb
stripe-4.21.3 test/stripe/source_transaction_test.rb