Cernier is the former capital of the district of Val-de-Ruz in the canton of Neuchâtel in Switzerland.