Skip to content

Commit

Permalink
Merge pull request #849 from marcotc/excon-warning
Browse files Browse the repository at this point in the history
Suppress excon warning generated by extra key
  • Loading branch information
bblimke authored Sep 17, 2019
2 parents 97ed7a8 + 97d135c commit 8bca1c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/webmock/http_lib_adapters/excon_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,7 @@ def self.new(args = {})
end
end
end

# Suppresses Excon connection argument validation warning
Excon::VALID_CONNECTION_KEYS << :__construction_args
end
2 changes: 2 additions & 0 deletions spec/acceptance/excon/excon_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def http_request(method, uri, options = {}, &block)
res
end

Excon.set_raise_on_warnings!(true)

OpenStruct.new \
body: response.body,
headers: headers,
Expand Down

0 comments on commit 8bca1c4

Please sign in to comment.