MDA/MDD/TDD/DDD/DDDDDDD
posts - 536, comments - 111, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

response_to等

Posted on 2010-02-18 02:42 leekiang 阅读(259) 评论(0)  编辑  收藏 所属分类: ruby
posts_url               http://localhost:3000/posts
posts_path              /posts
new_post_path           /posts/new
edit_post_path(post)    /post/:id/edit
redirect_to(@post)     会重定向到/post/:id吗,也就是posts_controller的show

Expected response to be a <:redirect>, but was <200>
测试时报错,后发现是测试里提供的数据没有通过验证

只有注册用户登录后才能发表评论。


网站导航: