我一直在使用rspec和webrat,并决定添加黄瓜进行高水平测试。
有没有办法告诉rspec继续使用webrat?
确保Gemfile中同时包含webrat和capybara,并将以下内容添加到/spec/spec_helper.rb中:
require "webrat" Webrat.configure do |config| config.mode = :rails end