Skip to content

Commit 08f6058

Browse files
Merge pull request #65 from graphql-devise/fix-coveralls
Fix coverage configuration
2 parents 8027ffa + a71f4da commit 08f6058

4 files changed

Lines changed: 8 additions & 19 deletions

File tree

app/jobs/graphql_devise/application_job.rb

Lines changed: 0 additions & 4 deletions
This file was deleted.

app/mailers/graphql_devise/application_mailer.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

spec/rails_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
require 'spec_helper'
2+
13
ENV['RAILS_ENV'] ||= 'test'
24
ENGINE_ROOT = File.join(File.dirname(__FILE__), '../')
35

4-
require 'spec_helper'
56
require File.expand_path('dummy/config/environment.rb', __dir__)
67

78
abort('The Rails environment is running in production mode!') if Rails.env.production?

spec/spec_helper.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
require 'pry'
2-
require 'bundler/setup'
3-
require 'graphql_devise'
4-
51
if ENV['CI'] && !ENV['SKIP_COVERALLS']
62
require 'simplecov'
73
require 'coveralls'
84

95
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
10-
SimpleCov.start do
11-
add_filter 'spec'
12-
add_filter 'test'
13-
add_filter 'lib/generators'
6+
SimpleCov.start 'rails' do
7+
add_filter ['spec', 'lib/generators']
148
end
159
end
1610

11+
require 'pry'
12+
require 'bundler/setup'
13+
require 'graphql_devise'
14+
1715
RSpec.configure do |config|
1816
# Enable flags like --only-failures and --next-failure
1917
config.example_status_persistence_file_path = '.rspec_status'

0 commit comments

Comments
 (0)