I'm running the tests with latest edge rails and this one is failing:
UPDATE: I just updated mocha and now this test is passing. I'm
assuming this has to do with how "expects" gets passed to proxy_scope
and ends up loading the results performing in the 1 query. I'm posting
this anyway because I think this test should be fixed so it doesn't
rely on the version of mocha installed.
Either that, or we should simply up the minimum version we support in
the uses_mocha code. Either approach seems fine to me.
Good hunting, do you want to do the honours?
I'd prefer to change the test itself since others are having this
problem as well (see comment in the github commit). I'll work on
submitting a patch to lighthouse.
Here's the ticket with patch: