Skip to content

Commit

Permalink
Move coverage-related setup back to spec_helper
Browse files Browse the repository at this point in the history
These tools must be loaded before our regular Rails environment.
  • Loading branch information
rspeicher committed Jul 14, 2015
1 parent 59d7f4c commit ce02bf9
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 ce02bf9

Please sign in to comment.