Skip to content

Commit b5742ee

Browse files
committed
Fix require when using Faraday 1.0
1 parent eaa9e36 commit b5742ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/client_spec.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# frozen_string_literal: true
2-
require 'faraday/net_http_persistent'
2+
if Gem::Requirement.new('>= 2.0').satisfied_by? Gem.loaded_specs['faraday'].version
3+
require 'faraday/net_http_persistent'
4+
end
5+
36

47
module DropboxApi
58
describe Client do

0 commit comments

Comments
 (0)