Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use explicit deprecator in AS::Deprecation tests #46000

Conversation

jonathanhefner
Copy link
Member

This changes many deprecation tests to use an explicit deprecator, as part of an initiative to move away from the top-level ActiveSupport::Deprecation API, based on the discussion in #44772.


The diff is best viewed with the "ignore whitespace" option.

This changes many deprecation tests to use an explicit deprecator, as
part of an initiative to move away from the top-level
`ActiveSupport::Deprecation` API, based on the discussion in rails#44772.
@jonathanhefner jonathanhefner force-pushed the deprecation-tests-use-explicit-deprecator branch from d4ae028 to 2b7c03e Compare September 11, 2022 22:08
@jonathanhefner jonathanhefner merged commit e3e60f0 into rails:main Sep 11, 2022
jonathanhefner added a commit to jonathanhefner/rails that referenced this pull request Sep 13, 2022
Follow-up to rails#46000.

This changes more deprecation tests to use an explicit deprecator, as
part of an initiative to move away from the top-level
`ActiveSupport::Deprecation` API, based on the discussion in rails#44772.
jonathanhefner added a commit to jonathanhefner/rails that referenced this pull request Sep 22, 2022
This changes `MethodWrappersTest` and `ProxyWrappersTest` tests to use
an explicit deprecator, similar to what was done for `DeprecationTest`
in rails#46000 and its follow-ups.
jonathanhefner added a commit to jonathanhefner/rails that referenced this pull request Oct 24, 2022
This commits adds a deprecator-only overload for `assert_deprecated`.
For example, `assert_deprecated(/./, deprecator)` can now be written as
`assert_deprecated(deprecator)`.

This is part of an initiative to move away from the top-level
`ActiveSupport::Deprecation` API, towards per-library deprecator
instances.  See also rails#46000 and its follow-ups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant