The latest Mac mini came with 10.10 Yosemite, so you would have to upgrade from 10.8 to 10.10 using another Mac before putting the SSD into the Mac mini. Or alternatively you could perform an internet recovery on it to get 10.10 installed on the SSD.