Sha256: a970efa20369256f2c808e7d3d54a40e38ff9807818bf565050ca82ef26ab6da
Contents?: true
Size: 533 Bytes
Versions: 2
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' describe DCell::Global do 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dcell-0.7.1 | spec/dcell/global_spec.rb |
dcell-0.0.1 | spec/dcell/global_spec.rb |