Sha256: 9aead2fcdbe457d4fb2c9f5aeac4f3ae93fc30638abe381d8d4596b6bf081926
Contents?: true
Size: 740 Bytes
Versions: 20
Compression:
Stored size: 740 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Stripe class BitcoinTransactionTest < Test::Unit::TestCase FIXTURE = API_FIXTURES.fetch(:bitcoin_transaction) should "be listable" do transactions = Stripe::BitcoinTransaction.list assert_requested :get, "#{Stripe.api_base}/v1/bitcoin/transactions" assert transactions.data.kind_of?(Array) assert transactions.first.kind_of?(Stripe::BitcoinTransaction) end should "be retrievable" do transaction = Stripe::BitcoinTransaction.retrieve(FIXTURE[:id]) assert_requested :get, "#{Stripe.api_base}/v1/bitcoin/transactions/#{FIXTURE[:id]}" assert transaction.kind_of?(Stripe::BitcoinTransaction) end end end
Version data entries
20 entries across 20 versions & 1 rubygems