Skip to content

Commit

Permalink
Merge branch 'rs-fix-coverage' into 'master'
Browse files Browse the repository at this point in the history
Move coverage-related setup back to spec_helper

These tools must be loaded before our regular Rails environment.

Partially reverts 5783020

See merge request !976
  • Loading branch information
dzaporozhets committed Jul 14, 2015
2 parents 90e47dd + ce02bf9 commit 87e6786
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
8 changes: 0 additions & 8 deletions spec/support/coverage.rb

This file was deleted.

0 comments on commit 87e6786

Please sign in to comment.