diff options
author | Surinna Curtis <ekiru.0@gmail.com> | 2017-09-10 19:43:52 -0500 |
---|---|---|
committer | Surinna Curtis <ekiru.0@gmail.com> | 2017-09-10 19:43:52 -0500 |
commit | 3cac5bc2c3105ab0daab1e6892348d5be96d66a3 (patch) | |
tree | 1d03a9d8e938cb5a2b8da1a5b41e4da33cba3cb1 /spec | |
parent | 29c44fa5fa1f7569326cfbc88af4a369e6c94bc8 (diff) |
Fix a spuriously failing spec that assumed we required short bios like upstream
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/api/v1/accounts/credentials_controller_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/accounts/credentials_controller_spec.rb b/spec/controllers/api/v1/accounts/credentials_controller_spec.rb index 461b8b34b..247420d08 100644 --- a/spec/controllers/api/v1/accounts/credentials_controller_spec.rb +++ b/spec/controllers/api/v1/accounts/credentials_controller_spec.rb @@ -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 |