Exception: Fredo::NetConnectNotAllowedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/fredo.rb

Overview

This exception is raised if you set Fredo.allow_net_connect = false and subsequently try to make a request to a URI you haven’t stubbed.

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ NetConnectNotAllowedError

Returns a new instance of NetConnectNotAllowedError.



62
63
64
# File 'lib/fredo.rb', line 62

def initialize(uri)
  super "Connection to #{uri} is disabled"
end