Skip to content

Instantly share code, notes, and snippets.

@naush
Created February 5, 2011 17:51
Show Gist options
  • Save naush/812632 to your computer and use it in GitHub Desktop.
Save naush/812632 to your computer and use it in GitHub Desktop.
# add this code to "features/support/env.rb"
if ENV['HEADLESS'] == 'true'
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