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'