Merge pull request #19 from tbetbetbe/ruby-auth-update-coverage

Updates the coverage to use the coveralls gem
This commit is contained in:
Tim Emiola 2015-03-22 18:43:19 -07:00
commit 369b3bfd80
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 'bundler', '~> 1.7'
s.add_development_dependency 'simplecov', '~> 0.9.2' 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 'rake', '~> 10.0'
s.add_development_dependency 'rubocop', '~> 0.28.0' s.add_development_dependency 'rubocop', '~> 0.28.0'
s.add_development_dependency 'rspec', '~> 3.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.unshift(lib_dir)
$LOAD_PATH.uniq! $LOAD_PATH.uniq!
# set up coverage
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start
require 'faraday' require 'faraday'
require 'rspec' require 'rspec'
require 'logging' require 'logging'
require 'rspec/logging_helper' require 'rspec/logging_helper'
require 'simplecov'
SimpleCov.start
# Allow Faraday to support test stubs # Allow Faraday to support test stubs
Faraday::Adapter.load_middleware(:test) Faraday::Adapter.load_middleware(:test)