Remove some unused specs
Add specs for PreCommit and CommitMsg contexts
Replace deprecated mock with double
Add PostCheckout context specs