Sha256: a45ab4f3dfc1ffc59a9d30a845f2c59ac20c17a7da4c55c8f95a50bd552d6d92

Contents?: true

Size: 301 Bytes

Versions: 31

Compression:

Stored size: 301 Bytes

Contents

shared_examples 'a string enrichment' do |values|
  it 'skips non-string values' do
    date = Date.today
    expect(subject.enrich_value(date)).to eq date
  end

  it 'matches values' do
    values.each do |value|
      expect(subject.enrich_value(value[:start])).to eq value[:end]
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
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.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.8.9 spec/support/shared_examples/string_enrichment.rb~
krikri-0.8.8 spec/support/shared_examples/string_enrichment.rb~
krikri-0.8.7 spec/support/shared_examples/string_enrichment.rb~
krikri-0.8.6 spec/support/shared_examples/string_enrichment.rb~
krikri-0.8.5 spec/support/shared_examples/string_enrichment.rb~
krikri-0.8.4 spec/support/shared_examples/string_enrichment.rb~
krikri-0.8.2 spec/support/shared_examples/string_enrichment.rb~
krikri-0.8.0 spec/support/shared_examples/string_enrichment.rb~
krikri-0.7.3 spec/support/shared_examples/string_enrichment.rb~
krikri-0.7.2 spec/support/shared_examples/string_enrichment.rb~
krikri-0.7.1 spec/support/shared_examples/string_enrichment.rb~
krikri-0.6.0 spec/support/shared_examples/string_enrichment.rb~