spec/spec_helper.rb in watir-dom-wait-0.3.3 vs spec/spec_helper.rb in watir-dom-wait-0.4.0
- old
+ new
@@ -2,10 +2,14 @@
RSpec.configure do |spec|
spec.filter_run_excluding bug: /\d+/
spec.before(:all) do
- Selenium::WebDriver::Chrome.path = "#{File.dirname(__FILE__)}/../bin/google-chrome" if ENV['TRAVIS']
+ opts = {}
+ if ENV['TRAVIS']
+ Selenium::WebDriver::Chrome.path = "#{File.dirname(__FILE__)}/../bin/google-chrome"
+ opts[:args] = ['no-sandbox']
+ end
@browser = Watir::Browser.new(:chrome, opts)
@browser.goto "data:text/html,#{File.read('spec/support/html/wait_for_dom.html')}"
end
spec.after(:all) do