Created
June 13, 2011 15:38
-
-
Save wjdix/1023005 to your computer and use it in GitHub Desktop.
Headless Capybara
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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