Sha256: ded11f45fbdd5fee243407c1b305ffc63d8fe746cf280e6f71f6a5ffbff0b8f4
Contents?: true
Size: 1.21 KB
Versions: 26
Compression:
Stored size: 1.21 KB
Contents
ENV['PERCY_API'] = 'http://localhost:3000/api/v1' require 'support/vcr_setup' require 'webmock/rspec' 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 config.after(:each) do |_example| # After each run, clear the memoized `_user_agent` property to avoid polluting # other tests with the incorrect values. Percy.client._reset_user_agent end end
Version data entries
26 entries across 26 versions & 1 rubygems