Skip to content

Commit

Permalink
Accept args for allow/dissalow net connect
Browse files Browse the repository at this point in the history
  • Loading branch information
ijcd committed Feb 25, 2012
1 parent d157e0b commit 7428365
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/hoodwink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def self.datastore
interceptor.datastore
end

def self.allow_net_connect!
interceptor.allow_net_connect!
# TODO: can we allow/disallow from a regexp?
def self.allow_net_connect!(*args)
interceptor.allow_net_connect!(*args)
end

def self.disable_net_connect!
interceptor.disable_net_connect!
# TODO: WebMock.disable_net_connect!(:allow => "www.example.org:8080")
def self.disable_net_connect!(*args)
interceptor.disable_net_connect!(*args)
end

def self.reset
Expand Down

0 comments on commit 7428365

Please sign in to comment.