Sha256: a253767e0b398dc53053a4e227f9aa31293bce26246c11635fcd177ed2728589
Contents?: true
Size: 885 Bytes
Versions: 5
Compression:
Stored size: 885 Bytes
Contents
require 'spec_helper' describe Bitso::UserTransactions do before { setup_bitso } describe :all, vcr: {cassette_name: 'bitso/user_transactions/all'} do subject { Bitso.user_transactions.all } its(:count) { should == 47 } context "first transaction" do subject { Bitso.user_transactions.all.first } it { should be_kind_of(Bitso::UserTransaction) } its(:btc) { should == "-3.00781124" } its(:btc_mxn) { 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(:mxn) { should == "0.00" } end end end describe Bitso::Transactions do before { setup_bitso } describe :all, vcr:{cassette_name: 'bitso/transactions'} do subject { Bitso.transactions } it { should be_kind_of Array } end end
Version data entries
5 entries across 5 versions & 1 rubygems