From 68414488b3a98d46e16e5530cf55a37eeed649d3 Mon Sep 17 00:00:00 2001
From: Jon Rowe <hello@jonrowe.co.uk>
Date: Tue, 1 Oct 2024 21:50:53 +0100
Subject: [PATCH] Relax constraint for Ruby 3.4.0 in file load error spec

---
 spec/integration/spec_file_load_errors_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/integration/spec_file_load_errors_spec.rb b/spec/integration/spec_file_load_errors_spec.rb
index d9acf96e9..435d2ff26 100644
--- a/spec/integration/spec_file_load_errors_spec.rb
+++ b/spec/integration/spec_file_load_errors_spec.rb
@@ -245,7 +245,7 @@ def foo
                 5  end
             EOS
           end
-          expect(formatted_output).to include "./tmp/aruba/broken_file.rb:5: syntax error"
+          expect(formatted_output).to include %r{./tmp/aruba/broken_file.rb:\d: syntax error}
 
           expect(formatted_output).to include unindent(<<-EOS)
             Finished in n.nnnn seconds (files took n.nnnn seconds to load)