Sha256: 44cc38cfd4b3add2c67a8b58b79de9ff5f71c37046df32a70f79d50543743cd1

Contents?: true

Size: 884 Bytes

Versions: 3

Compression:

Stored size: 884 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift File.expand_path('./helpers', __FILE__)

require 'simplecov'
require 'codecov'
SimpleCov.start
SimpleCov.formatter = SimpleCov::Formatter::Codecov

require 'etcdv3'
require 'helpers/test_instance'
require 'helpers/connections'
require 'helpers/shared_examples_for_timeout'

$instance = Helpers::TestInstance.new

RSpec.configure do |config|
  config.include(Helpers::Connections)

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end
  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end
  config.shared_context_metadata_behavior = :apply_to_host_groups

  config.before(:suite) do
    $stderr = File.open(File::NULL, "w")
    $instance.start
  end
  config.after(:suite) do
    $instance.stop
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
etcdv3-0.10.2 spec/spec_helper.rb
etcdv3-0.10.1 spec/spec_helper.rb
etcdv3-0.9.0 spec/spec_helper.rb