Skip to content

Instantly share code, notes, and snippets.

@onethirtyfive
Created March 22, 2010 02:19
Show Gist options
  • Save onethirtyfive/339745 to your computer and use it in GitHub Desktop.
Save onethirtyfive/339745 to your computer and use it in GitHub Desktop.
Error:
Scenario: Visiting landing page # features/landing.feature:5
Given I am on the landing page # features/step_definitions/web_steps.rb:15
undefined method `visit' for #<Cucumber::Rails::World:0x63cc072> (NoMethodError)
./features/step_definitions/web_steps.rb:15:in `/^(?:|I )am on (.+)$/'
features/landing.feature:6:in `Given I am on the landing page'
Then I should see a welcome message # features/landing.feature:7
From features/support/env.rb:
ENV["RAILS_ENV"] ||= "test"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
[snip: cucumber requires]
require 'webrat'
require 'webrat/core/matchers'
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false # Set to true if you want error pages to pop up in the browser
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment