{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/npauzenga/Bloccit/pulls/20","id":47609445,"html_url":"https://github.com/npauzenga/Bloccit/pull/20","diff_url":"https://github.com/npauzenga/Bloccit/pull/20.diff","patch_url":"https://github.com/npauzenga/Bloccit/pull/20.patch","issue_url":"https://api.github.com/repos/npauzenga/Bloccit/issues/20","number":20,"state":"closed","locked":false,"title":"Checkpoint 53 voting","user":{"login":"npauzenga","id":5838826,"avatar_url":"https://avatars.githubusercontent.com/u/5838826?v=3","gravatar_id":"","url":"https://api.github.com/users/npauzenga","html_url":"https://github.com/npauzenga","followers_url":"https://api.github.com/users/npauzenga/followers","following_url":"https://api.github.com/users/npauzenga/following{/other_user}","gists_url":"https://api.github.com/users/npauzenga/gists{/gist_id}","starred_url":"https://api.github.com/users/npauzenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npauzenga/subscriptions","organizations_url":"https://api.github.com/users/npauzenga/orgs","repos_url":"https://api.github.com/users/npauzenga/repos","events_url":"https://api.github.com/users/npauzenga/events{/privacy}","received_events_url":"https://api.github.com/users/npauzenga/received_events","type":"User","site_admin":false},"body":"@Enriikke have a look! I refactored our `Vote` test yet again :grin:\r\n\r\nNow that we've added the `update_post` method that's called every time a vote is saved, we need to have our test reference an instance of a post. I opted to lose the `let` approach and use a `before` block. I'm not sure this is totally optimal but it seems to me that, although we could use two `let` methods (one for the `@post`, one for the `@vote`), this would be a little clunky. It would require a call in the `it` block to to `@post` and that seems like it obscures things a little.  Or perhaps put the `@post` in a `before` block and the `@vote` in a `let`?","created_at":"2015-10-14T01:41:05Z","updated_at":"2015-10-14T02:08:20Z","closed_at":"2015-10-14T02:08:20Z","merged_at":"2015-10-14T02:08:20Z","merge_commit_sha":"d64c622eb90c740cf536d725f6a050073e6c60cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/npauzenga/Bloccit/pulls/20/commits","review_comments_url":"https://api.github.com/repos/npauzenga/Bloccit/pulls/20/comments","review_comment_url":"https://api.github.com/repos/npauzenga/Bloccit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npauzenga/Bloccit/issues/20/comments","statuses_url":"https://api.github.com/repos/npauzenga/Bloccit/statuses/6d3f2e2e616fb769ba320c33eb7485d9ab4b7961","head":{"label":"npauzenga:checkpoint-53-voting","ref":"checkpoint-53-voting","sha":"6d3f2e2e616fb769ba320c33eb7485d9ab4b7961","user":{"login":"npauzenga","id":5838826,"avatar_url":"https://avatars.githubusercontent.com/u/5838826?v=3","gravatar_id":"","url":"https://api.github.com/users/npauzenga","html_url":"https://github.com/npauzenga","followers_url":"https://api.github.com/users/npauzenga/followers","following_url":"https://api.github.com/users/npauzenga/following{/other_user}","gists_url":"https://api.github.com/users/npauzenga/gists{/gist_id}","starred_url":"https://api.github.com/users/npauzenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npauzenga/subscriptions","organizations_url":"https://api.github.com/users/npauzenga/orgs","repos_url":"https://api.github.com/users/npauzenga/repos","events_url":"https://api.github.com/users/npauzenga/events{/privacy}","received_events_url":"https://api.github.com/users/npauzenga/received_events","type":"User","site_admin":false},"repo":{"id":43097275,"name":"Bloccit","full_name":"npauzenga/Bloccit","owner":{"login":"npauzenga","id":5838826,"avatar_url":"https://avatars.githubusercontent.com/u/5838826?v=3","gravatar_id":"","url":"https://api.github.com/users/npauzenga","html_url":"https://github.com/npauzenga","followers_url":"https://api.github.com/users/npauzenga/followers","following_url":"https://api.github.com/users/npauzenga/following{/other_user}","gists_url":"https://api.github.com/users/npauzenga/gists{/gist_id}","starred_url":"https://api.github.com/users/npauzenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npauzenga/subscriptions","organizations_url":"https://api.github.com/users/npauzenga/orgs","repos_url":"https://api.github.com/users/npauzenga/repos","events_url":"https://api.github.com/users/npauzenga/events{/privacy}","received_events_url":"https://api.github.com/users/npauzenga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/npauzenga/Bloccit","description":"A Reddit replica for educational purposes","fork":false,"url":"https://api.github.com/repos/npauzenga/Bloccit","forks_url":"https://api.github.com/repos/npauzenga/Bloccit/forks","keys_url":"https://api.github.com/repos/npauzenga/Bloccit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npauzenga/Bloccit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npauzenga/Bloccit/teams","hooks_url":"https://api.github.com/repos/npauzenga/Bloccit/hooks","issue_events_url":"https://api.github.com/repos/npauzenga/Bloccit/issues/events{/number}","events_url":"https://api.github.com/repos/npauzenga/Bloccit/events","assignees_url":"https://api.github.com/repos/npauzenga/Bloccit/assignees{/user}","branches_url":"https://api.github.com/repos/npauzenga/Bloccit/branches{/branch}","tags_url":"https://api.github.com/repos/npauzenga/Bloccit/tags","blobs_url":"https://api.github.com/repos/npauzenga/Bloccit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npauzenga/Bloccit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npauzenga/Bloccit/git/refs{/sha}","trees_url":"https://api.github.com/repos/npauzenga/Bloccit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npauzenga/Bloccit/statuses/{sha}","languages_url":"https://api.github.com/repos/npauzenga/Bloccit/languages","stargazers_url":"https://api.github.com/repos/npauzenga/Bloccit/stargazers","contributors_url":"https://api.github.com/repos/npauzenga/Bloccit/contributors","subscribers_url":"https://api.github.com/repos/npauzenga/Bloccit/subscribers","subscription_url":"https://api.github.com/repos/npauzenga/Bloccit/subscription","commits_url":"https://api.github.com/repos/npauzenga/Bloccit/commits{/sha}","git_commits_url":"https://api.github.com/repos/npauzenga/Bloccit/git/commits{/sha}","comments_url":"https://api.github.com/repos/npauzenga/Bloccit/comments{/number}","issue_comment_url":"https://api.github.com/repos/npauzenga/Bloccit/issues/comments{/number}","contents_url":"https://api.github.com/repos/npauzenga/Bloccit/contents/{+path}","compare_url":"https://api.github.com/repos/npauzenga/Bloccit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npauzenga/Bloccit/merges","archive_url":"https://api.github.com/repos/npauzenga/Bloccit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npauzenga/Bloccit/downloads","issues_url":"https://api.github.com/repos/npauzenga/Bloccit/issues{/number}","pulls_url":"https://api.github.com/repos/npauzenga/Bloccit/pulls{/number}","milestones_url":"https://api.github.com/repos/npauzenga/Bloccit/milestones{/number}","notifications_url":"https://api.github.com/repos/npauzenga/Bloccit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npauzenga/Bloccit/labels{/name}","releases_url":"https://api.github.com/repos/npauzenga/Bloccit/releases{/id}","created_at":"2015-09-24T22:52:13Z","updated_at":"2015-09-24T22:53:39Z","pushed_at":"2015-10-14T02:08:20Z","git_url":"git://github.com/npauzenga/Bloccit.git","ssh_url":"git@github.com:npauzenga/Bloccit.git","clone_url":"https://github.com/npauzenga/Bloccit.git","svn_url":"https://github.com/npauzenga/Bloccit","homepage":null,"size":572,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"npauzenga:master","ref":"master","sha":"f3fd81dfe3798ff0d4a7ee133abe709f56d5b027","user":{"login":"npauzenga","id":5838826,"avatar_url":"https://avatars.githubusercontent.com/u/5838826?v=3","gravatar_id":"","url":"https://api.github.com/users/npauzenga","html_url":"https://github.com/npauzenga","followers_url":"https://api.github.com/users/npauzenga/followers","following_url":"https://api.github.com/users/npauzenga/following{/other_user}","gists_url":"https://api.github.com/users/npauzenga/gists{/gist_id}","starred_url":"https://api.github.com/users/npauzenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npauzenga/subscriptions","organizations_url":"https://api.github.com/users/npauzenga/orgs","repos_url":"https://api.github.com/users/npauzenga/repos","events_url":"https://api.github.com/users/npauzenga/events{/privacy}","received_events_url":"https://api.github.com/users/npauzenga/received_events","type":"User","site_admin":false},"repo":{"id":43097275,"name":"Bloccit","full_name":"npauzenga/Bloccit","owner":{"login":"npauzenga","id":5838826,"avatar_url":"https://avatars.githubusercontent.com/u/5838826?v=3","gravatar_id":"","url":"https://api.github.com/users/npauzenga","html_url":"https://github.com/npauzenga","followers_url":"https://api.github.com/users/npauzenga/followers","following_url":"https://api.github.com/users/npauzenga/following{/other_user}","gists_url":"https://api.github.com/users/npauzenga/gists{/gist_id}","starred_url":"https://api.github.com/users/npauzenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npauzenga/subscriptions","organizations_url":"https://api.github.com/users/npauzenga/orgs","repos_url":"https://api.github.com/users/npauzenga/repos","events_url":"https://api.github.com/users/npauzenga/events{/privacy}","received_events_url":"https://api.github.com/users/npauzenga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/npauzenga/Bloccit","description":"A Reddit replica for educational purposes","fork":false,"url":"https://api.github.com/repos/npauzenga/Bloccit","forks_url":"https://api.github.com/repos/npauzenga/Bloccit/forks","keys_url":"https://api.github.com/repos/npauzenga/Bloccit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npauzenga/Bloccit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npauzenga/Bloccit/teams","hooks_url":"https://api.github.com/repos/npauzenga/Bloccit/hooks","issue_events_url":"https://api.github.com/repos/npauzenga/Bloccit/issues/events{/number}","events_url":"https://api.github.com/repos/npauzenga/Bloccit/events","assignees_url":"https://api.github.com/repos/npauzenga/Bloccit/assignees{/user}","branches_url":"https://api.github.com/repos/npauzenga/Bloccit/branches{/branch}","tags_url":"https://api.github.com/repos/npauzenga/Bloccit/tags","blobs_url":"https://api.github.com/repos/npauzenga/Bloccit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npauzenga/Bloccit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npauzenga/Bloccit/git/refs{/sha}","trees_url":"https://api.github.com/repos/npauzenga/Bloccit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npauzenga/Bloccit/statuses/{sha}","languages_url":"https://api.github.com/repos/npauzenga/Bloccit/languages","stargazers_url":"https://api.github.com/repos/npauzenga/Bloccit/stargazers","contributors_url":"https://api.github.com/repos/npauzenga/Bloccit/contributors","subscribers_url":"https://api.github.com/repos/npauzenga/Bloccit/subscribers","subscription_url":"https://api.github.com/repos/npauzenga/Bloccit/subscription","commits_url":"https://api.github.com/repos/npauzenga/Bloccit/commits{/sha}","git_commits_url":"https://api.github.com/repos/npauzenga/Bloccit/git/commits{/sha}","comments_url":"https://api.github.com/repos/npauzenga/Bloccit/comments{/number}","issue_comment_url":"https://api.github.com/repos/npauzenga/Bloccit/issues/comments{/number}","contents_url":"https://api.github.com/repos/npauzenga/Bloccit/contents/{+path}","compare_url":"https://api.github.com/repos/npauzenga/Bloccit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npauzenga/Bloccit/merges","archive_url":"https://api.github.com/repos/npauzenga/Bloccit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npauzenga/Bloccit/downloads","issues_url":"https://api.github.com/repos/npauzenga/Bloccit/issues{/number}","pulls_url":"https://api.github.com/repos/npauzenga/Bloccit/pulls{/number}","milestones_url":"https://api.github.com/repos/npauzenga/Bloccit/milestones{/number}","notifications_url":"https://api.github.com/repos/npauzenga/Bloccit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npauzenga/Bloccit/labels{/name}","releases_url":"https://api.github.com/repos/npauzenga/Bloccit/releases{/id}","created_at":"2015-09-24T22:52:13Z","updated_at":"2015-09-24T22:53:39Z","pushed_at":"2015-10-14T02:08:20Z","git_url":"git://github.com/npauzenga/Bloccit.git","ssh_url":"git@github.com:npauzenga/Bloccit.git","clone_url":"https://github.com/npauzenga/Bloccit.git","svn_url":"https://github.com/npauzenga/Bloccit","homepage":null,"size":572,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npauzenga/Bloccit/pulls/20"},"html":{"href":"https://github.com/npauzenga/Bloccit/pull/20"},"issue":{"href":"https://api.github.com/repos/npauzenga/Bloccit/issues/20"},"comments":{"href":"https://api.github.com/repos/npauzenga/Bloccit/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/npauzenga/Bloccit/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/npauzenga/Bloccit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npauzenga/Bloccit/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/npauzenga/Bloccit/statuses/6d3f2e2e616fb769ba320c33eb7485d9ab4b7961"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"npauzenga","id":5838826,"avatar_url":"https://avatars.githubusercontent.com/u/5838826?v=3","gravatar_id":"","url":"https://api.github.com/users/npauzenga","html_url":"https://github.com/npauzenga","followers_url":"https://api.github.com/users/npauzenga/followers","following_url":"https://api.github.com/users/npauzenga/following{/other_user}","gists_url":"https://api.github.com/users/npauzenga/gists{/gist_id}","starred_url":"https://api.github.com/users/npauzenga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npauzenga/subscriptions","organizations_url":"https://api.github.com/users/npauzenga/orgs","repos_url":"https://api.github.com/users/npauzenga/repos","events_url":"https://api.github.com/users/npauzenga/events{/privacy}","received_events_url":"https://api.github.com/users/npauzenga/received_events","type":"User","site_admin":false},"comments":0,"review_comments":9,"commits":4,"additions":209,"deletions":73,"changed_files":21}}