All of a sudden, my son had started to spit out his food---food that he has always eaten well before...I know this is a phase, but how long does it last?

When he does it, I offer him the food one more time, and if he does it again, that's it. Is this how I should handle it???