Sha256: 2b010634e8437cb048cdd2c14a1cbd79ddc61493dd84f42b4aa911c594abf62f
Contents?: true
Size: 642 Bytes
Versions: 10
Compression:
Stored size: 642 Bytes
Contents
require 'spec_helper' describe DCell::Global do it "can handle unexisting keys" do expect { DCell::Global[:unexisting] }.to_not raise_exception end it "stores values" do DCell::Global[:the_answer] = 42 DCell::Global[:the_answer].should == 42 # Double check the global value is available on all nodes node = DCell::Node['test_node'] node[:test_actor].the_answer.should == 42 end it "stores the keys of all globals" do DCell::Global[:foo] = 1 DCell::Global[:bar] = 2 DCell::Global[:baz] = 3 keys = DCell::Global.keys [:foo, :bar, :baz].each { |key| keys.should include key } end end
Version data entries
10 entries across 10 versions & 1 rubygems