Fix a spuriously failing spec that assumed we required short bios like upstream
This commit is contained in:
@ -51,7 +51,9 @@ describe Api::V1::Accounts::CredentialsController do
|
||||
|
||||
describe 'with invalid data' do
|
||||
before do
|
||||
patch :update, params: { note: 'This is too long. ' * 10 }
|
||||
note = 'This is too long. '
|
||||
note = note + 'a' * (Account::MAX_NOTE_LENGTH - note.length + 1)
|
||||
patch :update, params: { note: note }
|
||||
end
|
||||
|
||||
it 'returns http unprocessable entity' do
|
||||
|
Reference in New Issue
Block a user