Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-03-26 15:56:25 +0400
committerMarin Jankovski <marin@gitlab.com>2014-03-26 15:56:25 +0400
commit466203eb0c386b4b64512dc44cf7efa6221718df (patch)
tree468d8cd6c6f5405635f19dcd0125599f1f950b9a /spec
parent1aabfcb92d41f690e6756a7f057e85f17e30a0db (diff)
Additional check in the test.
Diffstat (limited to 'spec')
-rw-r--r--spec/models/user_spec.rb2
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