Sha256: 3636652a1605045ef51bb2c3c53346427af1ff4677053990794ebe02760db139

Contents?: true

Size: 482 Bytes

Versions: 11

Compression:

Stored size: 482 Bytes

Contents

require 'spec_helper'

describe BitWallet do

  describe '.config' do
    it 'should be a configurable object' do
      described_class.config.min_conf = 22
      described_class.config.min_conf.should == 22
    end
  end

  describe '.at' do
    it 'should wrap the a wallet wrapping the Bitcoin client' do
      wallet = double
      BitWallet::Wallet.should_receive(:new).with(args: 'a').and_return(wallet)
      described_class.at(args: 'a').should == wallet
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bit_wallet-0.6.1 spec/bit_wallet_spec.rb
bit_wallet-0.6.0 spec/bit_wallet_spec.rb
bit_wallet-0.5.0 spec/bit_wallet_spec.rb
bit_wallet-0.4.0 spec/bit_wallet_spec.rb
bit_wallet-0.3.0 spec/bit_wallet_spec.rb
bit_wallet-0.2.0 spec/bit_wallet_spec.rb
bit_wallet-0.1.1 spec/bit_wallet_spec.rb
bit_wallet-0.1.0 spec/bit_wallet_spec.rb
bit_wallet-0.0.3 spec/bit_wallet_spec.rb
bit_wallet-0.0.2 spec/bit_wallet_spec.rb
bit_wallet-0.0.1 spec/bit_wallet_spec.rb