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

Version Path
stripe-3.0.3 test/stripe/bitcoin_transaction_test.rb
stripe-3.0.1 test/stripe/bitcoin_transaction_test.rb
stripe-3.0.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.12.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.11.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.10.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.9.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.8.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.7.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.6.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.5.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.4.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.3.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.2.1 test/stripe/bitcoin_transaction_test.rb
stripe-2.2.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.1.0 test/stripe/bitcoin_transaction_test.rb
stripe-2.0.3 test/stripe/bitcoin_transaction_test.rb
stripe-2.0.2 test/stripe/bitcoin_transaction_test.rb
stripe-2.0.1 test/stripe/bitcoin_transaction_test.rb
stripe-2.0.0 test/stripe/bitcoin_transaction_test.rb