Sha256: a13749d1a9ed2725b05fee1eb1c57b10b4d77af12f6226e7a0ab1075141384cd
Contents?: true
Size: 406 Bytes
Versions: 18
Compression:
Stored size: 406 Bytes
Contents
require 'helper' describe "Hash.from_store" do it "should return hash" do Hash.from_store(:foo => 'bar')[:foo].should == 'bar' Hash.from_store('foo' => 'bar')['foo'].should == 'bar' end it "should be hash if nil" do hash = Hash.from_store(nil) hash.should == {} end end describe "Hash.store_default" do it "returns emtpy hash" do Hash.store_default.should == {} end end
Version data entries
18 entries across 18 versions & 1 rubygems