Skip to content

Commit

Permalink
Don't calculate coverage of code found in spec/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo committed Jul 3, 2015
1 parent 3a38dda commit eacecf1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions spec/spec_helper.rb
Expand Up @@ -25,10 +25,14 @@
require 'support/input_support'
require 'byebug' unless ENV['TRAVIS']

if ENV['COVERAGE']
if ENV['COVERAGE'] || ENV['TRAVIS']
require 'simplecov'
SimpleCov.start 'rails'
SimpleCov.command_name "spec"
SimpleCov.root(File.expand_path('../..', __FILE__))
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start('rails') do
add_filter '/spec'
end
SimpleCov.command_name 'spec'
end

Capybara.default_driver = :rack_test # This is a faster driver
Expand Down

0 comments on commit eacecf1

Please sign in to comment.