Add spec definition for .midnight method
Add the code to make previous spec commit pass