Sometimes specs only fail on CI, and pass locally. The first thing to try is running the test suite locally in the same order locally:

Look for Randomized with seed 14427 in your CI test run output. Grab the seed and then run the test suite locally with it:

bundle exec rspec --seed 14427