You didn't tell him not to eat it, so it's technically not disobedience. Anticipating orders is taught in advanced obedience school.