开发者

how to unit test a route that redirects to a static file in rails 3

开发者 https://www.devze.com 2023-03-18 22:31 出处:网络
I setup a route that redirect to a static file and i would like开发者_StackOverflow社区 to write a test using unit test for it

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 ?

0

精彩评论

暂无评论...
验证码 换一张
取 消