mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #1412 from eparreno/bug/fix_users_controller_spec
fix user_controller_spec when testing too long usernames
This commit is contained in:
commit
73711bc4b8
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ describe UsersController do
|
||||||
|
|
||||||
context 'is too long' do
|
context 'is too long' do
|
||||||
before do
|
before do
|
||||||
xhr :get, :check_username, username: 'abcdefghijklmnop'
|
xhr :get, :check_username, username: generate_username(User.username_length.last + 1)
|
||||||
end
|
end
|
||||||
include_examples 'checking an invalid username'
|
include_examples 'checking an invalid username'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue