开发者

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

开发者 https://www.devze.com 2023-02-14 19:58 出处:网络
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

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

精彩评论

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