Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 639b6cc4ec19338737e4e7d6beea70248c7264f8 1 parent c701267
@semaperepelitsa semaperepelitsa authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/mongoid_search_spec.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.