Skip to content

Commit

Permalink
Make sure utf-8 words are searchable when case doesn't match
Browse files Browse the repository at this point in the history
  • Loading branch information
semaperepelitsa committed Dec 16, 2011
1 parent c701267 commit 639b6cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/mongoid_search_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 639b6cc

Please sign in to comment.