Skip to content
Browse files

Use block_connection.

  • Loading branch information...
1 parent 250e1e2 commit 48daae8f297e8e9692a8a618d2cbf320fba715c5 @i0rek i0rek committed Aug 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb
View
4 lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb
@@ -15,13 +15,13 @@ class TyphoeusAdapter < HttpLibAdapter
def self.enable!
@disabled = false
add_after_request_callback
- ::Typhoeus::Hydra.allow_net_connect = true
+ ::Typhoeus::Config.block_connection = true
end
def self.disable!
@disabled = true
remove_after_request_callback
- ::Typhoeus::Hydra.allow_net_connect = true
+ ::Typhoeus::Config.block_connection = false
end
def self.disabled?

0 comments on commit 48daae8

Please sign in to comment.
Something went wrong with that request. Please try again.