Sha256: 0e9f3e6b9d726e468447c759cbd5300152a5ab4c8f3b02877ddd13d5f79d832f
Contents?: true
Size: 515 Bytes
Versions: 45
Compression:
Stored size: 515 Bytes
Contents
shared_examples 'a string enrichment' do |values| values.each do |value| it value[:string] do expect(subject.enrich_value(value[:start])).to eq value[:end] end end end shared_examples 'skips non-strings' do it 'skips non-string values' do date = Date.today expect(subject.enrich_value(date)).to eq date end end shared_examples 'deletes non-strings' do it 'deletes non-string values' do date = Date.today expect(Array(subject.enrich_value(date)).compact).to eq [] end end
Version data entries
45 entries across 45 versions & 1 rubygems