Class | Merb::Test::Rspec::RouteMatchers::RouteToMatcher |
In: |
lib/merb-core/test/matchers/route_matchers.rb
|
Parent: | Object |
target<Hash>: | The route parameters to match. |
Boolean: | True if the controller action and parameters match. |
Creates a new paramter matcher.
parameters<Hash, ~to_param>: | The parameters to match. |
RouteToMatcher: | This matcher. |
If parameters is an object, then a new expected hash will be constructed with the key :id set to parameters.to_param.