-
Notifications
You must be signed in to change notification settings - Fork 57
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
Consider deprecating assert_select with a numeric arg #58
Comments
👍 |
@rafaelfranca can we still add the deprecation to 5.1? |
Yes, we can. Even more that this would be a deprecation in a gem, so the deprecation would also happen in 5.0. I'm fine with it. |
@rafaelfranca we can (probably should) bump the gem version, then we can decide whether we need to lock it in Rails 5.0 |
yes, a minor version should be sufficient |
Yes please! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a page like so:
It's pretty reasonable to write something like this:
However, that would give you a very confusing error:
Given that we already support
assert_select ".total", count: User.count
, I think we should consider deprecating the numeric positional argument overload (as shown in the example) in favor of the explicit keyword argument, and potentially reclaiming the space for automaticto_s
-ing the positional argument in the future (to make the example "just work").The text was updated successfully, but these errors were encountered: