Preload multijson adapter to avoid loading adapter while FakeFS enabled

This commit is contained in:
Steven Bazyl committed 2015-11-11 15:50:17 -08:00
1 parent 44ab4cdd56
commit 8ac3dcff8f
2 files changed
+5

No files matched your search

+1
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'
+4
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)