spec/etcd/readme_spec.rb in etcd-0.2.4 vs spec/etcd/readme_spec.rb in etcd-0.3.0

- old
+ new

@@ -1,21 +1,12 @@ # Encoding: utf-8 require 'spec_helper' describe 'Etcd specs for the main etcd README examples' do - - before(:all) do - start_daemon - end - - after(:all) do - stop_daemon - end - let(:client) do - Etcd.client + etcd_client end shared_examples 'response with valid node data' do |action| if action == :delete it 'should not have value' do @@ -305,10 +296,9 @@ expect(client.delete('/foo_dir', recursive: true).action).to eq('delete') end end context 'hidden nodes' do - before(:all) do etcd_client.set('/_message', value: 'Hello Hidden World') etcd_client.set('/message', value: 'Hello World') end