class RSpec::Rails::Matchers::RenderTemplate::RenderTemplateMatcher
def failure_message
- Api: - private
def failure_message if @redirect_is rescued_exception.message[/(.*?)( but|$)/, 1] + " but was a redirect to <#{@redirect_is}>" else rescued_exception.message end end