Sha256: 837558d59c5853b879df09d67cba6964c55128dee80a6ade6f3eb1fedef2905a

Contents?: true

Size: 347 Bytes

Versions: 15

Compression:

Stored size: 347 Bytes

Contents

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

require 'hamster/set'

describe Hamster::Set do

  before do
    @set = Hamster.set("A", "B", "C")
  end

  [:dup, :clone].each do |method|

    describe "##{method}" do

      it "returns self" do
        @set.send(method).should equal(@set)
      end

    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hamster-0.2.5 spec/hamster/set/copying_spec.rb
hamster-0.2.4 spec/hamster/set/copying_spec.rb
hamster-0.2.3 spec/hamster/set/copying_spec.rb
hamster-0.2.2 spec/hamster/set/copying_spec.rb
hamster-0.2.1 spec/hamster/set/copying_spec.rb
hamster-0.2.0 spec/hamster/set/copying_spec.rb
hamster-0.1.23 spec/hamster/set/copying_spec.rb
hamster-0.1.22 spec/hamster/set/copying_spec.rb
hamster-0.1.21 spec/hamster/set/copying_spec.rb
hamster-0.1.20 spec/hamster/set/copying_spec.rb
hamster-0.1.19 spec/hamster/set/copying_spec.rb
hamster-0.1.18 spec/hamster/set/copying_spec.rb
hamster-0.1.17 spec/hamster/set/copying_spec.rb
hamster-0.1.16 spec/hamster/set/copying_spec.rb
hamster-0.1.15 spec/hamster/set/copying_spec.rb