Permalink
Browse files

! specs, ! regexp

  • Loading branch information...
1 parent b2e3f6e commit 6107b3dc08ba71b42c707236da1a4eda492c401c @floere committed May 13, 2012
@@ -46,7 +46,7 @@ def each
#
books_index = Index.new :books do
source { Books.new }
- indexing removes_characters: /[^[a-z0-9]\s\/\-\_\:\"\&\.]/i,
+ indexing removes_characters: /[^a-z0-9\s\/\-\_\:\"\&\.]/i,
stopwords: /\b(and|the|of|it|in|for)\b/i,
splits_text_on: /[\s\/\-\_\:\"\&\.]/
category :title,
@@ -14,7 +14,7 @@
# Testing a count of results.
#
- it { books.search('a s').total.should == 42 }
+ it { books.search('a s').total.should == 57 }
# Testing a specific order of result ids.
#
@@ -33,7 +33,7 @@ def each
#
books_index = Index.new :books do
source { Books.new }
- indexing removes_characters: /[^[a-z0-9]\s\/\-\_\:\"\&\.]/i,
+ indexing removes_characters: /[^a-z0-9\s\/\-\_\:\"\&\.]/i,
stopwords: /\b(and|the|of|it|in|for)\b/i,
splits_text_on: /[\s\/\-\_\:\"\&\.]/
category :title,
@@ -14,7 +14,7 @@
# Testing a count of results.
#
- it { books.search('a s').total.should == 42 }
+ it { books.search('a s').total.should == 57 }
# Testing a specific order of result ids.
#

0 comments on commit 6107b3d

Please sign in to comment.