Move coverage-related setup back to spec_helper

These tools must be loaded before our regular Rails environment.
This commit is contained in:
Robert Speicher 2015-07-13 22:41:47 -04:00
parent 59d7f4c97f
commit ce02bf9900
2 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,15 @@
if ENV['SIMPLECOV']
require 'simplecov'
SimpleCov.start :rails
end
if ENV['COVERALLS']
require 'coveralls'
Coveralls.wear_merged!
end
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'shoulda/matchers'

View File

@ -1,8 +0,0 @@
if ENV['SIMPLECOV']
require 'simplecov'
end
if ENV['COVERALLS']
require 'coveralls'
Coveralls.wear_merged!
end