Configured notifications, add-on feeds, and confirmations are not used when an entry is marked as spam
You can use the gform_confirmation filter to override the confirmation used for spam submissions:
The second code snippet for example 5 shows how you can return your configured confirmation.