Skip to content

class Athena::Framework::Spec::HTTPBrowser
inherits Athena::Framework::Spec::AbstractBrowser #

Simulates a browser and makes a requests to ATH::RouteHandler.

Methods#

#container : ADI::Spec::MockableServiceContainer#

Returns a reference to an ADI::Spec::MockableServiceContainer to allow configuring the container before a test.

View source

#session : AHTTP::Session#

Returns the session of the browser, starting a new one if the browser does not have one yet. Requires sessions and framework.test to be enabled.

Allows setting up the session before making a request, or checking its data afterwards.

session = self.client.session
session.set "cart", [1, 2, 3]
session.save

self.get "/cart"
View source