{"action":"created","comment":{"url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments/91423919","pull_request_review_id":11932252,"id":91423919,"diff_hunk":"@@ -0,0 +1,51 @@\n+require 'rails_helper'\n+require 'rake'\n+\n+describe 'people rake tasks' do\n+  describe 'people:generate' do\n+    include_context 'rake'\n+\n+    let(:task_name) do\n+      'people:generate'\n+    end\n+\n+    it 'creates 10 people by default' do\n+      expect {\n+        run_task\n+      }.to change{Person.count}.by(10)\n+    end\n+\n+    it 'accepts number of people to create as argument' do\n+      expect {\n+        run_task('3')\n+      }.to change{Person.count}.by(3)","path":"spec/tasks/people_tasks_spec.rb","position":21,"original_position":21,"commit_id":"1bf4917ff65debc03f6cb2b29d6b0e743b9e39ac","original_commit_id":"1bf4917ff65debc03f6cb2b29d6b0e743b9e39ac","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Space missing to the left of {.<br>Space missing inside {.<br>Space missing inside }.","created_at":"2016-12-08T01:09:34Z","updated_at":"2016-12-08T01:09:34Z","html_url":"https://github.com/codeforamerica/jail-dashboard/pull/41#discussion_r91423919","pull_request_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments/91423919"},"html":{"href":"https://github.com/codeforamerica/jail-dashboard/pull/41#discussion_r91423919"},"pull_request":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41","id":97040893,"html_url":"https://github.com/codeforamerica/jail-dashboard/pull/41","diff_url":"https://github.com/codeforamerica/jail-dashboard/pull/41.diff","patch_url":"https://github.com/codeforamerica/jail-dashboard/pull/41.patch","issue_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/41","number":41,"state":"open","locked":false,"title":"Creates `sample_data:generate` task for generating people & weekly bookings","user":{"login":"hartsick","id":3675092,"avatar_url":"https://avatars.githubusercontent.com/u/3675092?v=3","gravatar_id":"","url":"https://api.github.com/users/hartsick","html_url":"https://github.com/hartsick","followers_url":"https://api.github.com/users/hartsick/followers","following_url":"https://api.github.com/users/hartsick/following{/other_user}","gists_url":"https://api.github.com/users/hartsick/gists{/gist_id}","starred_url":"https://api.github.com/users/hartsick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartsick/subscriptions","organizations_url":"https://api.github.com/users/hartsick/orgs","repos_url":"https://api.github.com/users/hartsick/repos","events_url":"https://api.github.com/users/hartsick/events{/privacy}","received_events_url":"https://api.github.com/users/hartsick/received_events","type":"User","site_admin":false},"body":"Uses existing fakedata task to create three new rake tasks for generating sample data for use in development. Does not write data to CSV — instead inserts directly in database.\r\n\r\n* `rake sample_data:generate[count]`: Entrypoint for creating new data. Runs both `people:generate[count]` and `bookings:generate_weekly[count]` to generate a given number (default is 10) of people and bookings for the current week.\r\n* `rake people:generate[count]`: Creates new sample people in database. Confines gender and race to existing values in application.\r\n* `rake bookings:generate_weekly[count]`: Creates new sample bookings for last week in database. Varies whether they have been released or not. Restricts status and facility name to existing values in application.\r\n\r\nCloses [#34](https://waffle.io/codeforamerica/jail-dashboard-project/cards/5848555feb07a191011fa941)","created_at":"2016-12-08T01:09:27Z","updated_at":"2016-12-08T01:09:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/41/comments","statuses_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/1bf4917ff65debc03f6cb2b29d6b0e743b9e39ac","head":{"label":"codeforamerica:bookings-generation-#34","ref":"bookings-generation-#34","sha":"1bf4917ff65debc03f6cb2b29d6b0e743b9e39ac","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":72130706,"name":"jail-dashboard","full_name":"codeforamerica/jail-dashboard","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/jail-dashboard","description":"A tool to help jail administrators, judges, and other stakeholders understand the conditions in metro jails, and use this data to visualize how their decisions–at both the individual and policy level–affect program, facility, and inmate outcomes.","fork":false,"url":"https://api.github.com/repos/codeforamerica/jail-dashboard","forks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/forks","keys_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/teams","hooks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/events","assignees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/tags","blobs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscription","commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/merges","archive_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/downloads","issues_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/deployments","created_at":"2016-10-27T17:14:21Z","updated_at":"2016-12-06T08:27:07Z","pushed_at":"2016-12-08T01:09:27Z","git_url":"git://github.com/codeforamerica/jail-dashboard.git","ssh_url":"git@github.com:codeforamerica/jail-dashboard.git","clone_url":"https://github.com/codeforamerica/jail-dashboard.git","svn_url":"https://github.com/codeforamerica/jail-dashboard","homepage":null,"size":23183,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"codeforamerica:master","ref":"master","sha":"9947ec32204f63f36bcb2e329b8a7ba4e0e34725","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":72130706,"name":"jail-dashboard","full_name":"codeforamerica/jail-dashboard","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/jail-dashboard","description":"A tool to help jail administrators, judges, and other stakeholders understand the conditions in metro jails, and use this data to visualize how their decisions–at both the individual and policy level–affect program, facility, and inmate outcomes.","fork":false,"url":"https://api.github.com/repos/codeforamerica/jail-dashboard","forks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/forks","keys_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/teams","hooks_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/events","assignees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/tags","blobs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/subscription","commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/merges","archive_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/downloads","issues_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/codeforamerica/jail-dashboard/deployments","created_at":"2016-10-27T17:14:21Z","updated_at":"2016-12-06T08:27:07Z","pushed_at":"2016-12-08T01:09:27Z","git_url":"git://github.com/codeforamerica/jail-dashboard.git","ssh_url":"git@github.com:codeforamerica/jail-dashboard.git","clone_url":"https://github.com/codeforamerica/jail-dashboard.git","svn_url":"https://github.com/codeforamerica/jail-dashboard","homepage":null,"size":23183,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41"},"html":{"href":"https://github.com/codeforamerica/jail-dashboard/pull/41"},"issue":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/41"},"comments":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/jail-dashboard/statuses/1bf4917ff65debc03f6cb2b29d6b0e743b9e39ac"}}}}
{"actor":{"display_login":"houndci-bot"}}