Skip to content

Instantly share code, notes, and snippets.

@jesperronn
Forked from suhrawardi/env.rb
Created September 22, 2010 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesperronn/592504 to your computer and use it in GitHub Desktop.
Save jesperronn/592504 to your computer and use it in GitHub Desktop.
$: << File.expand_path(File.dirname(__FILE__) + "/../support")
#$DEBUG = true
$ROOT_PATH = File.expand_path(File.dirname(__FILE__))
require 'capybara'
require 'capybara/cucumber'
require 'spec'
# Remove this line if you don't want Cucumber Unicode support
require 'cucumber/formatter/unicode'
Capybara.run_server = false
Capybara.app_host = 'http://some.domain'
require 'selenium-webdriver'
Selenium::WebDriver.for :firefox
Capybara.default_driver = :selenium
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd
# prefer to use XPath just remove this line and adjust any selectors in your
# steps to use the XPath syntax.
Capybara.default_selector = :css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment