fix user_controller_spec when testing too long usernames

This commit is contained in:
Emili Parreno 2013-09-05 12:50:53 +02:00
parent cde631cbd1
commit 4a0f3b3ac2
1 changed files with 1 additions and 1 deletions

View File

@ -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'