Sha256: 6bc24ededac9adffd50aabdf93094519c9bcd8861706fea4f40116bab83335c4

Contents?: true

Size: 1.18 KB

Versions: 8

Compression:

Stored size: 1.18 KB

Contents

# frozen_string_literal: true

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

SimpleCov.start do
  add_filter { |source| source.lines_of_code <= 3 }
  add_filter { |source| source.filename =~ /spec/ }

  add_group('Adapters') { |source| source.filename =~ %r{lib/basquiat/adapters} }
  add_group('RabbitMQ') { |source| source.filename =~ %r{lib/basquiat/adapters/rabbitmq} }
  add_group('Errors') { |source| source.filename =~ %r{lib/basquiat/errors} }
  add_group('Interfaces') { |source| source.filename =~ %r{lib/basquiat/interfaces} }
  add_group('Main') { |source| source.filename =~ %r{lib/basquiat\.rb$} }
  add_group('Support') { |source| source.filename =~ %r{lib/basquiat/support} }
end

ENV['BASQUIAT_ENV'] = 'test'
require 'basquiat'

require 'support/shared_examples/basquiat_adapter_shared_examples'
require 'support/rabbitmq_queue_matchers'

RSpec.configure do |config|
  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.filter_run :focus
  config.run_all_when_everything_filtered = true
  config.disable_monkey_patching!
  config.default_formatter = 'doc' if config.files_to_run.one?

  config.order = :random
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
basquiat-1.6.0 spec/spec_helper.rb
basquiat-1.5.2 spec/spec_helper.rb
basquiat-1.5.1 spec/spec_helper.rb
basquiat-1.5.0 spec/spec_helper.rb
basquiat-1.4.0 spec/spec_helper.rb
basquiat-1.3.6 spec/spec_helper.rb
basquiat-1.3.5 spec/spec_helper.rb
basquiat-1.3.4 spec/spec_helper.rb