class Merb::Test::Rspec::ControllerMatchers::BeRedirect
Public Instance Methods
failure_message()
click to toggle source
inspect_target()
click to toggle source
matches?(target)
click to toggle source
Parameters¶ ↑
- target<Fixnum, ~status>
-
Either the status code or a controller with a status code.
Returns¶ ↑
- 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