diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5e4d36ff..37c0f632 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -61,6 +61,7 @@ Naming/AccessorMethodName: - 'lib/api_auth/request_drivers/net_http.rb' - 'lib/api_auth/request_drivers/rack.rb' - 'lib/api_auth/request_drivers/rest_client.rb' + - 'lib/api_auth/request_drivers/typhoeus_request.rb' # Offense count: 3 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. diff --git a/lib/api_auth/request_drivers/typhoeus_request.rb b/lib/api_auth/request_drivers/typhoeus_request.rb index 78d6b595..54bdfad8 100644 --- a/lib/api_auth/request_drivers/typhoeus_request.rb +++ b/lib/api_auth/request_drivers/typhoeus_request.rb @@ -1,12 +1,11 @@ module ApiAuth - module RequestDrivers - class TyphoeusRequest + module RequestDrivers # :nodoc: + class TyphoeusRequest # :nodoc: include ApiAuth::Helpers def initialize(request) @request = request fetch_headers - true end def set_auth_header(header) diff --git a/spec/request_drivers/typhoeus_request_spec.rb b/spec/request_drivers/typhoeus_request_spec.rb index 1bde7e26..1d6803c2 100644 --- a/spec/request_drivers/typhoeus_request_spec.rb +++ b/spec/request_drivers/typhoeus_request_spec.rb @@ -193,5 +193,4 @@ expect(driven_request.fetch_headers).to include('CONTENT-TYPE' => 'text/plain') end end - end