Sha256: 2e9855b387a266a672338402baea0e98e469c3faf2cce835fcc5a196d988b5d8
Contents?: true
Size: 825 Bytes
Versions: 12
Compression:
Stored size: 825 Bytes
Contents
shared_context "a DCell registry" do context "node registry" do before :each do subject.clear_nodes end it "stores node addresses" do address = "tcp://localhost:7777" subject.set_node("foobar", address) subject.get_node("foobar").should == address end it "stores the IDs of all nodes" do subject.set_node("foobar", "tcp://localhost:7777") subject.nodes.should include "foobar" end end context "global registry" do before :each do subject.clear_globals end it "stores values" do subject.set_global("foobar", [1,2,3]) subject.get_global("foobar").should == [1,2,3] end it "stores the keys of all globals" do subject.set_global("foobar", true) subject.global_keys.should include "foobar" end end end
Version data entries
12 entries across 12 versions & 1 rubygems