spec/dcell/global_spec.rb in dcell-0.7.1 vs spec/dcell/global_spec.rb in dcell-0.8.0
- old
+ new
@@ -1,7 +1,11 @@
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