Apply some slight improvements to nil expectation warning logic.
Created by: myronmarston
- Use backticks in the warning to indicate code snippets.
- Make specs slightly less brittle by preferring the
output
matcher over mockingKernel.warn
(an interface we don’t own), and by specifying only a few important bits of the warning.
Followup to #983.