Sha256: 98b0e6be10a9b076d87fa696e236b64ae0c7f28ed4ca6c024da8f62714c1f1cc
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
require 'spec_helper' describe BitWallet::Wallet, vcr: true do describe '#accounts' do it 'should return array of BitWallet::Accounts' do wallet = build(:wallet) wallet.accounts.should be_kind_of(BitWallet::Accounts) end end describe '#recent_transactions' do it 'should return the most recent transactions of all accounts defaulting to 10 transactions' do wallet = build(:wallet) default_account = wallet.accounts.new('') account_1 = wallet.accounts.new('1') 1.upto(11).each do |n| default_account.send_amount n, to: account_1.addresses.first end wallet.recent_transactions.size.should == 10 end # FIXME when bitcoin-client this is resolved: https://github.com/sinisterchipmunk/bitcoin-client/issues/4 it 'should allow overriding of the transaction limit' # it 'should allow overriding of the transaction limit' do # wallet = build(:wallet) # default_account = wallet.accounts.new('') # account_1 = wallet.accounts.new('1') # 1.upto(11).each do |n| # default_account.send_amount n, to: account_1.addresses.first # end # wallet.recent_transactions(limit: 5).size.should == 5 # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bit_wallet-0.1.1 | spec/bit_wallet/wallet_spec.rb |