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
2 changed files with 11 additions and 8 deletions
|
@ -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'
|
ENV["RAILS_ENV"] ||= 'test'
|
||||||
|
|
||||||
require File.expand_path("../../config/environment", __FILE__)
|
require File.expand_path("../../config/environment", __FILE__)
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
require 'shoulda/matchers'
|
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 a new issue