Sha256: 832bed6e6990541b63434a6d47a4758c9b7118a5b6d53438d0dd422a2f948fbf

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe Hamster::Hash do

  describe ".[]" do

    before do
      @hash = Hamster::Hash["A" => "aye", "B" => "bee", "C" => "see"]
    end

    it "is equivalent to repeatedly using #put" do
      @hash.should eql(Hamster::Hash.new.put("A", "aye").put("B", "bee").put("C", "see"))
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hamster-0.1.8 spec/hamster/hash/construction_spec.rb