0
0
Fork 0

Fix a spuriously failing spec that assumed we required short bios like upstream

This commit is contained in:
Surinna Curtis 2017-09-10 19:43:52 -05:00
parent 29c44fa5fa
commit 3cac5bc2c3
2 changed files with 6 additions and 2 deletions

View file

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