Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit aa2d005

Browse files
committed
Ruby 3.4 will print the callsite
1 parent 7e73994 commit aa2d005

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spec/integration/failed_line_detection_spec.rb

+9-3
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,16 @@ def self.trigger_failure
7878

7979
run_command "./spec/default_config_spec.rb"
8080

81-
expect(last_cmd_stdout).to include("raise 'LibMod failure'").
81+
expect(
82+
last_cmd_stdout
83+
).to include("raise 'LibMod failure'").
8284
and include("raise 'AppMod failure'").
83-
and include("raise 'SpecSupport failure'").
84-
and exclude("AppMod.trigger_failure")
85+
and include("raise 'SpecSupport failure'")
86+
87+
if RUBY_VERSION.to_f > 3.3
88+
# Ruby 3.4 seems to print the calling function and we've not configured it otherwise
89+
expect(last_cmd_stdout).to include("AppMod.trigger_failure")
90+
end
8591

8692
write_file "spec/change_config_spec.rb", "
8793
require './app/app_mod'

0 commit comments

Comments
 (0)