Sha256: 1faa0f0cd91ab8ae92f6cdc9998517de19b5d13eaab0698959b13f6741f30868

Contents?: true

Size: 962 Bytes

Versions: 1

Compression:

Stored size: 962 Bytes

Contents

if ENV['CI']
  require 'coveralls'
  Coveralls.wear!
end

RSpec.configure do |config|
  config.disable_monkey_patching!
  config.order = :random

  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.before(:each) do
    FileUtils.mkdir_p './tmp/test'
    Aggro.data_dir = './tmp/test'
  end

  config.after(:each) do
    FileUtils.rm_r './tmp/test' if File.exist? './tmp/test'
    Thread.current[:aggro_context] = nil
    Aggro.reset unless Aggro.is_a? RSpec::Mocks::Double
  end

  config.after(:suite) do
    Aggro.reset
    Aggro.transport.teardown
  end
end

require 'aggro'

Aggro.transport.linger = 0

Aggro.constants.each do |const|
  eval "#{const} = Aggro::#{const}"
end

STORE_DIR = './tmp/test/data'
CLUSTER_CONFIG_PATH = './tmp/test/cluster.yml'

Thread.abort_on_exception = true

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aggro-0.0.4 spec/spec_helper.rb