I'd clone your HDD to the SSD, then install the SSD, then once booting and all good upgrade to Yosemite. That way if something doesn't work you will know whether it is due to the SSD or the change to Yosemite.
Oh and you can put the old HDD in a USB caddy and use it as a scratch drive if you wanted...