Commit 466203eb0c386b4b64512dc44cf7efa6221718df
1 parent
1aabfcb9
Exists in
spb-stable
and in
3 other branches
Additional check in the test.
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
spec/models/user_spec.rb
@@ -301,6 +301,8 @@ describe User do | @@ -301,6 +301,8 @@ describe User do | ||
301 | User.search(user1.username.downcase).to_a.should == [user1] | 301 | User.search(user1.username.downcase).to_a.should == [user1] |
302 | User.search(user2.username.upcase).to_a.should == [user2] | 302 | User.search(user2.username.upcase).to_a.should == [user2] |
303 | User.search(user2.username.downcase).to_a.should == [user2] | 303 | User.search(user2.username.downcase).to_a.should == [user2] |
304 | + User.search(user1.username.downcase).to_a.count.should == 2 | ||
305 | + User.search(user2.username.downcase).to_a.count.should == 1 | ||
304 | end | 306 | end |
305 | end | 307 | end |
306 | 308 |