about summary refs log tree commit diff
path: root/spec/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/api')
-rw-r--r--spec/controllers/api/v1/accounts/credentials_controller_spec.rb3
1 files changed, 2 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 4a3100348..3f655c7b2 100644
--- a/spec/controllers/api/v1/accounts/credentials_controller_spec.rb
+++ b/spec/controllers/api/v1/accounts/credentials_controller_spec.rb
@@ -44,7 +44,8 @@ describe Api::V1::Accounts::CredentialsController do
 
     describe 'with invalid data' do
       before do
-        patch :update, params: { note: 'This is too long. ' * 10 }
+        # note length limit is 501, presently hardcoded, so give it 510 to fail
+        patch :update, params: { note: '1234567890' * 51 }
       end
 
       it 'returns http unprocessable entity' do