jeudi 15 septembre 2016

Rails, test a "routes.rb" level redirect

I have this redirect defined in my routes.rb:

# routes.rb
get "/my/route/one", :to => redirect { |params, request| "/my/route/two" }

How can I make a test to cover this set up?

Aucun commentaire:

Enregistrer un commentaire