spec/hamster/hash/put_spec.rb in hamster-0.1.5 vs spec/hamster/hash/put_spec.rb in hamster-0.1.6

- old
+ new

@@ -86,8 +86,20 @@ end end + describe "with a nil key" do + + before do + @hash = Hamster::Hash.new.put(nil, "NIL") + end + + it "can locate the key/value pair" do + @hash.get(nil).should == "NIL" + end + + end + end end