spec/etcd/leader_spec.rb in etcd-0.2.2 vs spec/etcd/leader_spec.rb in etcd-0.2.3
- old
+ new
@@ -2,11 +2,19 @@
require 'spec_helper'
describe 'mod leader' do
+ before(:all) do
+ start_daemon
+ end
+
+ after(:all) do
+ stop_daemon
+ end
+
let(:client) do
- Etcd.client
+ etcd_client
end
it 'should allow setting a key value with ttl' do
client.set_leader('/db_master1', 'db01', 10)
expect(client.get_leader('/db_master1')).to eq('db01')