Sha256: 4b859aff77a38879a255d15f2e907233b795690b87887da39b86a7f8129e7534
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
require 'spec_helper' describe DCell::Directory do it "stores node addresses" do DCell::Directory["foobar"] = "tcp://localhost:1870" DCell::Directory["foobar"].should == "tcp://localhost:1870" end it "presents all stored addresses" do DCell::Directory["foo"] = "tcp://fooaddress" DCell::Directory["bar"] = "tcp://baraddress" DCell::Directory.all.should include("foo") DCell::Directory.all.should include("bar") end it "clears node addresses" do DCell::Directory["foo"] = "tcp://fooaddress" DCell::Directory["foobar"].should == "tcp://localhost:1870" ["foo", "foobar"].each do |node| DCell::Directory.remove node end DCell::Directory["foobar"].should_not == "tcp://localhost:1870" end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
dcell-0.16.1 | spec/dcell/directory_spec.rb |
stn-dcell-0.16.0 | spec/dcell/directory_spec.rb |