Sha256: feb4dc5892268673e8ee05cff837c058930f5a78963fd6f5202a0ea0cf9336fb

Contents?: true

Size: 696 Bytes

Versions: 2

Compression:

Stored size: 696 Bytes

Contents

# Copyright (c) 2020 Jerome Arbez-Gindre
# frozen_string_literal: true

require('bundler/setup')
require('aruba/rspec')

# formatter = [SimpleCov::Formatter::HTMLFormatter]
# SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(formatter)

require('simplecov')

SimpleCov.start do
  command_name 'spec:unit'

  add_group 'Libraries', 'lib'
  add_group 'Unit test', 'spec/unit'

  add_filter 'config'
  add_filter 'vendor'

  minimum_coverage 100
end

RSpec.configure do |config|
  config.include(Aruba::Api)
end

RSpec::Matchers.define(:matchdata_including) do |h|
  match do |matchdata|
    h.all? do |key, _|
      matchdata[key] == h[key]
    end
  end
end

require('defmastership')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
defmastership-1.0.5 spec/spec_helper.rb
defmastership-1.0.4 spec/spec_helper.rb