Sha256: e3bf1aab0727774c871bf2db46f4822dda7aecaf93229f382f3f517fef02da16
Contents?: true
Size: 710 Bytes
Versions: 9
Compression:
Stored size: 710 Bytes
Contents
require 'spec_helper' describe Krikri::Enrichments::RemoveEmptyFields do it_behaves_like 'a field enrichment' values = [{ :string => 'removes empty fields', :start => '', :end => nil }, { :string => 'removes whitespace only fields', :start => ' ', :end => nil }, { :string => 'removes whitespace only fields with newlines', :start => "\n\t \t\n", :end => nil }, { :string => 'leaves non-empty fields unaltered', :start => 'moomin', :end => 'moomin' }] it_behaves_like 'a string enrichment', values end
Version data entries
9 entries across 9 versions & 1 rubygems