The hearts desire shows you what you want. Rarity used it and found out she wanted Spike, but he interprets it as a false love and is confused. He can't see what right there and then Rarity gives him a sign and he knows everything they shared is true and that she really loved him.