{"action":"created","comment":{"url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/comments/34184675","id":34184675,"diff_hunk":"@@ -0,0 +1,81 @@\n+require 'rails_helper'\n+require 'pry-rails'\n+\n+feature 'vote on a gem review', %{\n+  As a user,\n+  I want to vote on a review\n+  So I can let my voice be heard\n+} do\n+\n+  # Acceptance Criteria\n+  # [ ] I can click the up arrow to add a vote to the count\n+  # [ ] I can click the down arrow to decrease the vote count\n+  # [ ] When I click the same arrow twice, it deletes my vote\n+  # [ ] I can change my vote by changing the button I click on\n+\n+  let(:user) { FactoryGirl.create(:user) }\n+  let(:rubygem) { FactoryGirl.create(:rubygem, user: user) }\n+  let(:review) { FactoryGirl.create(:review, rubygem: rubygem) }\n+  let(:vote) { FactoryGirl.create(:vote, review: review, user: user) }\n+\n+  scenario 'User upvotes a review for a rubygem', js: true do\n+    rubygem\n+    review\n+    vote\n+\n+    visit new_user_session_path\n+    sign_in_as(user)\n+    visit rubygem_path(rubygem)\n+    original_vote_value = rubygem.reviews.first.votes_tally","path":"spec/features/review_votes_spec.rb","position":29,"original_position":29,"commit_id":"ab948b22f8ed25683e0552676bfeaff2044e8611","original_commit_id":"ab948b22f8ed25683e0552676bfeaff2044e8611","user":{"login":"davidrf","id":9678182,"avatar_url":"https://avatars.githubusercontent.com/u/9678182?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrf","html_url":"https://github.com/davidrf","followers_url":"https://api.github.com/users/davidrf/followers","following_url":"https://api.github.com/users/davidrf/following{/other_user}","gists_url":"https://api.github.com/users/davidrf/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrf/subscriptions","organizations_url":"https://api.github.com/users/davidrf/orgs","repos_url":"https://api.github.com/users/davidrf/repos","events_url":"https://api.github.com/users/davidrf/events{/privacy}","received_events_url":"https://api.github.com/users/davidrf/received_events","type":"User","site_admin":false},"body":"Get rid of this","created_at":"2015-07-08T18:53:37Z","updated_at":"2015-07-08T18:53:37Z","html_url":"https://github.com/sammcgrail/gemhunter/pull/31#discussion_r34184675","pull_request_url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/comments/34184675"},"html":{"href":"https://github.com/sammcgrail/gemhunter/pull/31#discussion_r34184675"},"pull_request":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31","id":39398892,"html_url":"https://github.com/sammcgrail/gemhunter/pull/31","diff_url":"https://github.com/sammcgrail/gemhunter/pull/31.diff","patch_url":"https://github.com/sammcgrail/gemhunter/pull/31.patch","issue_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues/31","number":31,"state":"open","locked":false,"title":"RFR - Votes","user":{"login":"dave315","id":8252305,"avatar_url":"https://avatars.githubusercontent.com/u/8252305?v=3","gravatar_id":"","url":"https://api.github.com/users/dave315","html_url":"https://github.com/dave315","followers_url":"https://api.github.com/users/dave315/followers","following_url":"https://api.github.com/users/dave315/following{/other_user}","gists_url":"https://api.github.com/users/dave315/gists{/gist_id}","starred_url":"https://api.github.com/users/dave315/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave315/subscriptions","organizations_url":"https://api.github.com/users/dave315/orgs","repos_url":"https://api.github.com/users/dave315/repos","events_url":"https://api.github.com/users/dave315/events{/privacy}","received_events_url":"https://api.github.com/users/dave315/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T18:03:54Z","updated_at":"2015-07-08T18:53:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2ce829801455c01d5b665d9afc8a488add26079","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31/commits","review_comments_url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31/comments","review_comment_url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues/31/comments","statuses_url":"https://api.github.com/repos/sammcgrail/gemhunter/statuses/ab948b22f8ed25683e0552676bfeaff2044e8611","head":{"label":"sammcgrail:votes","ref":"votes","sha":"ab948b22f8ed25683e0552676bfeaff2044e8611","user":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"repo":{"id":38254016,"name":"gemhunter","full_name":"sammcgrail/gemhunter","owner":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sammcgrail/gemhunter","description":null,"fork":false,"url":"https://api.github.com/repos/sammcgrail/gemhunter","forks_url":"https://api.github.com/repos/sammcgrail/gemhunter/forks","keys_url":"https://api.github.com/repos/sammcgrail/gemhunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sammcgrail/gemhunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sammcgrail/gemhunter/teams","hooks_url":"https://api.github.com/repos/sammcgrail/gemhunter/hooks","issue_events_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues/events{/number}","events_url":"https://api.github.com/repos/sammcgrail/gemhunter/events","assignees_url":"https://api.github.com/repos/sammcgrail/gemhunter/assignees{/user}","branches_url":"https://api.github.com/repos/sammcgrail/gemhunter/branches{/branch}","tags_url":"https://api.github.com/repos/sammcgrail/gemhunter/tags","blobs_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sammcgrail/gemhunter/statuses/{sha}","languages_url":"https://api.github.com/repos/sammcgrail/gemhunter/languages","stargazers_url":"https://api.github.com/repos/sammcgrail/gemhunter/stargazers","contributors_url":"https://api.github.com/repos/sammcgrail/gemhunter/contributors","subscribers_url":"https://api.github.com/repos/sammcgrail/gemhunter/subscribers","subscription_url":"https://api.github.com/repos/sammcgrail/gemhunter/subscription","commits_url":"https://api.github.com/repos/sammcgrail/gemhunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/sammcgrail/gemhunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/sammcgrail/gemhunter/contents/{+path}","compare_url":"https://api.github.com/repos/sammcgrail/gemhunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sammcgrail/gemhunter/merges","archive_url":"https://api.github.com/repos/sammcgrail/gemhunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sammcgrail/gemhunter/downloads","issues_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues{/number}","pulls_url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls{/number}","milestones_url":"https://api.github.com/repos/sammcgrail/gemhunter/milestones{/number}","notifications_url":"https://api.github.com/repos/sammcgrail/gemhunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sammcgrail/gemhunter/labels{/name}","releases_url":"https://api.github.com/repos/sammcgrail/gemhunter/releases{/id}","created_at":"2015-06-29T15:07:49Z","updated_at":"2015-06-30T21:22:51Z","pushed_at":"2015-07-08T18:47:04Z","git_url":"git://github.com/sammcgrail/gemhunter.git","ssh_url":"git@github.com:sammcgrail/gemhunter.git","clone_url":"https://github.com/sammcgrail/gemhunter.git","svn_url":"https://github.com/sammcgrail/gemhunter","homepage":null,"size":1384,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"sammcgrail:master","ref":"master","sha":"e801da465430a33da1f07a99b59a21ed7c2ac345","user":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"repo":{"id":38254016,"name":"gemhunter","full_name":"sammcgrail/gemhunter","owner":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sammcgrail/gemhunter","description":null,"fork":false,"url":"https://api.github.com/repos/sammcgrail/gemhunter","forks_url":"https://api.github.com/repos/sammcgrail/gemhunter/forks","keys_url":"https://api.github.com/repos/sammcgrail/gemhunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sammcgrail/gemhunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sammcgrail/gemhunter/teams","hooks_url":"https://api.github.com/repos/sammcgrail/gemhunter/hooks","issue_events_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues/events{/number}","events_url":"https://api.github.com/repos/sammcgrail/gemhunter/events","assignees_url":"https://api.github.com/repos/sammcgrail/gemhunter/assignees{/user}","branches_url":"https://api.github.com/repos/sammcgrail/gemhunter/branches{/branch}","tags_url":"https://api.github.com/repos/sammcgrail/gemhunter/tags","blobs_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sammcgrail/gemhunter/statuses/{sha}","languages_url":"https://api.github.com/repos/sammcgrail/gemhunter/languages","stargazers_url":"https://api.github.com/repos/sammcgrail/gemhunter/stargazers","contributors_url":"https://api.github.com/repos/sammcgrail/gemhunter/contributors","subscribers_url":"https://api.github.com/repos/sammcgrail/gemhunter/subscribers","subscription_url":"https://api.github.com/repos/sammcgrail/gemhunter/subscription","commits_url":"https://api.github.com/repos/sammcgrail/gemhunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/sammcgrail/gemhunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/sammcgrail/gemhunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/sammcgrail/gemhunter/contents/{+path}","compare_url":"https://api.github.com/repos/sammcgrail/gemhunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sammcgrail/gemhunter/merges","archive_url":"https://api.github.com/repos/sammcgrail/gemhunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sammcgrail/gemhunter/downloads","issues_url":"https://api.github.com/repos/sammcgrail/gemhunter/issues{/number}","pulls_url":"https://api.github.com/repos/sammcgrail/gemhunter/pulls{/number}","milestones_url":"https://api.github.com/repos/sammcgrail/gemhunter/milestones{/number}","notifications_url":"https://api.github.com/repos/sammcgrail/gemhunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sammcgrail/gemhunter/labels{/name}","releases_url":"https://api.github.com/repos/sammcgrail/gemhunter/releases{/id}","created_at":"2015-06-29T15:07:49Z","updated_at":"2015-06-30T21:22:51Z","pushed_at":"2015-07-08T18:47:04Z","git_url":"git://github.com/sammcgrail/gemhunter.git","ssh_url":"git@github.com:sammcgrail/gemhunter.git","clone_url":"https://github.com/sammcgrail/gemhunter.git","svn_url":"https://github.com/sammcgrail/gemhunter","homepage":null,"size":1384,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31"},"html":{"href":"https://github.com/sammcgrail/gemhunter/pull/31"},"issue":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/issues/31"},"comments":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/sammcgrail/gemhunter/statuses/ab948b22f8ed25683e0552676bfeaff2044e8611"}}}}