From 116417b7ab1967721dd44c587196dd83bf38731f Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 20 May 2024 14:15:03 -0700 Subject: [PATCH] Make caller_logging spec handle backtrace quoting changes in Ruby 3.4 --- spec/extensions/caller_logging_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/extensions/caller_logging_spec.rb b/spec/extensions/caller_logging_spec.rb index 6ea7aa564f..0204805d1d 100644 --- a/spec/extensions/caller_logging_spec.rb +++ b/spec/extensions/caller_logging_spec.rb @@ -19,7 +19,7 @@ def exec_sql(sql) @log_stream.rewind lines = @log_stream.read.split("\n") lines.length.must_equal 1 - lines[0].must_match(/ \(source: #{__FILE__}:#{exec_sql_line}:in `exec_sql'\) SELECT \* FROM items\z/) + lines[0].must_match(/ \(source: #{__FILE__}:#{exec_sql_line}:in [`']exec_sql'\) SELECT \* FROM items\z/) end it "should allow formatting of caller information" do @@ -37,7 +37,7 @@ def exec_sql(sql) @log_stream.rewind lines = @log_stream.read.split("\n") lines.length.must_equal 1 - lines[0].must_match(/ \(source: #{__FILE__}:#{line}:in `block.+\) SELECT \* FROM items\z/) + lines[0].must_match(/ \(source: #{__FILE__}:#{line}:in [`']block.+\) SELECT \* FROM items\z/) end it "should not log caller information if all callers lines are filtered" do