mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Move coverage-related setup back to spec_helper
These tools must be loaded before our regular Rails environment.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user