Skip to content

Instantly share code, notes, and snippets.

@wjdix
Created June 13, 2011 15:38
Show Gist options
  • Save wjdix/1023005 to your computer and use it in GitHub Desktop.
Save wjdix/1023005 to your computer and use it in GitHub Desktop.
Headless Capybara
# in Gemfile
gem 'headless', :git => 'git://github.com/msgehard/headless.git'
# in some capybara support file
# I use features/support/world.rb
if Capybara.current_driver == :selenium && RAILS_EVN == 'hudson'
require 'headless'
headless = Headless.new
headless.start
at_exit do
headless.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment