begin
  require 'simplecov'
  if ENV['COVERAGE']
    SimpleCov.start do
      add_filter "/spec/"
    end
  end
rescue LoadError
end

require 'minitest/spec'
require 'minitest/autorun'

begin
  require 'simplecov'
  if ENV['COVERAGE']
    SimpleCov.start do
      add_filter '/spec/'
      add_filter '/vendor/'
    end
  end
rescue LoadError
end

require 'minitest/spec'
require 'minitest/autorun'

Add simplecov filter for vendor directory
Add simplecov filter for vendor directory
