[rspec-users] Rspec 2, Rails 3 and Webrat

Ruben C. lists at ruby-forum.com
Fri Nov 12 10:23:04 EST 2010

I did this with webrat 0.7.2, rails 3.0.1, test-unit 2.1.1:

require "webrat"
require 'webrat/core/matchers'
include Webrat::Methods

Webrat.configure do |config|
  config.mode = :rack

and for now I can run tests like this:

test "testing_webrat_visit" do
  visit 'home/index'

maybe some methods from webrat won't work, but I haven't found them yet.

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list