public static void verify(RackResponse response) throws Exception
{
if (isImage(response))
{
String fileType = "png";
verify(new ApprovalBinaryFileWriter(response.getResponse(), fileType), fileType);
}
else
{
verifyHtml(response.getResponse().toString());
}