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