{"action":"created","comment":{"url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/comments/70460383","id":70460383,"diff_hunk":"@@ -0,0 +1,39 @@\n+require 'rails_helper'\n+\n+describe VotesHelper do\n+  describe '#vote_button_class' do\n+    let(:user) { FactoryGirl.create(:user) }\n+    let(:review) { FactoryGirl.create(:review) }\n+\n+    it \"should return 'upvote-button' for upvote button not yet clicked\" do\n+      actual_class_string = vote_button_class(user, review, 'up')\n+\n+      expect(actual_class_string).to eq('upvote-button')\n+    end\n+\n+    it \"should return 'downvote-button' for downvote button not yet clicked\" do\n+      actual_class_string = vote_button_class(user, review, 'down')\n+\n+      expect(actual_class_string).to eq('downvote-button')\n+    end\n+\n+    it \"should add 'green' to upvote if user upvoted\" do\n+      vote = FactoryGirl.create(:vote, user: user,","path":"spec/helpers/votes_helper_spec.rb","position":21,"original_position":21,"commit_id":"4d9ab4704f04cbc3a4b0fcd3fb58327b78bbe2d1","original_commit_id":"4d9ab4704f04cbc3a4b0fcd3fb58327b78bbe2d1","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":"Useless assignment to variable - `vote`.","created_at":"2016-07-12T15:19:45Z","updated_at":"2016-07-12T15:19:45Z","html_url":"https://github.com/mcon85/doors_at_eight/pull/43#discussion_r70460383","pull_request_url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/comments/70460383"},"html":{"href":"https://github.com/mcon85/doors_at_eight/pull/43#discussion_r70460383"},"pull_request":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/43","id":77139139,"html_url":"https://github.com/mcon85/doors_at_eight/pull/43","diff_url":"https://github.com/mcon85/doors_at_eight/pull/43.diff","patch_url":"https://github.com/mcon85/doors_at_eight/pull/43.patch","issue_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues/43","number":43,"state":"open","locked":false,"title":"Nv at voting on reviews","user":{"login":"nvanselow","id":8259783,"avatar_url":"https://avatars.githubusercontent.com/u/8259783?v=3","gravatar_id":"","url":"https://api.github.com/users/nvanselow","html_url":"https://github.com/nvanselow","followers_url":"https://api.github.com/users/nvanselow/followers","following_url":"https://api.github.com/users/nvanselow/following{/other_user}","gists_url":"https://api.github.com/users/nvanselow/gists{/gist_id}","starred_url":"https://api.github.com/users/nvanselow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvanselow/subscriptions","organizations_url":"https://api.github.com/users/nvanselow/orgs","repos_url":"https://api.github.com/users/nvanselow/repos","events_url":"https://api.github.com/users/nvanselow/events{/privacy}","received_events_url":"https://api.github.com/users/nvanselow/received_events","type":"User","site_admin":false},"body":"This is a big PR, but it  required a lot of helper methods and changes to previous code to get the upvotes/downvotes working.","created_at":"2016-07-12T15:19:40Z","updated_at":"2016-07-12T15:19:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fed01fa920816ed4c98d968131a7dee297d603fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/43/commits","review_comments_url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/43/comments","review_comment_url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues/43/comments","statuses_url":"https://api.github.com/repos/mcon85/doors_at_eight/statuses/4d9ab4704f04cbc3a4b0fcd3fb58327b78bbe2d1","head":{"label":"mcon85:nv-at-voting_on_reviews","ref":"nv-at-voting_on_reviews","sha":"4d9ab4704f04cbc3a4b0fcd3fb58327b78bbe2d1","user":{"login":"mcon85","id":7151152,"avatar_url":"https://avatars.githubusercontent.com/u/7151152?v=3","gravatar_id":"","url":"https://api.github.com/users/mcon85","html_url":"https://github.com/mcon85","followers_url":"https://api.github.com/users/mcon85/followers","following_url":"https://api.github.com/users/mcon85/following{/other_user}","gists_url":"https://api.github.com/users/mcon85/gists{/gist_id}","starred_url":"https://api.github.com/users/mcon85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcon85/subscriptions","organizations_url":"https://api.github.com/users/mcon85/orgs","repos_url":"https://api.github.com/users/mcon85/repos","events_url":"https://api.github.com/users/mcon85/events{/privacy}","received_events_url":"https://api.github.com/users/mcon85/received_events","type":"User","site_admin":false},"repo":{"id":62649932,"name":"doors_at_eight","full_name":"mcon85/doors_at_eight","owner":{"login":"mcon85","id":7151152,"avatar_url":"https://avatars.githubusercontent.com/u/7151152?v=3","gravatar_id":"","url":"https://api.github.com/users/mcon85","html_url":"https://github.com/mcon85","followers_url":"https://api.github.com/users/mcon85/followers","following_url":"https://api.github.com/users/mcon85/following{/other_user}","gists_url":"https://api.github.com/users/mcon85/gists{/gist_id}","starred_url":"https://api.github.com/users/mcon85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcon85/subscriptions","organizations_url":"https://api.github.com/users/mcon85/orgs","repos_url":"https://api.github.com/users/mcon85/repos","events_url":"https://api.github.com/users/mcon85/events{/privacy}","received_events_url":"https://api.github.com/users/mcon85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcon85/doors_at_eight","description":null,"fork":false,"url":"https://api.github.com/repos/mcon85/doors_at_eight","forks_url":"https://api.github.com/repos/mcon85/doors_at_eight/forks","keys_url":"https://api.github.com/repos/mcon85/doors_at_eight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcon85/doors_at_eight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcon85/doors_at_eight/teams","hooks_url":"https://api.github.com/repos/mcon85/doors_at_eight/hooks","issue_events_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues/events{/number}","events_url":"https://api.github.com/repos/mcon85/doors_at_eight/events","assignees_url":"https://api.github.com/repos/mcon85/doors_at_eight/assignees{/user}","branches_url":"https://api.github.com/repos/mcon85/doors_at_eight/branches{/branch}","tags_url":"https://api.github.com/repos/mcon85/doors_at_eight/tags","blobs_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcon85/doors_at_eight/statuses/{sha}","languages_url":"https://api.github.com/repos/mcon85/doors_at_eight/languages","stargazers_url":"https://api.github.com/repos/mcon85/doors_at_eight/stargazers","contributors_url":"https://api.github.com/repos/mcon85/doors_at_eight/contributors","subscribers_url":"https://api.github.com/repos/mcon85/doors_at_eight/subscribers","subscription_url":"https://api.github.com/repos/mcon85/doors_at_eight/subscription","commits_url":"https://api.github.com/repos/mcon85/doors_at_eight/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcon85/doors_at_eight/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcon85/doors_at_eight/contents/{+path}","compare_url":"https://api.github.com/repos/mcon85/doors_at_eight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcon85/doors_at_eight/merges","archive_url":"https://api.github.com/repos/mcon85/doors_at_eight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcon85/doors_at_eight/downloads","issues_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues{/number}","pulls_url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls{/number}","milestones_url":"https://api.github.com/repos/mcon85/doors_at_eight/milestones{/number}","notifications_url":"https://api.github.com/repos/mcon85/doors_at_eight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcon85/doors_at_eight/labels{/name}","releases_url":"https://api.github.com/repos/mcon85/doors_at_eight/releases{/id}","deployments_url":"https://api.github.com/repos/mcon85/doors_at_eight/deployments","created_at":"2016-07-05T15:53:20Z","updated_at":"2016-07-05T15:54:21Z","pushed_at":"2016-07-12T15:19:40Z","git_url":"git://github.com/mcon85/doors_at_eight.git","ssh_url":"git@github.com:mcon85/doors_at_eight.git","clone_url":"https://github.com/mcon85/doors_at_eight.git","svn_url":"https://github.com/mcon85/doors_at_eight","homepage":null,"size":2108,"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":"mcon85:master","ref":"master","sha":"411d9832e6e721282d4534a22490e4c3be4b22bc","user":{"login":"mcon85","id":7151152,"avatar_url":"https://avatars.githubusercontent.com/u/7151152?v=3","gravatar_id":"","url":"https://api.github.com/users/mcon85","html_url":"https://github.com/mcon85","followers_url":"https://api.github.com/users/mcon85/followers","following_url":"https://api.github.com/users/mcon85/following{/other_user}","gists_url":"https://api.github.com/users/mcon85/gists{/gist_id}","starred_url":"https://api.github.com/users/mcon85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcon85/subscriptions","organizations_url":"https://api.github.com/users/mcon85/orgs","repos_url":"https://api.github.com/users/mcon85/repos","events_url":"https://api.github.com/users/mcon85/events{/privacy}","received_events_url":"https://api.github.com/users/mcon85/received_events","type":"User","site_admin":false},"repo":{"id":62649932,"name":"doors_at_eight","full_name":"mcon85/doors_at_eight","owner":{"login":"mcon85","id":7151152,"avatar_url":"https://avatars.githubusercontent.com/u/7151152?v=3","gravatar_id":"","url":"https://api.github.com/users/mcon85","html_url":"https://github.com/mcon85","followers_url":"https://api.github.com/users/mcon85/followers","following_url":"https://api.github.com/users/mcon85/following{/other_user}","gists_url":"https://api.github.com/users/mcon85/gists{/gist_id}","starred_url":"https://api.github.com/users/mcon85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcon85/subscriptions","organizations_url":"https://api.github.com/users/mcon85/orgs","repos_url":"https://api.github.com/users/mcon85/repos","events_url":"https://api.github.com/users/mcon85/events{/privacy}","received_events_url":"https://api.github.com/users/mcon85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcon85/doors_at_eight","description":null,"fork":false,"url":"https://api.github.com/repos/mcon85/doors_at_eight","forks_url":"https://api.github.com/repos/mcon85/doors_at_eight/forks","keys_url":"https://api.github.com/repos/mcon85/doors_at_eight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcon85/doors_at_eight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcon85/doors_at_eight/teams","hooks_url":"https://api.github.com/repos/mcon85/doors_at_eight/hooks","issue_events_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues/events{/number}","events_url":"https://api.github.com/repos/mcon85/doors_at_eight/events","assignees_url":"https://api.github.com/repos/mcon85/doors_at_eight/assignees{/user}","branches_url":"https://api.github.com/repos/mcon85/doors_at_eight/branches{/branch}","tags_url":"https://api.github.com/repos/mcon85/doors_at_eight/tags","blobs_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcon85/doors_at_eight/statuses/{sha}","languages_url":"https://api.github.com/repos/mcon85/doors_at_eight/languages","stargazers_url":"https://api.github.com/repos/mcon85/doors_at_eight/stargazers","contributors_url":"https://api.github.com/repos/mcon85/doors_at_eight/contributors","subscribers_url":"https://api.github.com/repos/mcon85/doors_at_eight/subscribers","subscription_url":"https://api.github.com/repos/mcon85/doors_at_eight/subscription","commits_url":"https://api.github.com/repos/mcon85/doors_at_eight/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcon85/doors_at_eight/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcon85/doors_at_eight/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcon85/doors_at_eight/contents/{+path}","compare_url":"https://api.github.com/repos/mcon85/doors_at_eight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcon85/doors_at_eight/merges","archive_url":"https://api.github.com/repos/mcon85/doors_at_eight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcon85/doors_at_eight/downloads","issues_url":"https://api.github.com/repos/mcon85/doors_at_eight/issues{/number}","pulls_url":"https://api.github.com/repos/mcon85/doors_at_eight/pulls{/number}","milestones_url":"https://api.github.com/repos/mcon85/doors_at_eight/milestones{/number}","notifications_url":"https://api.github.com/repos/mcon85/doors_at_eight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcon85/doors_at_eight/labels{/name}","releases_url":"https://api.github.com/repos/mcon85/doors_at_eight/releases{/id}","deployments_url":"https://api.github.com/repos/mcon85/doors_at_eight/deployments","created_at":"2016-07-05T15:53:20Z","updated_at":"2016-07-05T15:54:21Z","pushed_at":"2016-07-12T15:19:40Z","git_url":"git://github.com/mcon85/doors_at_eight.git","ssh_url":"git@github.com:mcon85/doors_at_eight.git","clone_url":"https://github.com/mcon85/doors_at_eight.git","svn_url":"https://github.com/mcon85/doors_at_eight","homepage":null,"size":2108,"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/mcon85/doors_at_eight/pulls/43"},"html":{"href":"https://github.com/mcon85/doors_at_eight/pull/43"},"issue":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/issues/43"},"comments":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/mcon85/doors_at_eight/statuses/4d9ab4704f04cbc3a4b0fcd3fb58327b78bbe2d1"}}}}
{"actor":{"display_login":"houndci-bot"}}