about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbeatrix-bitrot <beatrix.bitrot@gmail.com>2017-06-30 16:27:52 +0000
committerbeatrix-bitrot <beatrix.bitrot@gmail.com>2017-06-30 16:27:52 +0000
commit7dd4d9de96c7e48c24a750bae54d9f467dfb3d50 (patch)
tree8e430c7fac065b46ab7a409fbf71fc484452dec1
parent46f83bb28bfe17159b01f63a7f49874fefdd184f (diff)
try fix failing controller spec caused by long bios
-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 89dbca111..7bcf9fe0e 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