Add spec for quote policy update change (#37474)

This commit is contained in:
Matt Jankowski 2026-01-13 11:21:55 -05:00 committed by Claire
parent 57e0c6562f
commit f1c9c89c39

View file

@ -508,6 +508,15 @@ RSpec.describe '/api/v1/statuses' do
.to start_with('application/json') .to start_with('application/json')
end end
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
end end