Sha256: 0c672d7c13a7bf3248e5a1781b92d1ee6a42e0e18234b1020959d11ee21cdf63

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

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

require 'hamster/list'

describe Hamster::List do

  describe "#to_list" do

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

      describe "on #{values.inspect}" do

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

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

      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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