mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
fix user_controller_spec when testing too long usernames
This commit is contained in:
@ -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'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user