-
- Downloads
There was a problem fetching the pipeline summary.
Merge branch 'looser-time-in-specs' into 'master'
Add a be_like_time matcher and use it in specs ## What does this MR do? Introduces a be_like_time matcher and refactors existing code to use it ## Are there points in the code the reviewer needs to double check? A few sites use be_within(2.seconds) or 5.minutes - I didn't change those ## Why was this MR needed? A custom matcher helps to document that we need to compare times loosely, and keeps the fudge factor from being declared in multiple places. ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if it does - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? Related to !6935 See merge request !6936
Showing
- spec/models/issue/metrics_spec.rb 4 additions, 4 deletionsspec/models/issue/metrics_spec.rb
- spec/models/merge_request/metrics_spec.rb 1 addition, 1 deletionspec/models/merge_request/metrics_spec.rb
- spec/requests/api/issues_spec.rb 2 additions, 2 deletionsspec/requests/api/issues_spec.rb
- spec/requests/api/notes_spec.rb 1 addition, 1 deletionspec/requests/api/notes_spec.rb
- spec/services/create_deployment_service_spec.rb 3 additions, 3 deletionsspec/services/create_deployment_service_spec.rb
- spec/services/git_push_service_spec.rb 1 addition, 1 deletionspec/services/git_push_service_spec.rb
- spec/support/matchers/be_like_time.rb 13 additions, 0 deletionsspec/support/matchers/be_like_time.rb
- spec/workers/pipeline_metrics_worker_spec.rb 2 additions, 2 deletionsspec/workers/pipeline_metrics_worker_spec.rb
Loading
Please register or sign in to comment