spec/spec_helper.rb in watir-webdriver-0.3.2 vs spec/spec_helper.rb in watir-webdriver-0.3.3

- old
+ new

@@ -17,5 +17,13 @@ include Watir include Watir::Exception WEBDRIVER_SELECTORS = [:class, :class_name, :css, :id, :name, :tag_name, :xpath] +if ENV['TRAVIS'] + require 'headless' + display = Headless.new + display.start + + pid = Process.pid + at_exit { display.stop if Process.pid == pid } +end \ No newline at end of file