rails/rails-controller-testing

ActionController::UrlGenerationError on rails upgrade to 5.1.3

spurnaye opened this issue · 1 comments

Following lines stopped working after upgrading from rails 4.2.3 to 5.1.3
'''
get :new, params: {user_id: user.id}
'''
with following error

'''
ActionController::UrlGenerationError:
No route matches {:action=>"new", :controller=>"the_controller", :user_id=> 123}
'''

Closing as this was issue with defining the correct routes in rails 5.1.3