spec/etcd/node_spec.rb in etcd-0.2.0.alpha vs spec/etcd/node_spec.rb in etcd-0.2.0.beta.1
- old
+ new
@@ -4,22 +4,22 @@
let(:client) do
Etcd.client
end
- it "should create a directory with parent key when nested keys are set" do
+ it 'should create a directory with parent key when nested keys are set' do
parent = random_key
child = random_key
value = uuid.generate
- client.set(parent+child, value)
- expect(client.get(parent+child)).to_not be_directory
+ client.set(parent + child, value: value)
+ expect(client.get(parent + child)).to_not be_directory
expect(client.get(parent)).to be_directory
end
context '#children' do
it 'should raise exception when invoked against a leaf node' do
parent = random_key
- client.create(random_key, 10)
+ client.create(random_key, value: 10)
expect do
client.get(random_key).children
end.to raise_error
end
end