Sha256: dff681dcd75ef302b73ab069573c2d1ba5cd6e82b1ca09024f8f6edb37161130

Contents?: true

Size: 554 Bytes

Versions: 11

Compression:

Stored size: 554 Bytes

Contents

require 'spec_helper'

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

  values = [{ :string => 'removes non-genre terms',
              :start => 'Not A Term',
              :end => nil
            },
            { :string => 'retains genre terms',
              :start => 'Book',
              :end => 'Book'
            },
            { :string => 'normalizes string form',
              :start => "\n bO  O-k!   \t",
              :end => 'Book'
            }]
  it_behaves_like 'a string enrichment', values
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
krikri-0.5.7 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.5.6 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.5.5 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.4.0 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.3.3 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.3.2 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.3.1 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.1.3 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.1.2 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.1.1 spec/lib/krikri/enrichments/genre_filter_spec.rb~
krikri-0.1.0 spec/lib/krikri/enrichments/genre_filter_spec.rb~