Browse Source

try fix failing controller spec caused by long bios

closed-social-glitch-2
beatrix-bitrot 7 years ago
parent
commit
7dd4d9de96
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      spec/controllers/api/v1/accounts/credentials_controller_spec.rb

+ 2
- 1
spec/controllers/api/v1/accounts/credentials_controller_spec.rb View File

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

Loading…
Cancel
Save