Sha256: b1863b83b22b5fe57a42f9c738f5ea28f49f1627ed9b36a6e55f8c8ea5c4ab7d
Contents?: true
Size: 604 Bytes
Versions: 6
Compression:
Stored size: 604 Bytes
Contents
require 'spec_helper' describe BitWallet do describe "#min_conf" do it "can be set" do described_class.min_conf = 2 expect(described_class.min_conf).to eq 2 end context "it is nil" do it "is 0" do described_class.min_conf = nil expect(described_class.min_conf).to eq 0 end 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
6 entries across 6 versions & 1 rubygems