Extract simplecov config

This commit is contained in:
Artur Beljajev 2019-03-09 17:57:18 +02:00
parent 498975af97
commit 25a290b751
3 changed files with 8 additions and 2 deletions

8
.simplecov Normal file
View file

@ -0,0 +1,8 @@
SimpleCov.start 'rails' do
add_filter '/app/models/legacy/'
add_filter '/app/models/version/'
add_filter '/lib/action_controller/'
add_filter '/lib/core_ext/'
add_filter '/lib/daemons/'
add_filter '/lib/gem_ext/'
end

View file

@ -1,7 +1,6 @@
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.command_name 'spec'
SimpleCov.start 'rails'
end
require 'webmock/rspec'

View file

@ -1,7 +1,6 @@
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.command_name 'test'
SimpleCov.start 'rails'
end
ENV['RAILS_ENV'] ||= 'test'