开发者

How to write a test that renders a view? Will it error out if a route helper returns an error?

Sa开发者_StackOverflow社区y my view pages have route helpers like:

root_url

user_edit_path

Now if I change things in routes.rb that effect these helpers, I want to make sure my unit tests capture this and report any errors that result of the syntax in my view pages.

Can rspec help with this, or is this a webrat functional test?


Rspec can help, with routing specs

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜