From 72fc26dd5ff60adb742b2229bacd09a3702bfe4a Mon Sep 17 00:00:00 2001 From: Tim Emiola Date: Sun, 22 Mar 2015 18:31:11 -0700 Subject: [PATCH] Update the coverage to use the coveralls gem --- googleauth.gemspec | 1 + spec/spec_helper.rb | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/googleauth.gemspec b/googleauth.gemspec index ed3ea0e..7cc20b4 100755 --- a/googleauth.gemspec +++ b/googleauth.gemspec @@ -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' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8dc1604..7388a8a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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)