spec/lib/application_spec.rb in picky-2.6.0 vs spec/lib/application_spec.rb in picky-2.7.0

- old
+ new

@@ -35,10 +35,10 @@ stopwords: /\b(and|the|of|it|in|for)\b/, splits_text_on: /[\s\/\-\,\&]+/, normalizes_words: [[/Deoxyribonucleic Acid/i, 'DNA']], substitutes_characters_with: CharacterSubstituters::WestEuropean.new, - maximum_tokens: 5 # TODO maximum_words? + maximum_tokens: 5 books_index = Index::Memory.new :books, source: Sources::DB.new('SELECT id, title, author, isbn13 as isbn FROM books', :file => 'app/db.yml') books_index.define_category :title, similarity: Similarity::DoubleMetaphone.new(3) # Up to three similar title word indexed. \ No newline at end of file