aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/autoloading_fixtures/raises_arbitrary_exception.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/autoloading_fixtures/raises_arbitrary_exception.rb')
-rw-r--r--activesupport/test/autoloading_fixtures/raises_arbitrary_exception.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/autoloading_fixtures/raises_arbitrary_exception.rb b/activesupport/test/autoloading_fixtures/raises_arbitrary_exception.rb
new file mode 100644
index 0000000000..118ee6bdd1
--- /dev/null
+++ b/activesupport/test/autoloading_fixtures/raises_arbitrary_exception.rb
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+
+RaisesArbitraryException = 1
+_ = A::B # Autoloading recursion, also expected to be watched and discarded.
+
+raise Exception, "arbitrary exception message"