I'm running the tests with latest edge rails and this one is failing:
0 instead of 1 queries were executed.
<1> expected but was
Is anyone else getting this? It was added a week ago with this commit:
The test itself doesn't make much sense to me. No queries should be
running because the "empty?" method is stubbed out so a Count query
never gets called. It seems the test itself is wrong, not the code.
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.