Probably someone else found this out but I still thought it was funny.
I wanted to make a new city and pinpointed a spot in an area I found earlier. I had a spearman and settler go together there. When I got there I noticed a barb camp next to where I wanted the city.
Well since my spearmen was 1 square ahead, I let him go right up and fortify. Then I made my city there. I got the barb gold without killing the camp.
The warrior lived though and proceeded to attack my city. He made my spearmen a veteran!