Sha256: 427bcf6cc9e9c1c070af06e410fe1f53503ef673f7efd9bee1669e253ac506a9

Contents?: true

Size: 528 Bytes

Versions: 4

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

require File.expand_path("../../test_helper", __FILE__)

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

4 entries across 4 versions & 1 rubygems

Version Path
stripe-3.23.0 test/stripe/source_transaction_test.rb
stripe-3.22.0 test/stripe/source_transaction_test.rb
stripe-3.21.0 test/stripe/source_transaction_test.rb
stripe-3.20.0 test/stripe/source_transaction_test.rb