Sha256: 139b56d40c719ce423fe5fed645712e2f039c668bd2f961dadcd9ff66e5374ee

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 Bytes

Contents

module KnowsSpring
  def host_application(context_location)
    @fake_dispatcher_servlet = ::Reigns::FakeDispatcherServlet.new(context_location)
  end

  def dispatcher
    @fake_dispatcher_servlet
  end

  def web_client
    @web_client ||= ::Reigns::WebClient.new(dispatcher)
  end

  def send_request(method, uri)
    @fake_dispatcher_servlet.send(method.downcase, uri)
  end
  
  def lookup_bean(bean_id)
    @fake_dispatcher_servlet.context.send(:get_bean, bean_id)
  end
end

World(KnowsSpring)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reigns-1.0.1-java features/support/world_extension.rb