Sha256: 4223753b37c54b9b4dd8f085a1a0cc59386594d1b57e1294de622e48634c7ec5
Contents?: true
Size: 915 Bytes
Versions: 17
Compression:
Stored size: 915 Bytes
Contents
require 'spec_helper' describe Bitstamp::UserTransactions do before { setup_bitstamp } describe :all, vcr: {cassette_name: 'bitstamp/user_transactions/all'} do subject { Bitstamp.user_transactions.all } its(:count) { should == 47 } context "first transaction" do subject { Bitstamp.user_transactions.all.first } it { should be_kind_of(Bitstamp::UserTransaction) } its(:btc) { should == "-3.00781124" } its(:btc_usd) { should == "0.00" } its(:datetime) { should == "2013-09-26 13:46:59" } its(:fee) { should == "0.00" } its(:order_id) { should be_nil } its(:type) { should == 1 } its(:usd) { should == "0.00" } end end end describe Bitstamp::Transactions do before { setup_bitstamp } describe :all, vcr:{cassette_name: 'bitstamp/transactions'} do subject { Bitstamp.transactions } it { should be_kind_of Array } end end
Version data entries
17 entries across 17 versions & 6 rubygems