Use fixed order in flaky spec ()

This commit is contained in:
David Roetzel 2025-03-26 14:26:24 +01:00 committed by GitHub
parent 59e189ad3c
commit 02db065571
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,7 @@ RSpec.describe 'Notifications' do
end
context 'with min_id param' do
let(:params) { { min_id: user.account.notifications.reload.first.id - 1 } }
let(:params) { { min_id: user.account.notifications.order(id: :asc).first.id - 1 } }
it 'returns a notification group covering all notifications' do
subject