-
Notifications
You must be signed in to change notification settings - Fork 59
Remove deprecation, document alias #92
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
Remove deprecation, document alias #92
Conversation
Won't we need an What's Rails' and Rails apps' upgrade path for this change? Just bumping the required version in the Gemfile? |
Bridge the gap between [rails#91][] (shipped) and [rails#92][] (open) by declaring [alias_method][] expressions for each `assert_select` variation, adding `assert_dom` variations to the interface. [rails#91]: rails#91 [rails#92]: rails#92 [alias_method]: https://docs.ruby-lang.org/en/3.0.0/Module.html#method-i-alias_method
On the heels of [rails/rails-dom-testing#91][] and [rails/rails-dom-testing#93][], and in preparation for [rails/rails-dom-testing#92][] [rails/rails-dom-testing#91]: rails/rails-dom-testing#91 [rails/rails-dom-testing#92]: rails/rails-dom-testing#92 [rails/rails-dom-testing#93]: rails/rails-dom-testing#93
Do we need to remove |
529aebe
to
3d2cc8d
Compare
@rafaelfranca that seems like a more straightforward compromise. I've switched this branch to remove the deprecations, but I've kept the documentation changes in place to encourage usage of the |
@rafaelfranca I've rolled back the majority of rails/rails#41500 to take a similar approach. |
Remove all deprecations of `assert_select`-prefixed methods, but document the `assert_dom` variations.
3d2cc8d
to
844bf49
Compare
Bridge the gap between [#91][] (shipped) and [#92][] (open) by declaring [alias_method][] expressions for each `assert_select` variation, adding `assert_dom` variations to the interface. [#91]: rails/rails-dom-testing#91 [#92]: rails/rails-dom-testing#92 [alias_method]: https://docs.ruby-lang.org/en/3.0.0/Module.html#method-i-alias_method
One is the alias of the other, but assert_select is a confusing name in presence of the assert_selector method (from Capybara). This is a follow up to rails#54299 (comment) and rails/rails-dom-testing#92 (comment) [ci skip]
One is the alias of the other, but assert_select is a confusing name in presence of the assert_selector method (from Capybara). Also there is a conflicting `assert_select` on the Capybara itself https://rubydoc.info/github/teamcapybara/capybara/master/Capybara%2FMinitest%2FAssertions:assert_select This is a follow up to rails#54299 (comment) and rails/rails-dom-testing#92 (comment) [ci skip]
One is the alias of the other, but assert_select is a confusing name in presence of the assert_selector method (from Capybara). Also there is a conflicting `assert_select` on the Capybara itself https://rubydoc.info/github/teamcapybara/capybara/master/Capybara%2FMinitest%2FAssertions:assert_select This is a follow up to rails#54299 (comment) and rails/rails-dom-testing#92 (comment) [ci skip] Co-authored-by: Petrik de Heus <[email protected]>
One is the alias of the other, but assert_select is a confusing name in presence of the assert_selector method (from Capybara). Also there is a conflicting `assert_select` on the Capybara itself https://rubydoc.info/github/teamcapybara/capybara/master/Capybara%2FMinitest%2FAssertions:assert_select This is a follow up to rails#54299 (comment) and rails/rails-dom-testing#92 (comment) [ci skip] Co-authored-by: Petrik de Heus <[email protected]>
Remove all deprecations of
assert_select
-prefixed methods, butdocument the
assert_dom
variations.