Add test for 500 responses

This commit is contained in:
Seth House
2015-08-28 21:51:33 -06:00
parent f07812cf63
commit af90039620
+12
View File
@@ -27,4 +27,16 @@ test_get_404() {
fi
}
test_get_500() {
$SCRIPT _get /test_error 2>/dev/null
local ret=$?
if [ "$ret" -eq 1 ]; then
return 0
else
printf 'Return code for 500 is "%s"; expected 1.\n' "$ret"
return 1
fi
}
_main "$@"