Additional check in the test.

This commit is contained in:
Marin Jankovski 2014-03-26 12:56:25 +01:00
parent 1aabfcb92d
commit 466203eb0c
1 changed files with 2 additions and 0 deletions

View File

@ -301,6 +301,8 @@ describe User do
User.search(user1.username.downcase).to_a.should == [user1]
User.search(user2.username.upcase).to_a.should == [user2]
User.search(user2.username.downcase).to_a.should == [user2]
User.search(user1.username.downcase).to_a.count.should == 2
User.search(user2.username.downcase).to_a.count.should == 1
end
end