Remove dead codeblock leftover after moving to webmock, enable coverage output locally
This commit is contained in:
parent
9b34943655
commit
ebdc177aeb
|
@ -34,18 +34,6 @@ $LOAD_PATH.uniq!
|
||||||
require 'faraday'
|
require 'faraday'
|
||||||
require 'spec_helper'
|
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
|
shared_examples 'apply/apply! are OK' do
|
||||||
let(:auth_key) { :Authorization }
|
let(:auth_key) { :Authorization }
|
||||||
|
|
||||||
|
|
|
@ -35,11 +35,15 @@ $LOAD_PATH.unshift(spec_dir)
|
||||||
$LOAD_PATH.unshift(lib_dir)
|
$LOAD_PATH.unshift(lib_dir)
|
||||||
$LOAD_PATH.uniq!
|
$LOAD_PATH.uniq!
|
||||||
|
|
||||||
|
|
||||||
# set up coverage
|
# set up coverage
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'coveralls'
|
require 'coveralls'
|
||||||
|
|
||||||
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
SimpleCov.formatters = [
|
||||||
|
Coveralls::SimpleCov::Formatter,
|
||||||
|
SimpleCov::Formatter::HTMLFormatter
|
||||||
|
]
|
||||||
SimpleCov.start
|
SimpleCov.start
|
||||||
|
|
||||||
require 'faraday'
|
require 'faraday'
|
||||||
|
|
Loading…
Reference in New Issue