Improve rspec for TriggerPipelineScheduleService
What does this MR do and why?
Describe in detail what your merge request does and why.
Content
- Improve rspec for TriggerPipelineScheduleService
- Remove the test for retrying before success, since it should be a feature of Retriable, so it's not needed to retest.
- Use factory's trait
Ref: gitlab-com/gl-infra/delivery#19458 (closed)
Author Check-list
-
Has documentation been updated? -
Ensure there is a correct type label (typemaintenance, typebug or typefeature) assigned to this merge request.