Preload multijson adapter to avoid loading adapter while FakeFS enabled

This commit is contained in:
Steven Bazyl 2015-11-11 15:50:17 -08:00
parent 44ab4cdd56
commit 8ac3dcff8f
2 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,7 @@ spec_dir = File.expand_path(File.join(File.dirname(__FILE__)))
$LOAD_PATH.unshift(spec_dir)
$LOAD_PATH.uniq!
require 'spec_helper'
require 'fakefs/safe'
require 'googleauth'

View File

@ -47,6 +47,10 @@ require 'rspec'
require 'logging'
require 'rspec/logging_helper'
require 'webmock/rspec'
require 'multi_json'
# Preload adapter to work around Rubinius error with FakeFS
MultiJson.use(:json_gem)
# Allow Faraday to support test stubs
Faraday::Adapter.load_middleware(:test)