How to Eat Fried Worms (2006), based on the novel by Thomas Rockwell, puts 11-year old Billy (Luke Benward, left, later photo) in a new school, where he becomes the target of bully Joe Guire (Adam Hicks) and his cronies. Eventually Billy agrees to a contest: he must eat ten worms in one day without throwing up. The "loser" has to come to school with the remaining worms in his pants.
One of the worms didn't get eaten -- it was accidentally put into an omelet that another character ate. So they both technically lost the contest. The last scene shows Billy and Joe both entering the school with worms in their pants, their arms around each other, now friends.
1. Adam Hicks (left, later photo) plays Joe as a wounded, almost a tragic figure, who is attracted to Billy but doesn't know how to go about expressing his interest. "They tease you because they like you."
2. Neither display any heterosexual interests. Billy makes friends with a girl.
3. Joe and Billy smile at each other, one of those smiles that stays with you forever, like Sean and Rich (Kurt Russell, Patrick Dawson) in The Secret of Boyne Castle.
Luke Benward, not so much: his characters win The Girl of Their Dreams in Mostly Ghostly (2008) and Girl vs. Monster (2012).
See also: Alexander Gould of Weeds.