Improve the execution time for update_approvals_service_spec.rb
Problem
ee/spec/services/security/scan_result_policies/update_approvals_service_spec.rb
currently takes about 5 minutes to complete in worst case:
Finished in 5 minutes 35.9 seconds (files took 37.02 seconds to load)
65 examples, 0 failures
This is because we call service.execute
for every shared examples. But they can be improved to combining the shared examples together (triggers policy bot comment
into does not update approvals_required
& sets approvals_required to 0
) so that they execute in a group.