A man has pleaded guilty after spitting at a woman who failed to give him a lighter.