Any reason you’re not using spec_set? That should be IMHO always used when using mock.

Also why the _-prefix for a local variable?