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

Commit 4b0e6e4

Browse files
committed
Fix spec on ruby head
1 parent 1e91bd4 commit 4b0e6e4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spec/integration/bisect_runners_spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,18 @@ def with_runner(&block)
8282
end
8383
"
8484

85+
rspec_description =
86+
if RUBY_VERSION.to_f > 3.2
87+
"module RSpec"
88+
else
89+
"RSpec:Module"
90+
end
91+
8592
with_runner do |runner|
8693
expect {
8794
runner.original_results
8895
}.to raise_error(Bisect::BisectFailedError, a_string_including(
89-
"undefined method `escribe' for RSpec:Module",
96+
"undefined method `escribe' for #{rspec_description}",
9097
'stdout in a_spec',
9198
'stderr in a_spec'
9299
))

0 commit comments

Comments
 (0)