Sha256: fdcc8ea709ef997b1e70b012aebd9856e818304e9d90b2d44cb25f07bcccc6c2

Contents?: true

Size: 723 Bytes

Versions: 3

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

require 'parallel'
require 'open3'

RSpec.configure do |config|
  config.example_status_persistence_file_path = 'spec/examples.txt'
  config.disable_monkey_patching!
  config.default_formatter = 'doc' if config.files_to_run.one?
  config.order = :random
  Kernel.srand config.seed
end

require_relative '../lib/gman'
require_relative '../lib/gman/domain_list'
require_relative '../lib/gman/importer'

def fixture_path(fixture)
  File.expand_path "./fixtures/#{fixture}", File.dirname(__FILE__)
end

def stubbed_list_path
  File.expand_path './fixtures/domains.txt', File.dirname(__FILE__)
end

def with_env(key, value)
  old_env = ENV[key]
  ENV[key] = value
  yield
  ENV[key] = old_env
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gman-7.0.5 spec/spec_helper.rb
gman-7.0.4 spec/spec_helper.rb
gman-7.0.3 spec/spec_helper.rb