Class Merb::Test::Rspec::RouteMatchers::ParameterMatcher
In: lib/merb-core/test/matchers/route_matchers.rb
Parent: Object

Methods

Attributes

actual  [RW] 
expected  [RW] 

Public Class methods

Parameters

hash_or_object<Hash, ~to_param>:The parameters to match.

Alternatives

If hash_or_object is an object, then a new expected hash will be constructed with the key :id set to hash_or_object.to_param.

Public Instance methods

Returns

String:The failure message.

Parameters

parameter_hash<Hash>:The route parameters to match.

Returns

Boolean:True if the route parameters match the expected ones.

Returns

String:The failure message to be displayed in negative matches.

[Validate]