Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ Move and improve the spec

  • Loading branch information...
commit be9aab4ad013b75b5752ca33df33e0d430082be3 1 parent 07ee04e
@floere authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 server/spec/functional/{backends → }/no_tokenize_spec.rb
View
8 ...c/functional/backends/no_tokenize_spec.rb → server/spec/functional/no_tokenize_spec.rb
@@ -10,14 +10,12 @@
end
thing = Struct.new :id, :text
- # expect do # Does not fail – because #to_s is called on the Array.
- index.add thing.new(1, ['already', 'tokenized'])
- # end.to raise_error
+ index.add thing.new(1, ['already', 'tokenized']) # Does not fail – because #to_s is called on the Array.
index.add thing.new(2, 'this should not fail')
try = Picky::Search.new index
-
- try.search('already').ids.should == [] # Not found because ['already', is indexed.
+ try.search('already').ids.should == [] # Not found because ["already", is indexed.
+ try.search('should').ids.should == [2]
end
it 'does tokenize (default)' do
index = Picky::Index.new :thing do
Please sign in to comment.
Something went wrong with that request. Please try again.