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

Version Path
krikri-0.15.2 spec/support/shared_examples/string_enrichment.rb
krikri-0.15.1 spec/support/shared_examples/string_enrichment.rb
krikri-0.15.0 spec/support/shared_examples/string_enrichment.rb
krikri-0.14.0 spec/support/shared_examples/string_enrichment.rb
krikri-0.13.2 spec/support/shared_examples/string_enrichment.rb
krikri-0.13.1 spec/support/shared_examples/string_enrichment.rb
krikri-0.13.0 spec/support/shared_examples/string_enrichment.rb
krikri-0.12.4 spec/support/shared_examples/string_enrichment.rb
krikri-0.12.3 spec/support/shared_examples/string_enrichment.rb
krikri-0.12.1 spec/support/shared_examples/string_enrichment.rb
krikri-0.12.0 spec/support/shared_examples/string_enrichment.rb
krikri-0.12.0.pre.rc.1 spec/support/shared_examples/string_enrichment.rb
krikri-0.11.2 spec/support/shared_examples/string_enrichment.rb
krikri-0.11.1 spec/support/shared_examples/string_enrichment.rb
krikri-0.11.0 spec/support/shared_examples/string_enrichment.rb
krikri-0.10.1 spec/support/shared_examples/string_enrichment.rb
krikri-0.10.0 spec/support/shared_examples/string_enrichment.rb
krikri-0.9.0 spec/support/shared_examples/string_enrichment.rb
krikri-0.8.9 spec/support/shared_examples/string_enrichment.rb
krikri-0.8.8 spec/support/shared_examples/string_enrichment.rb