Sha256: 7ceb514621bf69d6b5cc5109961231cad63d8ba6070900e08dc0580b92278061

Contents?: true

Size: 632 Bytes

Versions: 2

Compression:

Stored size: 632 Bytes

Contents

if RUBY_ENGINE == 'ruby' && ENV['COVERAGE'] == 'true'
  require 'simplecov'
  SimpleCov.start do
    add_filter '/spec/'
  end
end

begin
  require 'pry'
  require 'pry-byebug'
rescue LoadError; end

require 'dry-events'

SPEC_ROOT = Pathname(__dir__)

Dir[SPEC_ROOT.join('shared/**/*.rb')].each(&method(:require))
Dir[SPEC_ROOT.join('support/**/*.rb')].each(&method(:require))

RSpec.configure do |config|
  config.warnings = true
  config.disable_monkey_patching!
  config.filter_run_when_matching :focus

  config.after(:example) do
    Dry::Events::Publisher.instance_variable_set(:@__registry__, Concurrent::Map.new)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-events-0.2.0 spec/spec_helper.rb
dry-events-0.1.1 spec/spec_helper.rb