Skip to content

Commit

Permalink
Fix coverage configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mcelicalderon committed Feb 4, 2020
1 parent 8027ffa commit c2473ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
require 'spec_helper'

ENV['RAILS_ENV'] ||= 'test'
ENGINE_ROOT = File.join(File.dirname(__FILE__), '../')

require 'spec_helper'
require File.expand_path('dummy/config/environment.rb', __dir__)

abort('The Rails environment is running in production mode!') if Rails.env.production?
Expand Down
14 changes: 6 additions & 8 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
require 'pry'
require 'bundler/setup'
require 'graphql_devise'

if ENV['CI'] && !ENV['SKIP_COVERALLS']
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start do
add_filter 'spec'
add_filter 'test'
add_filter 'lib/generators'
SimpleCov.start 'rails' do
add_filter ['spec', 'lib/generators']
end
end

require 'pry'
require 'bundler/setup'
require 'graphql_devise'

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
Expand Down

0 comments on commit c2473ef

Please sign in to comment.