【发布时间】:2011-12-01 04:53:09
【问题描述】:
我在 RSpec 测试期间遇到以下故障..
no such file to load -- action_controller/integration
..使用 Rails 3、RSpec 2 和 Webrat,如果我按以下方式包含 Webrat 助手(想法是使用 Webrat 来处理 have_tag 和 have_selector 方法,而不是 assert_select)。
RSpec.configure do |config|
..
config.include Webrat::HaveTagMatcher
end
但显然Webrat and Rails 3 are not compatible 还没有。一种解决方案是避免使用 Webrat gem 并改用 assert_select。有没有人更好的解决方案?如何避免错误?
【问题讨论】:
标签: ruby-on-rails-3 rspec2 webrat