Sha256: 40d187259aa71141c8d38e6b2e50667a496baf795630fd789806167b476b0dcd

Contents?: true

Size: 382 Bytes

Versions: 10

Compression:

Stored size: 382 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

require 'hamster/hash'
require 'hamster/set'

describe Hamster::Hash do

  describe "#keys" do

    before do
      hash = Hamster.hash("A" => "aye", "B" => "bee", "C" => "see")
      @result = hash.keys
    end

    it "returns the keys as a set" do
      @result.should == Hamster.set("A", "B", "C")
    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hamster-0.3.6 spec/hamster/hash/keys_spec.rb
hamster-0.3.5 spec/hamster/hash/keys_spec.rb
hamster-0.3.4 spec/hamster/hash/keys_spec.rb
hamster-0.3.3 spec/hamster/hash/keys_spec.rb
hamster-0.3.2 spec/hamster/hash/keys_spec.rb
hamster-0.3.1 spec/hamster/hash/keys_spec.rb
hamster-0.3.0 spec/hamster/hash/keys_spec.rb
hamster-0.2.13 spec/hamster/hash/keys_spec.rb
hamster-0.2.12 spec/hamster/hash/keys_spec.rb
hamster-0.2.11 spec/hamster/hash/keys_spec.rb