how to unit test a route that redirects to a static file in rails 3
I setup a route that redirect to a static file and i would like开发者_StackOverflow社区 to write a test using unit test for it ----- the route ------ get '/users/sign_in', :to => redirect("/404.html")
Any idea ?
精彩评论