Sha256: 8603fd0a0f91848d911983adb0888b13e806c52c79f3aa3232054b005cd9b27d

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

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

require 'hamster/list'

describe Hamster::List do

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

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

      describe "on #{values.inspect}" do

        before do
          @list = Hamster.list(*values)
        end

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

      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hamster-0.1.19 spec/hamster/list/copying_spec.rb
hamster-0.1.18 spec/hamster/list/copying_spec.rb
hamster-0.1.17 spec/hamster/list/copying_spec.rb
hamster-0.1.16 spec/hamster/list/copying_spec.rb
hamster-0.1.15 spec/hamster/list/copying_spec.rb