Preload multijson adapter to avoid loading adapter while FakeFS enabled
This commit is contained in:
parent
44ab4cdd56
commit
8ac3dcff8f
|
@ -31,6 +31,7 @@ spec_dir = File.expand_path(File.join(File.dirname(__FILE__)))
|
||||||
$LOAD_PATH.unshift(spec_dir)
|
$LOAD_PATH.unshift(spec_dir)
|
||||||
$LOAD_PATH.uniq!
|
$LOAD_PATH.uniq!
|
||||||
|
|
||||||
|
require 'spec_helper'
|
||||||
require 'fakefs/safe'
|
require 'fakefs/safe'
|
||||||
require 'googleauth'
|
require 'googleauth'
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,10 @@ require 'rspec'
|
||||||
require 'logging'
|
require 'logging'
|
||||||
require 'rspec/logging_helper'
|
require 'rspec/logging_helper'
|
||||||
require 'webmock/rspec'
|
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
|
# Allow Faraday to support test stubs
|
||||||
Faraday::Adapter.load_middleware(:test)
|
Faraday::Adapter.load_middleware(:test)
|
||||||
|
|
Loading…
Reference in New Issue