Remove deprecated Rails::Generators::Testing::Behaviour
This commit is contained in:
parent
5085daf98e
commit
b35df004fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user