diff --git a/spec/client_spec.rb b/spec/client_spec.rb index 56cfca01..289a72bb 100644 --- a/spec/client_spec.rb +++ b/spec/client_spec.rb @@ -1,5 +1,8 @@ # frozen_string_literal: true -require 'faraday/net_http_persistent' +if Gem::Requirement.new('>= 2.0').satisfied_by? Gem.loaded_specs['faraday'].version + require 'faraday/net_http_persistent' +end + module DropboxApi describe Client do