From 05781f1f9c0831d24ab2bf61421fe420967c60fa Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Sat, 22 Dec 2018 01:43:05 +0000 Subject: No need to handle if FrozenError is available Rails 6 requires Ruby 2.5, which introduces `FrozenError` https://docs.ruby-lang.org/en/2.5.0/NEWS.html Related to #31520 --- railties/test/isolation/abstract_unit.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'railties/test/isolation') diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index 39c936428f..4523b66dda 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -462,10 +462,6 @@ class ActiveSupport::TestCase include TestHelpers::Generation include ActiveSupport::Testing::Stream include ActiveSupport::Testing::MethodCallAssertions - - def frozen_error_class - Object.const_defined?(:FrozenError) ? FrozenError : RuntimeError - end end # Create a scope and build a fixture rails app -- cgit v1.2.3