Sha256: ed5eddbcb1d62211610dc70c14130b524a4a4e6ad9f06f3c647d421328a6ad03

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

require "spec_helper"

require "hamster/list"

describe Hamster::List do

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

    [
      [],
      ["A"],
      %w[A B C],
    ].each do |values|

      describe "on #{values.inspect}" do

        before do
          @original = Hamster.list(*values)
          @result = @original.send(method)
        end

        it "returns self" do
          @result.should equal(@original)
        end

      end

    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hamster-1.0.1.pre.rc.1 spec/hamster/list/copying_spec.rb