Specs for where $_ is defined and when it is defined?

I don't follow this comment - the method is there to perform a side effect. Why does it need an expectation on its own? I could add an expectation that $_ is set in this method, but then that's testing two separate things isn't it?