Skip to content

Commit

Permalink
Add exception_complement for TruffleRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish authored and JonRowe committed Sep 12, 2022
1 parent 62f2649 commit 3bc981f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/rspec/expectations/failure_aggregator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,10 @@ def exception_complement(block_levels)
def exception_complement(block_levels)
""
end
elsif RSpec::Support::Ruby.truffleruby?
def exception_complement(block_levels)
":in `block (#{block_levels} levels) in <module:Expectations>'"
end
elsif RUBY_VERSION > "2.0.0"
def exception_complement(block_levels)
":in `block in Expectations'"
Expand Down

0 comments on commit 3bc981f

Please sign in to comment.