Class: PollEverywhere::HTTP::Adapter::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/polleverywhere/http/adapter.rb

Instance Method Summary collapse

Instance Method Details

#execute(request, &block) ⇒ Object


47
48
49
50
# File 'lib/polleverywhere/http/adapter.rb', line 47

def execute(request, &block)
  requests << request
  block.call(Response.new)
end

#requestsObject


52
53
54
# File 'lib/polleverywhere/http/adapter.rb', line 52

def requests
  @requests ||= []
end