Sha256: 8b551127cc77ec470d074a2a6538304b62c992ed3c0acf9302c297b91f8fa83f
Contents?: true
Size: 585 Bytes
Versions: 49
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' describe Krikri::Enrichments::StripLeadingPunctuation do it_behaves_like 'a field enrichment' values = [{ :string => 'removes punctuation from beginning of field', :start => "([!.;:\tmoominpapa;:;:; moominmama! ...\n", :end => "\tmoominpapa;:;:; moominmama! ...\n" }, { :string => 'leaves other fields unaltered', :start => "'moominpapa;:;:; moominmama! ...\n'", :end => "'moominpapa;:;:; moominmama! ...\n'" }] it_behaves_like 'a string enrichment', values end
Version data entries
49 entries across 45 versions & 1 rubygems