Consolidated expectations into fewer create_pipeline_service/rules specs
What does this MR do?
This is a follow-up to a recently merged MR that condenses some expectations about validity and invalidity into single specs. There's not a great reason to keep them separate, and this implementation runs quite a bit faster, while making the exact same assertions in each context.
Results
drews-MacBook-Pro-2:gitlab drew$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'upstream/master'.
drews-MacBook-Pro-2:gitlab drew$ bundle exec rspec /Users/drew/gitlab/gdk/gitlab/spec/services/ci/create_pipeline_service/rules_spec.rb
....................................
Finished in 43.74 seconds (files took 25.44 seconds to load)
36 examples, 0 failures
drews-MacBook-Pro-2:gitlab drew$ git checkout rules-specs-consolidation
Switched to branch 'rules-specs-consolidation'
drews-MacBook-Pro-2:gitlab drew$ bundle exec rspec /Users/drew/gitlab/gdk/gitlab/spec/services/ci/create_pipeline_service/rules_spec.rb
.....................
Finished in 13.62 seconds (files took 21.36 seconds to load)
21 examples, 0 failures
drews-MacBook-Pro-2:gitlab drew$
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Tested in all supported browsers
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
- [-] Label as security and @ mention
@gitlab-com/gl-security/appsec
- [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
- [-] Security reports checked/validated by a reviewer from the AppSec team