Add spec for quote policy update change (#37474)

pull/37488/head
Matt Jankowski 5 days ago committed by GitHub
parent 92ad380e11
commit 19bc3e76ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -508,6 +508,15 @@ RSpec.describe '/api/v1/statuses' do
.to start_with('application/json')
end
end
context 'when status has non-default quote policy and param is omitted' do
let(:status) { Fabricate(:status, account: user.account, quote_approval_policy: 'nobody') }
it 'preserves existing quote approval policy' do
expect { subject }
.to_not(change { status.reload.quote_approval_policy })
end
end
end
end

Loading…
Cancel
Save