1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/autoloading_fixtures/raises_arbitrary_exception.rb
Andrew White 811fd0a6b4 Prevent void context warnings
The constant reference A::B used to trigger autoloading causes a warning
to be logged about the possible use of :: in a void context so assign it
to the _ variable to prevent the warnings from being triggered.
2016-04-03 23:47:05 +01:00

4 lines
153 B
Ruby

RaisesArbitraryException = 1
_ = A::B # Autoloading recursion, also expected to be watched and discarded.
raise Exception, 'arbitray exception message'