Sha256: 3adb53bb7422d1d2a4ff8abc53a312dcdb03b91b6b10b1a7216bf8d9aa2fe028
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
require 'spec_helper' describe BitWallet::Addresses, vcr: {record: :once}, bitcoin_cleaner: true do let(:account) { build(:account) } subject { BitWallet::Addresses.new(account) } its(:account) { should == account } its(:new) { should be_kind_of(BitWallet::Address) } describe '#new' do context 'without any address string given' do it 'should return an Address that points to the same account' do subject.new.account.should == account end end context 'with address string given' do it 'should return an Address with the given address string' do subject.new('myaddress').address.should == 'myaddress' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems