【问题标题】:rails - how do i include view helpers in my tests?rails - 我如何在我的测试中包含视图助手? 【发布时间】:2012-09-14 18:22:14 【问题描述】: 我在我的测试中引用了辅助项,我怎样才能包含辅助项以便它们可用于测试? 【问题讨论】: 我认为article 会让你找到正确的方向。 标签: ruby-on-rails ruby rspec helpers 【解决方案1】: 这个博客有一篇关于如何测试视图助手的优秀文章。 http://alexjsharp.com/posts/testing-rails-view-helpers 【讨论】: