Parent

Class/Module Index [+]

Quicksearch

Shoulda::Matchers::ActionController::RouteMatcher

@private

Attributes

failure_message[R]
failure_message_for_should[R]
failure_message_for_should_not[R]
failure_message_when_negated[R]

Public Class Methods

new(method, path, context) click to toggle source
# File lib/shoulda/matchers/action_controller/route_matcher.rb, line 90
def initialize(method, path, context)
  @method  = method
  @path    = path
  @context = context
end

Public Instance Methods

description() click to toggle source
# File lib/shoulda/matchers/action_controller/route_matcher.rb, line 116
def description
  "route #{@method.to_s.upcase} #{@path} to/from #{@params.inspect}"
end
in_context(context) click to toggle source
# File lib/shoulda/matchers/action_controller/route_matcher.rb, line 106
def in_context(context)
  @context = context
  self
end
matches?(controller) click to toggle source
# File lib/shoulda/matchers/action_controller/route_matcher.rb, line 111
def matches?(controller)
  guess_controller!(controller)
  route_recognized?
end
to(*args) click to toggle source
# File lib/shoulda/matchers/action_controller/route_matcher.rb, line 101
def to(*args)
  @params = RouteParams.new(args).normalize
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.