Jackie McNamara was pleased with his players' spirit after securing three points at Inverness thanks to a last-gasp winner from Gary Mackay-Steven.