class RspecApiDocumentation::RequestSaver

Attributes

client[R]

Public Class Methods

new(app, client) click to toggle source
Calls superclass method
# File lib/rspec_api_documentation/http_test_client.rb, line 13
def initialize(app, client)
  super(app)
  @client = client
end

Public Instance Methods

call(env) click to toggle source
# File lib/rspec_api_documentation/http_test_client.rb, line 18
def call(env)
  client.last_request = env

  @app.call(env).on_complete do |env|
    client.last_response = env
  end
end