From 8d791726e1a9d3d98367ecb4771d6dcc44cf5508 Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Wed, 6 Apr 2022 13:21:49 -0400 Subject: [PATCH] Fix style in test/core_ext/enumerable_test.rb --- activesupport/test/core_ext/enumerable_test.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/activesupport/test/core_ext/enumerable_test.rb b/activesupport/test/core_ext/enumerable_test.rb index 84cc4bf5e7..0dc4b64379 100644 --- a/activesupport/test/core_ext/enumerable_test.rb +++ b/activesupport/test/core_ext/enumerable_test.rb @@ -371,10 +371,9 @@ def test_doesnt_bust_constant_cache end private - - def constant_cache_invalidations - RubyVM.stat(:constant_cache_invalidations) - rescue ArgumentError - RubyVM.stat(:global_constant_state) # RUBY_VERSION < "3.2" - end + def constant_cache_invalidations + RubyVM.stat(:constant_cache_invalidations) + rescue ArgumentError + RubyVM.stat(:global_constant_state) # RUBY_VERSION < "3.2" + end end