Sha256: 9254e03011b2e3ef7b4b0e994db896c8c2cd50cf6549c177352e2efc566924c3

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

require "spec_helper"
require "hamster/list"

describe Hamster::List do
  describe "#to_list" do
    [
      [],
      ["A"],
      %w[A B C],
    ].each do |values|
      context "on #{values.inspect}" do
        let(:list) { L[*values] }

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/hamster-3.0.0/spec/lib/hamster/list/to_list_spec.rb
hamster-3.0.0 spec/lib/hamster/list/to_list_spec.rb
hamster-2.0.0 spec/lib/hamster/list/to_list_spec.rb