Skip to content

Commit

Permalink
WebMock attempts to load Typhoeus before monkey patching it
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Aug 9, 2011
1 parent fe52257 commit 3a8b7c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/webmock/http_lib_adapters/typhoeus_hydra.rb
@@ -1,3 +1,9 @@
begin
require 'typhoeus'
rescue LoadError
# typhoeus not found
end

if defined?(Typhoeus)

::Typhoeus::Hydra.allow_net_connect = true
Expand Down

0 comments on commit 3a8b7c4

Please sign in to comment.