Your test says "renders the confirm unpublish template", but then you don't actually assert it does that. Also, it should be the unpublish "edit" template, not "confirm".