Write specs for controller