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