This was a particularly nasty test to try and pass. The two users generated by the factories had the same name which is how you login, therefore the person making the comment was the same as the person who made the ticket and wouldnt get an email. Changing the name parameter to something other than the factory default distinguished the two records so sign_in_as! behaved appropriately.. NASTY..