It's not automatic. If you come across a spammer that is doing this and hasn't been destroyed, let us know via a custom flag that points to the edit. You can do this on either the post they tried to vandalize or some random post if they were doing this on a wiki.
That's what was done in this case, and I destroyed the spammer and banned the one reviewer who approved this as a result. Even if you just see someone approving obvious spam in a review, it can be helpful to let us know so that we can look into their review history and take action if needed.
Moderators have a query we can run every day to find spammers that didn't get destroyed (usually because the community took care of their posts while a bunch of us weren't around), but that doesn't catch people spamming in suggested edits. Those we might need to be made aware of via flags.