The failure message. |
# File lib/merb-core/test/matchers/controller_matchers.rb, line 17 def failure_message "expected#{inspect_target} to redirect" end
The controller and action name. |
# File lib/merb-core/test/matchers/controller_matchers.rb, line 29 def inspect_target " #{@target.controller_name}##{@target.action_name}" if @target.respond_to?(:controller_name) && @target.respond_to?(:action_name) end
target<Fixnum, ~status> |
Either the status code or a controller with a status code. |
Boolean |
True if the status code is in the range 300..305 or 307. |
# File lib/merb-core/test/matchers/controller_matchers.rb, line 10 def matches?(target) @target = target [307, *(300..305)].include?(target.respond_to?(:status) ? target.status : target) end
Generated with the Darkfish Rdoc Generator 2.