After I scattered this anti-pattern throughout the test suite, I realized I should have used a [Jasmine spy](http://pivotal.github.com/jasmine/#section-Spies) instead:

```javascript
spyOn(console, 'log');
```

Then you should be able to dispense with lines 142 and 150. It appears that Jasmine spies aren't designed to work with object properties, so the `env.opts.lenient` rigmarole is still necessary.

No need to change this if you don't want to, but I thought you might be interested!