Move coverage-related setup back to spec_helper
These tools must be loaded before our regular Rails environment.
This commit is contained in:
parent
59d7f4c97f
commit
ce02bf9900
|
@ -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'
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
if ENV['SIMPLECOV']
|
||||
require 'simplecov'
|
||||
end
|
||||
|
||||
if ENV['COVERALLS']
|
||||
require 'coveralls'
|
||||
Coveralls.wear_merged!
|
||||
end
|
Loading…
Reference in New Issue