spilled the beans

If someone spilled the beans it means this person has given away a secret or a surprise without the prior consent of the person directly or indirectly involved with this surprise. Most often, someone is said to have spilled the beans when there is a surprise party or something similar being thrown for a person and the one who spills the beans has told this person about the surprise before the surprise even happens.