Sha256: 5253a236c83376858cb1b2c2abb658b0f47e88e1c572c9664d26ba144d042f6e
Contents?: true
Size: 579 Bytes
Versions: 7
Compression:
Stored size: 579 Bytes
Contents
require 'spec_helper' require 'hamster/hash' describe Hamster::Hash do describe ".hash" do describe "with nothing" do before do @hash = Hamster.hash end it "returns an empty hash" do @hash.should be_empty end end describe "with an implicit hash" do before do @hash = Hamster.hash("A" => "aye", "B" => "bee", "C" => "see") end it "is equivalent to repeatedly using #put" do @hash.should == Hamster.hash.put("A", "aye").put("B", "bee").put("C", "see") end end end end
Version data entries
7 entries across 7 versions & 1 rubygems