Move SimpleCov.start to the very top of spec_helper

This commit is contained in:
Artur Beljajev 2018-01-28 19:09:23 +02:00
parent 20cf725714
commit 0b5d1c705d

View file

@ -1,11 +1,11 @@
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)
if ENV['TRAVIS']
require 'simplecov'
SimpleCov.start
end
require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|
# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest