I was taught that correct form is to not put spaces around them, as stated here:

http://www.grammarbook.com/punctuation/dashes.asp

"Most authorities recommend using no spaces before or after en or em dashes."