| Class | Merb::Test::Rspec::ControllerMatchers::BeRedirect |
| In: |
merb-core/lib/merb-core/test/matchers/controller_matchers.rb
|
| Parent: | Object |
| 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 merb-core/lib/merb-core/test/matchers/controller_matchers.rb, line 10
10: def matches?(target)
11: @target = target
12: [307, *(300..305)].include?(target.respond_to?(:status) ? target.status : target)
13: end