Tests not loading routes correctly?

In my routes:
get ‘users/reset/password/:id/:code’ => ‘users#reset_password’, :as =>
post ‘users/reset/password/:id/:code’ => ‘users#reset_password’

In my tests:
get :reset_password, id: @user.id, code: “rawr”
assert_redirect_to :recover

Error produced:
ActionController::RoutingError: No route matches {:id=>“1”,
:code=>“rawr”, :controller=>“users”, :action=>“reset_password”}

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs