Sha256: d68e715d48cd4b63f7d7d4db9eff0bc24cd16c8862a0b6ce78f0d11f9719f359

Contents?: true

Size: 217 Bytes

Versions: 2

Compression:

Stored size: 217 Bytes

Contents

class GenericResponder
  attr_reader :requests

  def initialize
    @requests = []
  end

  def last_request
    @requests.last
  end

  def call(env)
    # does not record the requests
    [200, {}, ['']]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rallycat-0.4.1 spec/support/generic_responder.rb
rallycat-0.4.0 spec/support/generic_responder.rb