Jon Stuebe

Rspec & Capybara

Rspec & Capybara

Posted by Jon Stuebe on .
Featured

Rspec & Capybara

Posted by Jon Stuebe on .

Encountered a weird bug today. When I tried using the method visit (from capybara) I got an error telling me it did not exist. The solution was changing two lines in the spec_helper.rb. The first was requiring capybara explicitly:

require 'capybara/rspec'

The second change was adding this line to the config block:

config.include Capybara::DSL
user

Jon Stuebe