diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-03-26 12:56:25 +0100 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-03-26 12:56:25 +0100 |
commit | 466203eb0c386b4b64512dc44cf7efa6221718df (patch) | |
tree | 468d8cd6c6f5405635f19dcd0125599f1f950b9a /spec | |
parent | 1aabfcb92d41f690e6756a7f057e85f17e30a0db (diff) | |
download | gitlab-ce-466203eb0c386b4b64512dc44cf7efa6221718df.tar.gz |
Additional check in the test.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/user_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index cb0bf9ba517..fef6314f23a 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -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 |