Sha256: 49ce1f64a1e2b23da03fe0d94ef989ec9da3bd73d697901953c19288f9fd581f
Contents?: true
Size: 692 Bytes
Versions: 8
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' describe Riak::Client::Node do before :each do @client = Riak::Client.new @node = Riak::Client::Node.new @client end describe 'when initializing' do it 'defaults to the local interface on port 8087' do node = Riak::Client::Node.new @client expect(node.host).to eq('127.0.0.1') expect(node.pb_port).to eq(8087) end it 'accepts a host' do node = Riak::Client::Node.new(@client, :host => 'riak.basho.com') expect(node.host).to eq("riak.basho.com") end it 'accepts a Protobuffs port' do node = Riak::Client::Node.new @client, :pb_port => 9000 expect(node.pb_port).to eq(9000) end end end
Version data entries
8 entries across 8 versions & 2 rubygems