Sha256: 5f61e0ad89b89b830f2e2c172b5f40daf527d47095fa951a13520bd52d6dbbb7

Contents?: true

Size: 1.15 KB

Versions: 8

Compression:

Stored size: 1.15 KB

Contents

require 'capybara/rspec'
require 'selenium-webdriver'
require 'percy'

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    # This option will default to `true` in RSpec 4.
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.disable_monkey_patching!
  # config.warnings = true

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = :random

  # Seed global randomization in this process using the `--seed` CLI option.
  # Setting this allows you to use `--seed` to deterministically reproduce
  # test failures related to randomization by passing the same `--seed` value
  # as the one that triggered the failure.
  Kernel.srand config.seed

  # See https://github.com/teamcapybara/capybara#selecting-the-driver for other options
  Capybara.default_driver = :selenium_chrome_headless
  Capybara.javascript_driver = :selenium_chrome_headless
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
percy-capybara-4.2.0 spec/spec_helper.rb
percy-capybara-4.1.1 spec/spec_helper.rb
percy-capybara-4.1.0 spec/spec_helper.rb
percy-capybara-4.0.2 spec/spec_helper.rb
percy-capybara-4.0.1 spec/spec_helper.rb
percy-capybara-4.0.0 spec/spec_helper.rb
percy-capybara-4.0.0.pre.beta2 spec/spec_helper.rb
percy-capybara-4.0.0.pre.beta1 spec/spec_helper.rb