Sha256: 19423a1c8406c150199a2deef142cc9402fc6c35251d41b5c62ccb212e6501f4
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
require File.expand_path('../../spec_helper', File.dirname(__FILE__)) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.2.7 | spec/hamster/hash/construction_spec.rb |
hamster-0.2.6 | spec/hamster/hash/construction_spec.rb |