#386 new
Mitchell Hashimoto

Rails 3 beta 4 Issues

Reported by Mitchell Hashimoto | July 26th, 2010 @ 11:03 AM

Hi,

I've been trying to use webrat with rails 3 beta 4 and I configure it the following way:

require "webrat"

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

And I get "undefined method visit." So I then took a look further and tried the following:

require "webrat"

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

module ActionDispatch
  IntegrationTest.class_eval do
    include Rack::Test::Methods
    include Webrat::Methods
    include Webrat::Matchers
  end
end

Which gets me a bit closer, but now I get errors like the following:

  1) Error:
test_response_successfully_to_GET_/(WelcomeTestTest):
ArgumentError: @request must be an ActionDispatch::Request
    /test/integration/welcome_test.rb:6:in `test_response_successfully_to_GET_/'

Any ideas?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages