Sha256: a1ebea155ec21625be71881da50087f21ce5a7073a428e229adcd652e1564a9e

Contents?: true

Size: 525 Bytes

Versions: 9

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe Krikri::Enrichments::StripPunctuation do
  it_behaves_like 'a field enrichment'

  values = [{ :string => 'removes punctuation from fields',
              :start => "\tmoominpapa;... !@#$ moominmama  ",
              :end => "\tmoominpapa  moominmama  "
            },
            { :string => 'leaves other fields unaltered',
              :start => "\tmoominpapa moominmama",
              :end => "\tmoominpapa moominmama"
            }]
  it_behaves_like 'a string enrichment', values
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
krikri-0.3.3 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.3.2 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.3.1 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.2.1 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.2.0 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.1.3 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.1.2 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.1.1 spec/lib/krikri/enrichments/strip_punctuation_spec.rb
krikri-0.1.0 spec/lib/krikri/enrichments/strip_punctuation_spec.rb