{"action":"opened","number":111,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/111","id":78911334,"html_url":"https://github.com/ministryofjustice/moving-people-safely/pull/111","diff_url":"https://github.com/ministryofjustice/moving-people-safely/pull/111.diff","patch_url":"https://github.com/ministryofjustice/moving-people-safely/pull/111.patch","issue_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/111","number":111,"state":"open","locked":false,"title":"Ensure factory girl collections aren't empty","user":{"login":"dan-palmer","id":1006365,"avatar_url":"https://avatars.githubusercontent.com/u/1006365?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-palmer","html_url":"https://github.com/dan-palmer","followers_url":"https://api.github.com/users/dan-palmer/followers","following_url":"https://api.github.com/users/dan-palmer/following{/other_user}","gists_url":"https://api.github.com/users/dan-palmer/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-palmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-palmer/subscriptions","organizations_url":"https://api.github.com/users/dan-palmer/orgs","repos_url":"https://api.github.com/users/dan-palmer/repos","events_url":"https://api.github.com/users/dan-palmer/events{/privacy}","received_events_url":"https://api.github.com/users/dan-palmer/received_events","type":"User","site_admin":false},"body":"When we ask for a collection we should expect at least\r\none element. This sets up a random number in a given\r\ncollection between 1 & 5.","created_at":"2016-07-26T19:33:42Z","updated_at":"2016-07-26T19:33:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88b5b92534cde8481499633eb313281e7d1d22a0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/111/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/111/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/111/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/statuses/938429d80a3808d896ac9684a3d5354ca319d2d4","head":{"label":"ministryofjustice:dont-allow-empty-collections-in-factorygirl","ref":"dont-allow-empty-collections-in-factorygirl","sha":"938429d80a3808d896ac9684a3d5354ca319d2d4","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":61026442,"name":"moving-people-safely","full_name":"ministryofjustice/moving-people-safely","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/moving-people-safely","description":"Moving People Safely - Digital Person Escort Record","fork":false,"url":"https://api.github.com/repos/ministryofjustice/moving-people-safely","forks_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/forks","keys_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/events","assignees_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/merges","archive_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/deployments","created_at":"2016-06-13T10:10:06Z","updated_at":"2016-06-13T11:18:41Z","pushed_at":"2016-07-26T19:33:42Z","git_url":"git://github.com/ministryofjustice/moving-people-safely.git","ssh_url":"git@github.com:ministryofjustice/moving-people-safely.git","clone_url":"https://github.com/ministryofjustice/moving-people-safely.git","svn_url":"https://github.com/ministryofjustice/moving-people-safely","homepage":"","size":519,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"21e84ca89c5d8803b900e9fdff4178590528529f","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":61026442,"name":"moving-people-safely","full_name":"ministryofjustice/moving-people-safely","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/moving-people-safely","description":"Moving People Safely - Digital Person Escort Record","fork":false,"url":"https://api.github.com/repos/ministryofjustice/moving-people-safely","forks_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/forks","keys_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/events","assignees_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/merges","archive_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/moving-people-safely/deployments","created_at":"2016-06-13T10:10:06Z","updated_at":"2016-06-13T11:18:41Z","pushed_at":"2016-07-26T19:33:42Z","git_url":"git://github.com/ministryofjustice/moving-people-safely.git","ssh_url":"git@github.com:ministryofjustice/moving-people-safely.git","clone_url":"https://github.com/ministryofjustice/moving-people-safely.git","svn_url":"https://github.com/ministryofjustice/moving-people-safely","homepage":"","size":519,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/111"},"html":{"href":"https://github.com/ministryofjustice/moving-people-safely/pull/111"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/111"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/moving-people-safely/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/moving-people-safely/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/moving-people-safely/statuses/938429d80a3808d896ac9684a3d5354ca319d2d4"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":4,"changed_files":3}}
{"actor":{"display_login":"dan-palmer"}}