Colin Law
unread,Mar 9, 2016, 5:29:00 AM3/9/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
I don't suppose anyone has written a script to update the http request
syntax to that required in rails 5 have they? The old format is
deprected in 5.0 but will presumably be removed in rails 5.1. The
warning is
DEPRECATION WARNING: ActionController::TestCase HTTP request methods
will accept only keyword arguments in future Rails versions.
Examples:
get :show, params: { id: 1 }, session: { user_id: 1 }
process :update, method: :post, params: { id: 1 }
I have many hundreds of tests that will need updating and suspect that
a script that would work for the vast majority of the tests could
fairly easily be written. No point re-inventing the wheel though so
am hoping someone has already done this.
Colin