puppetlabs/puppetdb — pull request #1161 by senior (2014-11-19 20:11:22+00:00)
Title: (PDB-1017) Fix node tests hiding failures

There were several tests that were failing in v4 that were being hidden
by skipping over the assertions when the resulset was nil/empty. This
commit adds an explicit result count check and fixes the tests that were broken.