samvera / hydra-head

Samvera Repository Rails Engine
Other
98 stars 41 forks source link

Test for inclusion instead of equality to allow for different ordering #508

Closed cjcolvar closed 4 years ago

cjcolvar commented 4 years ago

Testing equality was causing this test to fail whenever the search results returned the objects in a different order than expected. The ordering is not important for this feature so switching to inclusion avoids the intermittently failing test.

Fixes #506. @samvera/hydra-head