Sha256: b93ed8dd5c81e7457db062d2504b63839a9294e0856a11daec9195c97e7c4945

Contents?: true

Size: 657 Bytes

Versions: 9

Compression:

Stored size: 657 Bytes

Contents

require 'spec_helper'

describe BitWallet::Addresses, vcr: 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

9 entries across 9 versions & 1 rubygems

Version Path
bit_wallet-0.7.1 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.7.0 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.6.1 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.6.0 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.5.0 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.4.0 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.3.0 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.2.0 spec/bit_wallet/addresses_spec.rb
bit_wallet-0.1.1 spec/bit_wallet/addresses_spec.rb