Sha256: ceb981889e4647f60d69f070a94af149c1aaa74b8aed520eddd7745fdb7e5774
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 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 it 'should support contains?' do expect(option(1).contains?(1)).to eq(true) expect(option(1).contains?(2)).to eq(false) expect(none.contains?(2)).to eq(false) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
totally_lazy-0.1.13 | spec/option_spec.rb |