Skip to content

Fix random spec failures due to non-deterministic order

Bogdan Denkovych requested to merge 343862-fix-random-test-failure into master

What does this MR do and why?

Closes #343862 (closed)

See contain_exactly matcher docs https://relishapp.com/rspec/rspec-expectations/docs/built-in-matchers/contain-exactly-matcher By using this matcher we do not test the order of expected elements, but Issue.public_only and Issue.without_hidden seem to not provide ordered returned elements.

@serenafang Could you please review?

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #343862 (closed)

Edited by Peter Leitzen

Merge request reports