When using skills that spend mana, ward is not being granted at all. There is zero ward gain.
This was tested by stacking to 141% of mana spent gained as ward, using the fastest attack possible to proc meteors from harbinger of stars (in order to quickly prompt high mana usage without going negative).
It is clear to see the mana depreciate by large amounts quite often but ward goes untouched. This does not fulfill “mana spent gained as ward” as the only part that happens is the mana is spent.