Skip to content

Commit b35df00

Browse files
committed
Remove deprecated Rails::Generators::Testing::Behaviour
1 parent 5085daf commit b35df00

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

guides/source/7_2_release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Please refer to the [Changelog][railties] for detailed changes.
2828

2929
### Removals
3030

31+
* Remove deprecated `Rails::Generators::Testing::Behaviour`.
32+
3133
* Remove deprecated `Rails.application.secrets`.
3234

3335
* Remove deprecated `Rails.config.enable_dependency_loading`.

railties/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `Rails::Generators::Testing::Behaviour`.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated `find_cmd_and_exec` console helper.
26

37
*Rafael Mendonça França*

railties/lib/rails/generators/testing/behavior.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ def migration_file_name(relative)
111111
Dir.glob("#{dirname}/[0-9]*_*.rb").grep(/\d+_#{file_name}.rb$/).first
112112
end
113113
end
114-
115-
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
116-
deprecate_constant "Behaviour", "Rails::Generators::Testing::Behavior", deprecator: Rails.deprecator
117114
end
118115
end
119116
end

railties/test/generators_test.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,4 @@ def test_hide_namespace
253253
Rails::Generators.hide_namespace("special:namespace")
254254
assert_includes Rails::Generators.hidden_namespaces, "special:namespace"
255255
end
256-
257-
def test_behaviour_aliases_behavior
258-
assert_deprecated(Rails.deprecator) do
259-
assert_same Rails::Generators::Testing::Behavior, Rails::Generators::Testing::Behaviour
260-
end
261-
end
262256
end

0 commit comments

Comments
 (0)