spec/riak/node_spec.rb in riak-client-2.0.0 vs spec/riak/node_spec.rb in riak-client-2.1.0
- old
+ new
@@ -5,21 +5,21 @@
@client = Riak::Client.new
@node = Riak::Client::Node.new @client
end
describe 'when initializing' do
- it 'should default to the local interface on port 8087' 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 'should accept a host' do
+ 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 'should accept a Protobuffs port' do
+ 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