Skip to content

Commit

Permalink
Merge pull request #4735 from ChrisBr/ci/simplecov
Browse files Browse the repository at this point in the history
[ci] Move require simplecov to the top of file
  • Loading branch information
ChrisBr committed Mar 27, 2018
2 parents 3acd715 + 295b354 commit d47297d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/api/spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort('The Rails environment is running in production mode!') if Rails.env.production?
# for generating test coverage
require 'simplecov'
# support test coverage
require 'support/coverage'

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort('The Rails environment is running in production mode!') if Rails.env.production?
# as our base helper
require 'spec_helper'
# for rails
Expand Down

0 comments on commit d47297d

Please sign in to comment.