Sha256: 2eb1958af72de4b58d6f86e2c6b1b2b03a1c25ee91de3afadcd10168c5780d91
Contents?: true
Size: 680 Bytes
Versions: 9
Compression:
Stored size: 680 Bytes
Contents
require "spec_helper" module BitWallet describe InstantiatesBitcoinClient, ".execute" do context "a hash config with username, password, host, port, ssl" do it "returns a Bitcoin::Client given a hash config" do client = double allow(Bitcoin::Client).to receive(:new). with("username", "password", host: "myhost", port: 8288, ssl: false). and_return(client) resulting_client = described_class.execute( username: "username", password: "password", host: "myhost", port: 8288, ssl: false ) expect(resulting_client).to eq(client) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems