Update the coverage to use the coveralls gem

This commit is contained in:
Tim Emiola 2015-03-22 18:31:11 -07:00
parent 84d1e27d15
commit 72fc26dd5f
2 changed files with 8 additions and 2 deletions

View File

@ -34,6 +34,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'bundler', '~> 1.7'
s.add_development_dependency 'simplecov', '~> 0.9.2'
s.add_development_dependency 'coveralls', '~> 0.7.11'
s.add_development_dependency 'rake', '~> 10.0'
s.add_development_dependency 'rubocop', '~> 0.28.0'
s.add_development_dependency 'rspec', '~> 3.0'

View File

@ -35,12 +35,17 @@ $LOAD_PATH.unshift(spec_dir)
$LOAD_PATH.unshift(lib_dir)
$LOAD_PATH.uniq!
# set up coverage
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start
require 'faraday'
require 'rspec'
require 'logging'
require 'rspec/logging_helper'
require 'simplecov'
SimpleCov.start
# Allow Faraday to support test stubs
Faraday::Adapter.load_middleware(:test)