Merge pull request #19 from tbetbetbe/ruby-auth-update-coverage
Updates the coverage to use the coveralls gem
This commit is contained in:
commit
369b3bfd80
|
@ -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'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue