Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Created October 25, 2011 20:07
Show Gist options
  • Select an option

  • Save HeroicEric/1314073 to your computer and use it in GitHub Desktop.

Select an option

Save HeroicEric/1314073 to your computer and use it in GitHub Desktop.
ENV['RACK_ENV'] = 'test'
require File.join(File.dirname(__FILE__), '..', '..', 'app.rb')
require 'capybara'
require 'capybara/cucumber'
require 'rspec'
Capybara.app = App
class AppWorld
include Capybara::DSL
include RSpec::Expectations
include RSpec::Matchers
end
World do
AppWorld.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment