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
# File 'lib/em-http/mock.rb', line 8

def setup(response, uri)
  @uri = uri
  receive_data(response)
  succeed(self) 
end

#unbindObject



14
15
# File 'lib/em-http/mock.rb', line 14

def unbind
end