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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLudCRaRBtq1PS7oYenkz5YSZtwjf9zt8WBMJj7duMxjxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to