Module
Merb::Test::RouteHelper
In:
lib/merb-core/test/helpers/route_helper.rb
Methods
request_to
url
Included Modules
RequestHelper
Public Instance methods
request_to
(path, method = :get, env = {})
Parameters
path<~to_string>:
The URL of the request.
method<~to_sym>:
HTTP request method.
env<
Hash
>:
Additional parameters for the request.
Returns
Hash
:
A hash containing the controller and action along with any parameters
url
(name, params={})
Mimics the
url
method available to controllers.
Parameters
name<~to_sym>:
The name of the URL to generate.
params<
Hash
>:
Parameters for the route generation.
Returns
String
:
The generated URL.
[Validate]