From c37723c74c9d07516ca0c0ff46f476bb2f61832f Mon Sep 17 00:00:00 2001 From: Phil Lee Date: Mon, 14 Oct 2024 12:24:56 +0100 Subject: [PATCH] fix test: ordering must now be explicitly called --- spec/models/claim_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/claim_spec.rb b/spec/models/claim_spec.rb index a6962a42ff..e63f7660eb 100644 --- a/spec/models/claim_spec.rb +++ b/spec/models/claim_spec.rb @@ -834,7 +834,7 @@ end describe ".payrollable" do - subject { described_class.payrollable } + subject { described_class.payrollable.order(:submitted_at) } let(:payroll_run) { create(:payroll_run, claims_counts: {Policies::StudentLoans => 1}) } let!(:submitted_claim) { create(:claim, :submitted) }