spec/zk/zookeeper_spec.rb in zk-1.9.4 vs spec/zk/zookeeper_spec.rb in zk-1.9.5

- old
+ new

@@ -7,9 +7,15 @@ @zk.create(@base_path) rescue ZK::Exceptions::NodeExists end end + describe ZK, "with no authentication" do + it "should add authentication" do + @zk.add_auth({:scheme => 'digest', :cert => 'bob:password'}).should include({:rc => 0}) + end + end + describe ZK, "with no paths" do it "should not exist" do @zk.exists?("#{@base_path}/test").should be_false end