Sha256: 3523d5362510d271911012ca84eb41ae20d34b1b64ba089c53240a99b3484bcf
Contents?: true
Size: 779 Bytes
Versions: 8
Compression:
Stored size: 779 Bytes
Contents
shared_examples_for 'node set' do let(:node_set){ Cellect::NodeSet.new } it 'should connect to zoo keeper' do expect(node_set.zk).to be_nil pass_until_state_of node_set, is: :ready expect(node_set.zk).to be_connected end it 'should know the connection state' do expect(node_set.state).to be :initializing pass_until_state_of node_set, is: :ready expect(node_set).to be_ready end it 'should accept a connection string' do url_before = ENV['ZK_URL'] begin pass_until_state_of node_set, is: :ready ENV['ZK_URL'] = 'foobar' expect(node_set.send(:zk_url)).to eq 'foobar' ENV.delete 'ZK_URL' expect(node_set.send(:zk_url)).to eq 'localhost:2181' ensure ENV['ZK_URL'] = url_before end end end
Version data entries
8 entries across 8 versions & 2 rubygems