{"action":"opened","number":373,"pull_request":{"url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/373","id":75221860,"html_url":"https://github.com/code-corps/code-corps-api/pull/373","diff_url":"https://github.com/code-corps/code-corps-api/pull/373.diff","patch_url":"https://github.com/code-corps/code-corps-api/pull/373.patch","issue_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/373","number":373,"state":"open","locked":false,"title":"Speed up and backfill policy specs","user":{"login":"christopherstyles","id":183812,"avatar_url":"https://avatars.githubusercontent.com/u/183812?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherstyles","html_url":"https://github.com/christopherstyles","followers_url":"https://api.github.com/users/christopherstyles/followers","following_url":"https://api.github.com/users/christopherstyles/following{/other_user}","gists_url":"https://api.github.com/users/christopherstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherstyles/subscriptions","organizations_url":"https://api.github.com/users/christopherstyles/orgs","repos_url":"https://api.github.com/users/christopherstyles/repos","events_url":"https://api.github.com/users/christopherstyles/events{/privacy}","received_events_url":"https://api.github.com/users/christopherstyles/received_events","type":"User","site_admin":false},"body":"Using `build_stubbed` significantly speeds up specs by reducing trips to the database. See the following:\r\n\r\nhttps://robots.thoughtbot.com/use-factory-girls-build-stubbed-for-a-faster-test\r\n\r\nPrior to this update, policy specs often ran in total around 25–28s. After the update, run times seem to be between 6–9s. :racehorse::dash: \r\n\r\nWe can probably apply the same to other specs, quite easily for models.","created_at":"2016-06-26T05:19:32Z","updated_at":"2016-06-26T05:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"christopherstyles","id":183812,"avatar_url":"https://avatars.githubusercontent.com/u/183812?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherstyles","html_url":"https://github.com/christopherstyles","followers_url":"https://api.github.com/users/christopherstyles/followers","following_url":"https://api.github.com/users/christopherstyles/following{/other_user}","gists_url":"https://api.github.com/users/christopherstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherstyles/subscriptions","organizations_url":"https://api.github.com/users/christopherstyles/orgs","repos_url":"https://api.github.com/users/christopherstyles/repos","events_url":"https://api.github.com/users/christopherstyles/events{/privacy}","received_events_url":"https://api.github.com/users/christopherstyles/received_events","type":"User","site_admin":false},"assignees":[{"login":"christopherstyles","id":183812,"avatar_url":"https://avatars.githubusercontent.com/u/183812?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherstyles","html_url":"https://github.com/christopherstyles","followers_url":"https://api.github.com/users/christopherstyles/followers","following_url":"https://api.github.com/users/christopherstyles/following{/other_user}","gists_url":"https://api.github.com/users/christopherstyles/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherstyles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherstyles/subscriptions","organizations_url":"https://api.github.com/users/christopherstyles/orgs","repos_url":"https://api.github.com/users/christopherstyles/repos","events_url":"https://api.github.com/users/christopherstyles/events{/privacy}","received_events_url":"https://api.github.com/users/christopherstyles/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/373/commits","review_comments_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/373/comments","review_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/373/comments","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/d9e2be41a2e1a57364801ce66962363e601b6fbe","head":{"label":"code-corps:speed-up-and-backfill-policy-specs","ref":"speed-up-and-backfill-policy-specs","sha":"d9e2be41a2e1a57364801ce66962363e601b6fbe","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":37823327,"name":"code-corps-api","full_name":"code-corps/code-corps-api","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-api","description":"Rails API for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-api","forks_url":"https://api.github.com/repos/code-corps/code-corps-api/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-api/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-api/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-api/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-api/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-api/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-api/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-api/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-api/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-api/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-api/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-api/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-api/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-api/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-api/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-api/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-api/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-api/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-api/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-api/deployments","created_at":"2015-06-21T19:46:54Z","updated_at":"2016-06-24T16:53:10Z","pushed_at":"2016-06-26T05:19:33Z","git_url":"git://github.com/code-corps/code-corps-api.git","ssh_url":"git@github.com:code-corps/code-corps-api.git","clone_url":"https://github.com/code-corps/code-corps-api.git","svn_url":"https://github.com/code-corps/code-corps-api","homepage":"https://codecorps.org","size":1348,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":36,"forks":14,"open_issues":36,"watchers":15,"default_branch":"develop"}},"base":{"label":"code-corps:develop","ref":"develop","sha":"368259a0bd970d88d481d1c84f576b3d9d6683be","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":37823327,"name":"code-corps-api","full_name":"code-corps/code-corps-api","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-api","description":"Rails API for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-api","forks_url":"https://api.github.com/repos/code-corps/code-corps-api/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-api/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-api/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-api/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-api/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-api/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-api/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-api/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-api/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-api/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-api/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-api/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-api/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-api/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-api/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-api/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-api/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-api/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-api/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-api/deployments","created_at":"2015-06-21T19:46:54Z","updated_at":"2016-06-24T16:53:10Z","pushed_at":"2016-06-26T05:19:33Z","git_url":"git://github.com/code-corps/code-corps-api.git","ssh_url":"git@github.com:code-corps/code-corps-api.git","clone_url":"https://github.com/code-corps/code-corps-api.git","svn_url":"https://github.com/code-corps/code-corps-api","homepage":"https://codecorps.org","size":1348,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":36,"forks":14,"open_issues":36,"watchers":15,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/373"},"html":{"href":"https://github.com/code-corps/code-corps-api/pull/373"},"issue":{"href":"https://api.github.com/repos/code-corps/code-corps-api/issues/373"},"comments":{"href":"https://api.github.com/repos/code-corps/code-corps-api/issues/373/comments"},"review_comments":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/373/comments"},"review_comment":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/373/commits"},"statuses":{"href":"https://api.github.com/repos/code-corps/code-corps-api/statuses/d9e2be41a2e1a57364801ce66962363e601b6fbe"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":425,"deletions":421,"changed_files":20}}
{"actor":{"display_login":"christopherstyles"}}