fixes #275 - mockPrompt() callback in sync with prompt().
Merge pull request #276 from stephenplusplus/273-mockPrompt

fixes #275 - mockPrompt() callback in sync with prompt().