Remove deprecated Rails::Generators::Testing::Behaviour

This commit is contained in:
Rafael Mendonça França 2024-05-01 18:44:23 +00:00
parent 5085daf98e
commit b35df004fd
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
4 changed files with 6 additions and 9 deletions

@ -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`.

@ -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*

@ -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

@ -253,10 +253,4 @@ def test_hide_namespace
Rails::Generators.hide_namespace("special:namespace")
assert_includes Rails::Generators.hidden_namespaces, "special:namespace"
end
def test_behaviour_aliases_behavior
assert_deprecated(Rails.deprecator) do
assert_same Rails::Generators::Testing::Behavior, Rails::Generators::Testing::Behaviour
end
end
end