My MagicShine has never given me any trouble regardless of rain. I keep the battery in a waterproof pannier,though if I didn't have that I'd drop it into a plastic jar in a bottle cage and run the wire out of the bottom.
__________________
Work: the 8 hours that separates bike rides.