Sha256: 1fc6089a985106d7d53d7ebdaf361b6be9a5c844f3bd720ed3a6dff141d919f7

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

require "spec_helper"
require "hamster/hash"

describe Hamster::Hash do
  let(:hash) { H["A" => "aye", "B" => "bee", "C" => "see"] }

  [:dup, :clone].each do |method|
    describe "##{method}" do
      it "returns self" do
        hash.send(method).should equal(hash)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/hamster-3.0.0/spec/lib/hamster/hash/copying_spec.rb
hamster-3.0.0 spec/lib/hamster/hash/copying_spec.rb
hamster-2.0.0 spec/lib/hamster/hash/copying_spec.rb