Sha256: 93f521327c3fba4a5f2180cd0cbcc54cbbb43ec0f4d76f9910a8d5b5259b1e73

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 Bytes

Contents

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

module Stripe
  class BitcoinTransactionTest < Test::Unit::TestCase
    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("btctxn_123")
      assert_requested :get,
        "#{Stripe.api_base}/v1/bitcoin/transactions/btctxn_123"
      assert transaction.kind_of?(Stripe::BitcoinTransaction)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stripe-3.3.2 test/stripe/bitcoin_transaction_test.rb
stripe-3.3.1 test/stripe/bitcoin_transaction_test.rb
stripe-3.3.0 test/stripe/bitcoin_transaction_test.rb
stripe-3.2.0 test/stripe/bitcoin_transaction_test.rb
stripe-3.1.0 test/stripe/bitcoin_transaction_test.rb