Sha256: 32030b0a9da8220984de55d00f5ec8c604208b14eb189f5136cbe029e77831b8

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

require "spec_helper"

require "hamster/list"

describe Hamster::List do

  describe "#to_list" do

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

      describe "on #{values.inspect}" do

        before do
          @original = Hamster.list(*values)
          @result = @original.to_list
        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/to_list_spec.rb