Sha256: b5038c29f6db817391d9aec785b2553159da6501a5c1e4a382452d24669a24bf

Contents?: true

Size: 275 Bytes

Versions: 2

Compression:

Stored size: 275 Bytes

Contents

require 'spec_helper'

describe Monolens, 'coerce.array' do
  subject do
    Monolens.lens('coerce.array')
  end

  it 'works' do
    expect(subject.call(12)).to eql([12])
    expect(subject.call(nil)).to eql([])
    expect(subject.call([12, 13])).to eql([12, 13])
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monolens-0.6.4 spec/monolens/stdlib/coerce/test_array.rb
monolens-0.6.3 spec/monolens/stdlib/coerce/test_array.rb