Sha256: b5b8bd7aad20760f8f19f32d4c27f584a0942256f2c780dad597a2b7ca72a060

Contents?: true

Size: 258 Bytes

Versions: 1

Compression:

Stored size: 258 Bytes

Contents

require_relative '../async'
shared_context :async do
  def callback
    @callback ||= Async::Callback.new
  end

  def async_response_handler
    @async_response_handler = Async::ResponseHandler.new
  end

  def last_response
    app.last_response
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sitehub-0.4.3 spec/support/shared_contexts/async_context.rb