Sha256: 2d6d8e3b4c38593666132fcb5901a7d9c4fe9ba5a244a8378c3a173aba458c26

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

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
    @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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
watir-dom-wait-0.3.2 spec/spec_helper.rb
watir-dom-wait-0.3.1 spec/spec_helper.rb
watir-dom-wait-0.3.0 spec/spec_helper.rb