spec/spec_helper.rb in watir-dom-wait-0.3.2 vs spec/spec_helper.rb in watir-dom-wait-0.3.3
- old
+ new
@@ -1,25 +1,19 @@
-require "pry"
require "watir-dom-wait"
RSpec.configure do |spec|
spec.filter_run_excluding bug: /\d+/
spec.before(:all) do
- opts = {}
- if ENV['TRAVIS']
- Selenium::WebDriver::Chrome.path = "#{File.dirname(__FILE__)}/../bin/google-chrome"
- opts[:args] = ['no-sandbox']
- end
+ Selenium::WebDriver::Chrome.path = "#{File.dirname(__FILE__)}/../bin/google-chrome" if ENV['TRAVIS']
@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
@browser.quit
end
spec.after(:each) do |example|
- binding.pry if example.exception && ENV['DEBUG']
@browser.refresh
end
end