{"action":"created","issue":{"url":"https://api.github.com/repos/cfpb/hmda-edit-check-api/issues/2","labels_url":"https://api.github.com/repos/cfpb/hmda-edit-check-api/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cfpb/hmda-edit-check-api/issues/2/comments","events_url":"https://api.github.com/repos/cfpb/hmda-edit-check-api/issues/2/events","html_url":"https://github.com/cfpb/hmda-edit-check-api/pull/2","id":53062100,"number":2,"title":"API for checking CRA reporters","user":{"login":"doelleri","id":695452,"avatar_url":"https://avatars.githubusercontent.com/u/695452?v=3","gravatar_id":"","url":"https://api.github.com/users/doelleri","html_url":"https://github.com/doelleri","followers_url":"https://api.github.com/users/doelleri/followers","following_url":"https://api.github.com/users/doelleri/following{/other_user}","gists_url":"https://api.github.com/users/doelleri/gists{/gist_id}","starred_url":"https://api.github.com/users/doelleri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doelleri/subscriptions","organizations_url":"https://api.github.com/users/doelleri/orgs","repos_url":"https://api.github.com/users/doelleri/repos","events_url":"https://api.github.com/users/doelleri/events{/privacy}","received_events_url":"https://api.github.com/users/doelleri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-29T18:58:21Z","updated_at":"2015-01-07T19:49:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cfpb/hmda-edit-check-api/pulls/2","html_url":"https://github.com/cfpb/hmda-edit-check-api/pull/2","diff_url":"https://github.com/cfpb/hmda-edit-check-api/pull/2.diff","patch_url":"https://github.com/cfpb/hmda-edit-check-api/pull/2.patch"},"body":"For cfpb/hmda-pilot#147"},"comment":{"url":"https://api.github.com/repos/cfpb/hmda-edit-check-api/issues/comments/69080277","html_url":"https://github.com/cfpb/hmda-edit-check-api/pull/2#issuecomment-69080277","issue_url":"https://api.github.com/repos/cfpb/hmda-edit-check-api/issues/2","id":69080277,"user":{"login":"LinuxBozo","id":723420,"avatar_url":"https://avatars.githubusercontent.com/u/723420?v=3","gravatar_id":"","url":"https://api.github.com/users/LinuxBozo","html_url":"https://github.com/LinuxBozo","followers_url":"https://api.github.com/users/LinuxBozo/followers","following_url":"https://api.github.com/users/LinuxBozo/following{/other_user}","gists_url":"https://api.github.com/users/LinuxBozo/gists{/gist_id}","starred_url":"https://api.github.com/users/LinuxBozo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinuxBozo/subscriptions","organizations_url":"https://api.github.com/users/LinuxBozo/orgs","repos_url":"https://api.github.com/users/LinuxBozo/repos","events_url":"https://api.github.com/users/LinuxBozo/events{/privacy}","received_events_url":"https://api.github.com/users/LinuxBozo/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T19:49:08Z","updated_at":"2015-01-07T19:49:08Z","body":"@doelleri one surefire way would be to remove the collection so it doesn't exist before the model query happens. However, this could be problematic, unless you recreate the collection and test data you just removed after that one particular test. \r\nUsually, you would also have to recreate any indexes, since when you drop a collection, indexes defined for that collection get dropped as well, however, because we're using mockgoose which does an in-memory mock, instead of using a real mongo server, and we're not creating indexes as part of the testdata process, there really aren't any indexes anyway."}}