From ebdc177aeb91cbb25ea4dc71ca96044a6f177642 Mon Sep 17 00:00:00 2001 From: Steven Bazyl Date: Fri, 11 Dec 2015 12:10:50 -0800 Subject: [PATCH] Remove dead codeblock leftover after moving to webmock, enable coverage output locally --- spec/googleauth/apply_auth_examples.rb | 12 ------------ spec/spec_helper.rb | 6 +++++- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/spec/googleauth/apply_auth_examples.rb b/spec/googleauth/apply_auth_examples.rb index 19c5be3..500152b 100644 --- a/spec/googleauth/apply_auth_examples.rb +++ b/spec/googleauth/apply_auth_examples.rb @@ -34,18 +34,6 @@ $LOAD_PATH.uniq! require 'faraday' require 'spec_helper' -def build_json_response(payload) - [200, - { 'Content-Type' => 'application/json; charset=utf-8' }, - MultiJson.dump(payload)] -end - -def build_access_token_json(token) - build_json_response('access_token' => token, - 'token_type' => 'Bearer', - 'expires_in' => 3600) -end - shared_examples 'apply/apply! are OK' do let(:auth_key) { :Authorization } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c63ee4c..485c151 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -35,11 +35,15 @@ $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.formatters = [ + Coveralls::SimpleCov::Formatter, + SimpleCov::Formatter::HTMLFormatter +] SimpleCov.start require 'faraday'