From 96d918b212b044d5dbab3fb901be3ee41a0461b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 1 May 2024 18:44:23 +0000 Subject: [PATCH] Remove deprecated `Rails::Generators::Testing::Behaviour` --- guides/source/7_2_release_notes.md | 2 ++ railties/CHANGELOG.md | 4 ++++ railties/lib/rails/generators/testing/behavior.rb | 3 --- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/guides/source/7_2_release_notes.md b/guides/source/7_2_release_notes.md index 7f191e76e907a..75e092c8ada4d 100644 --- a/guides/source/7_2_release_notes.md +++ b/guides/source/7_2_release_notes.md @@ -28,6 +28,8 @@ Please refer to the [Changelog][railties] for detailed changes. ### Removals +* Remove deprecated `Rails::Generators::Testing::Behaviour`. + * Remove deprecated `Rails.application.secrets`. * Remove deprecated `Rails.config.enable_dependency_loading`. diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 2521aca918fbf..bdd577548aa5f 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,3 +1,7 @@ +* Remove deprecated `Rails::Generators::Testing::Behaviour`. + + *Rafael Mendonça França* + * Remove deprecated `find_cmd_and_exec` console helper. *Rafael Mendonça França* diff --git a/railties/lib/rails/generators/testing/behavior.rb b/railties/lib/rails/generators/testing/behavior.rb index 53b48ba62c257..8a66dca3013ed 100644 --- a/railties/lib/rails/generators/testing/behavior.rb +++ b/railties/lib/rails/generators/testing/behavior.rb @@ -111,9 +111,6 @@ def migration_file_name(relative) Dir.glob("#{dirname}/[0-9]*_*.rb").grep(/\d+_#{file_name}.rb$/).first end end - - include ActiveSupport::Deprecation::DeprecatedConstantAccessor - deprecate_constant "Behaviour", "Rails::Generators::Testing::Behavior", deprecator: Rails.deprecator end end end