Fix a spuriously failing spec that assumed we required short bios like upstream
This commit is contained in:
parent
29c44fa5fa
commit
3cac5bc2c3
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue