Sha256: 286180cbf397a887e06fd0b7eb256d3ed04f848d3c4ea5f9c8a0a32dd5606619

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

require_relative 'spec_helper'

describe 'Option' do
  it 'should support is_empty? & is_defined?' do
    expect(some(1).is_empty?).to eq(false)
    expect(some(1).is_defined?).to eq(true)
    expect(none.is_empty?).to eq(true)
    expect(none.is_defined?).to eq(false)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
totally_lazy-0.1.12 spec/option_spec.rb
totally_lazy-0.1.11 spec/option_spec.rb
totally_lazy-0.1.10 spec/option_spec.rb
totally_lazy-0.1.9 spec/option_spec.rb
totally_lazy-0.1.0 spec/option_spec.rb