Sha256: fd8814a557f636fe1bab6fbf99a555d61b373caf01bca45566389c90a3ff754b
Contents?: true
Size: 605 Bytes
Versions: 4
Compression:
Stored size: 605 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') 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
4 entries across 4 versions & 1 rubygems