-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
DEPRECATION WARNING: request methods will accept only keyword arguments in future Rails versions. #867
Comments
Okay! Thanks for the report. I've got a backlog right now of stuff to work through right now, but hopefully I can get to this before Rails 5 ships. PR appreciated. :) |
So I don't need to make any changes to my RSpec, I can wait for the patch and it will fix all these deprecation warnings and save myself a bunch of trouble? |
If you're still using Rails 4, yeah -- I know the warnings are annoying, but it's okay for right now. If you're using Rails 5 then there isn't a fix for this yet, unfortunately. |
No worries. Is there going to be eventually? I'll keep an eye on this and leave it be if it will be fixed eventually, it's not actually causing a failed case yet. |
leaving in a depreciation notice from shoulda matchers that should be fixed soon per issue thoughtbot/shoulda-matchers#867
Rails 5 has deprecated the keywords arguments for #permit. This patch scopes the request params according to the version of Rails. Fixes #867. Supercedes #917 with passing tests. Thank you to @freesteph for helpin' out!
Rails 5 has deprecated the keywords arguments for #permit. This patch scopes the request params according to the ActionPack version. Fixes #867. Supercedes #917 with passing tests. Thank you to @freesteph for helpin' out!
This will be fixed by #964, so I'm going to go ahead and close this to clean things up. |
I'm using Rails 5 alpha.
Instead of:
Rails 5 will accept only:
Warning called from:
My spec:
My "solution" for now is
change:
to:
The text was updated successfully, but these errors were encountered: