summaryrefslogtreecommitdiff
path: root/spec/ruby/language/rescue_spec.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2024-02-15 16:00:51 +0900
committerYusuke Endoh <mame@ruby-lang.org>2024-02-15 19:11:58 +0900
commit8f2c231642c9f94947b75769d3cc21b1127b2135 (patch)
tree81e26f9add3eda627f945fb492f791f92dbdb197 /spec/ruby/language/rescue_spec.rb
parent9d1b000bd1bb747bcc49e2d7677fb7c2b31c5a94 (diff)
ruby-spec: Accept the receiver in backtraces
Diffstat (limited to 'spec/ruby/language/rescue_spec.rb')
-rw-r--r--spec/ruby/language/rescue_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/language/rescue_spec.rb b/spec/ruby/language/rescue_spec.rb
index d8ba14378f..d6e7b6c802 100644
--- a/spec/ruby/language/rescue_spec.rb
+++ b/spec/ruby/language/rescue_spec.rb
@@ -263,7 +263,7 @@ describe "The rescue keyword" do
rescue ArgumentError
end
rescue StandardError => e
- e.backtrace.first.should =~ /:in [`']raise_standard_error'/
+ e.backtrace.first.should =~ /:in [`'](?:RescueSpecs\.)?raise_standard_error'/
else
fail("exception wasn't handled by the correct rescue block")
end