aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/dependencies/raises_exception_without_blame_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/dependencies/raises_exception_without_blame_file.rb')
-rw-r--r--activesupport/test/dependencies/raises_exception_without_blame_file.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activesupport/test/dependencies/raises_exception_without_blame_file.rb b/activesupport/test/dependencies/raises_exception_without_blame_file.rb
new file mode 100644
index 0000000000..3a6533cd3a
--- /dev/null
+++ b/activesupport/test/dependencies/raises_exception_without_blame_file.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+exception = Exception.new("I am not blamable!")
+class << exception
+ undef_method(:blame_file!)
+end
+raise exception