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.rb5
1 files changed, 5 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..4b2da6ff30
--- /dev/null
+++ b/activesupport/test/dependencies/raises_exception_without_blame_file.rb
@@ -0,0 +1,5 @@
+exception = Exception.new('I am not blamable!')
+class << exception
+ undef_method(:blame_file!)
+end
+raise exception