"Spat the dummy" is a colloquial Australian expression meaning to throw a tantrum or become extremely angry, often in a childish or dramatic way. It evokes the image of a baby spitting out a pacifier (dummy) in frustration.
Example: "The toddler spat the dummy when they didn't get the toy." It can also apply to adults: "The politician spat the dummy when asked a tough question."