Class: EventMachine::MockHttpRequest::FakeHttpClient

Inherits:
HttpClient
  • Object
show all
Defined in:
lib/em-http/mock.rb

Instance Method Summary collapse

Instance Method Details

#setup(response, uri) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/em-http/mock.rb', line 8

def setup(response, uri)
  @uri = uri
  if response == :fail
    fail(self)
  else
    receive_data(response)
    succeed(self)
  end
end

#unbindObject



18
19
# File 'lib/em-http/mock.rb', line 18

def unbind
end