class Spec::Rails::Matchers::RedirectTo

def failure_message

def failure_message
  if @redirected
    return %Q{expected redirect to #{@expected.inspect}, got redirect to #{@actual.inspect}}
  else
    return %Q{expected redirect to #{@expected.inspect}, got no redirect}
  end
end