Sha256: d40a2b0198eddc08dcabd2b09cfce1d94087ff4a8bd417e9fd75bb7d0e354084

Contents?: true

Size: 255 Bytes

Versions: 11

Compression:

Stored size: 255 Bytes

Contents

require 'spec_helper'

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

  it 'works' do
    expect(subject.call(12)).to eql('12')
  end

  it 'accepts null' do
    expect(subject.call(nil)).to eql('')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
monolens-0.6.4 spec/monolens/stdlib/coerce/test_string.rb
monolens-0.6.3 spec/monolens/stdlib/coerce/test_string.rb
monolens-0.6.2 spec/monolens/stdlib/coerce/test_string.rb
monolens-0.6.1 spec/monolens/stdlib/coerce/test_string.rb
monolens-0.6.0 spec/monolens/stdlib/coerce/test_string.rb
monolens-0.5.3 spec/monolens/coerce/test_string.rb
monolens-0.5.2 spec/monolens/coerce/test_string.rb
monolens-0.5.1 spec/monolens/coerce/test_string.rb
monolens-0.5.0 spec/monolens/coerce/test_string.rb
monolens-0.4.0 spec/monolens/coerce/test_string.rb
monolens-0.3.0 spec/monolens/coerce/test_string.rb