Permalink
Browse files

Make sure utf-8 words are searchable when case doesn't match

  • Loading branch information...
semaperepelitsa committed Dec 16, 2011
1 parent c701267 commit 639b6cc4ec19338737e4e7d6beea70248c7264f8
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/mongoid_search_spec.rb
@@ -28,6 +28,10 @@
it "should leave utf8 characters" do
@product._keywords.should == ["amazing", "awesome", "ole", "процессор", "процессоры", "эльбрус"]
end
+
+ it "should return results in search when case doesn't match" do
+ Product.search("ЭЛЬБРУС").size.should == 1
+ end
end
context "when references are nil" do

0 comments on commit 639b6cc

Please sign in to comment.