I want to start this out by saying that the female coworker I trained wasn't coasting and she really wanted to learn how to do the job, but most importantly do it right. I had been working for this outfit for about 2 years, and every foreman I had worked with had giving me great reviews. A position opened up which was basically the same thing I had been doing, but instead of residential work, it would be more on the commercial side. This new title came with a substantial pay raise and I made it very clear to my bosses that I wanted the job. A week or so went by and they had me take written tests to see how well I knew everything incumbent to the job, I passed every single test without getting single answer wrong. This job was mine. I busted my ass. Then I get the word that they hired someone to fill the position. I was bummed out to say the least, but to make it worse it was someone with no prior experience and I had to train them on how to do the job. This person happened to be female and day one during training was getting paid almost twice as much as myself. I didn't take it lightly and requested a meeting with my superiors. They told me that it was because a quota for minorities had to be filled (even though the person who left and created the vacancy was a white male) and that I should just keep doing what I have been doing and it will all work out for me. I walked out of that office, thought about it for a minute, walked back in and quit. I got the job I was looking for at a competing company with in a week. Like I said I have nothing against the person who got the job, she was eager to learn and do it the right way, but that doesn't mean I had to take it sitting down.
You don't have to stand and take the bullshit that comes your way.
edit: I want to thank the people who gave me gold. I had no idea this submission was going to get this kind of attention.