spec/riak/node_spec.rb in riak-client-2.4.1 vs spec/riak/node_spec.rb in riak-client-2.5.0
- old
+ new
@@ -1,26 +1,26 @@
-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
+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