reset!

reset!() Instance Public methods Reset the current session. This is useful for testing multiple sessions in a single test case.

open_session

open_session(app = nil) Instance Public methods Open a new session instance. If a block is given, the new session is yielded to the block before being returned. session = open_session do |sess| sess.extend(CustomAssertions) end By default, a single session is automatically created for you, but you can use this method to open multiple sessions that ought to be tested simultaneously.

method_missing

method_missing(sym, *args, &block) Instance Public methods Delegate unhandled messages to the current session instance.

default_url_options=

default_url_options=(options) Instance Public methods

default_url_options

default_url_options() Instance Public methods

app

app() Instance Public methods

xml_http_request

xml_http_request(request_method, path, parameters = nil, headers_or_env = nil) Instance Public methods Performs an XMLHttpRequest request with the given parameters, mirroring a request from the Prototype library. The request_method is :get, :post, :patch, :put, :delete or :head; the parameters are nil, a hash, or a url-encoded or multipart string; the headers are a hash. xhr

xhr

xhr(request_method, path, parameters = nil, headers_or_env = nil) Instance Public methods Alias for: xml_http_request

request_via_redirect

request_via_redirect(http_method, path, parameters = nil, headers_or_env = nil) Instance Public methods Performs a request using the specified method, following any subsequent redirect. Note that the redirects are followed until the response is not a redirectâthis means you may run into an infinite loop if your redirect loops back to itself.

put_via_redirect

put_via_redirect(path, parameters = nil, headers_or_env = nil) Instance Public methods Performs a PUT request, following any subsequent redirect. See request_via_redirect for more information.