class RSpec::Rails::Matchers::RedirectTo::RedirectTo
@private
def failure_message
def failure_message rescued_exception.message end
def failure_message_when_negated
def failure_message_when_negated "expected not to redirect to #{@expected.inspect}, but did" end
def initialize(scope, expected)
def initialize(scope, expected) @expected = expected @scope = scope end
def matches?(_)
def matches?(_) match_unless_raises ActiveSupport::TestCase::Assertion do @scope.assert_redirected_to(@expected) end end