{"action":"created","comment":{"url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments/27906732","id":27906732,"diff_hunk":"@@ -0,0 +1,50 @@\n+require 'rails_helper'\n+\n+feature 'user votes on a review', %{\n+  As a authenticated user\n+  I want to vote a review\n+  So I can help others\n+} do\n+  let(:user) { FactoryGirl.create(:user) }\n+\n+  before :each do\n+    sign_in_as user\n+  end\n+\n+  scenario 'upvote', js: true do\n+    movie = FactoryGirl.create(:movie)\n+    FactoryGirl.create(:review, movie: movie, user: user)","path":"spec/features/votes/user_votes_spec.rb","position":16,"original_position":16,"commit_id":"2fd70c1f7a5f2e9069fadf8d6bc3777f914aef5b","original_commit_id":"2fd70c1f7a5f2e9069fadf8d6bc3777f914aef5b","user":{"login":"radavis","id":1299034,"avatar_url":"https://avatars.githubusercontent.com/u/1299034?v=3","gravatar_id":"","url":"https://api.github.com/users/radavis","html_url":"https://github.com/radavis","followers_url":"https://api.github.com/users/radavis/followers","following_url":"https://api.github.com/users/radavis/following{/other_user}","gists_url":"https://api.github.com/users/radavis/gists{/gist_id}","starred_url":"https://api.github.com/users/radavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radavis/subscriptions","organizations_url":"https://api.github.com/users/radavis/orgs","repos_url":"https://api.github.com/users/radavis/repos","events_url":"https://api.github.com/users/radavis/events{/privacy}","received_events_url":"https://api.github.com/users/radavis/received_events","type":"User","site_admin":false},"body":"Instead of creating a movie, and then a review, you can do this:\r\n\r\n```\r\nreview = FactoryGirl.create(:review, user: user)\r\nmovie = review.movie\r\n```","created_at":"2015-04-07T18:33:56Z","updated_at":"2015-04-07T18:33:56Z","html_url":"https://github.com/DuncanRose/MovieHub/pull/11#discussion_r27906732","pull_request_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments/27906732"},"html":{"href":"https://github.com/DuncanRose/MovieHub/pull/11#discussion_r27906732"},"pull_request":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11","id":32785388,"html_url":"https://github.com/DuncanRose/MovieHub/pull/11","diff_url":"https://github.com/DuncanRose/MovieHub/pull/11.diff","patch_url":"https://github.com/DuncanRose/MovieHub/pull/11.patch","issue_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/11","number":11,"state":"open","locked":false,"title":"[RFR] cleaned up hound errors for final vote feature test","user":{"login":"jacksy40","id":9853227,"avatar_url":"https://avatars.githubusercontent.com/u/9853227?v=3","gravatar_id":"","url":"https://api.github.com/users/jacksy40","html_url":"https://github.com/jacksy40","followers_url":"https://api.github.com/users/jacksy40/followers","following_url":"https://api.github.com/users/jacksy40/following{/other_user}","gists_url":"https://api.github.com/users/jacksy40/gists{/gist_id}","starred_url":"https://api.github.com/users/jacksy40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacksy40/subscriptions","organizations_url":"https://api.github.com/users/jacksy40/orgs","repos_url":"https://api.github.com/users/jacksy40/repos","events_url":"https://api.github.com/users/jacksy40/events{/privacy}","received_events_url":"https://api.github.com/users/jacksy40/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T17:17:15Z","updated_at":"2015-04-07T18:33:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d3afb9e9459ece267e3cb81e5735f8d9d83bac1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11/commits","review_comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11/comments","review_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/11/comments","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/2fd70c1f7a5f2e9069fadf8d6bc3777f914aef5b","head":{"label":"DuncanRose:JE-vote","ref":"JE-vote","sha":"2fd70c1f7a5f2e9069fadf8d6bc3777f914aef5b","user":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"repo":{"id":33132921,"name":"MovieHub","full_name":"DuncanRose/MovieHub","owner":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DuncanRose/MovieHub","description":"Group Project at Launch Academy","fork":false,"url":"https://api.github.com/repos/DuncanRose/MovieHub","forks_url":"https://api.github.com/repos/DuncanRose/MovieHub/forks","keys_url":"https://api.github.com/repos/DuncanRose/MovieHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DuncanRose/MovieHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DuncanRose/MovieHub/teams","hooks_url":"https://api.github.com/repos/DuncanRose/MovieHub/hooks","issue_events_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/events{/number}","events_url":"https://api.github.com/repos/DuncanRose/MovieHub/events","assignees_url":"https://api.github.com/repos/DuncanRose/MovieHub/assignees{/user}","branches_url":"https://api.github.com/repos/DuncanRose/MovieHub/branches{/branch}","tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/tags","blobs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/{sha}","languages_url":"https://api.github.com/repos/DuncanRose/MovieHub/languages","stargazers_url":"https://api.github.com/repos/DuncanRose/MovieHub/stargazers","contributors_url":"https://api.github.com/repos/DuncanRose/MovieHub/contributors","subscribers_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscribers","subscription_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscription","commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/DuncanRose/MovieHub/contents/{+path}","compare_url":"https://api.github.com/repos/DuncanRose/MovieHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DuncanRose/MovieHub/merges","archive_url":"https://api.github.com/repos/DuncanRose/MovieHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DuncanRose/MovieHub/downloads","issues_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues{/number}","pulls_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls{/number}","milestones_url":"https://api.github.com/repos/DuncanRose/MovieHub/milestones{/number}","notifications_url":"https://api.github.com/repos/DuncanRose/MovieHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DuncanRose/MovieHub/labels{/name}","releases_url":"https://api.github.com/repos/DuncanRose/MovieHub/releases{/id}","created_at":"2015-03-30T15:56:33Z","updated_at":"2015-04-02T15:46:09Z","pushed_at":"2015-04-07T17:17:16Z","git_url":"git://github.com/DuncanRose/MovieHub.git","ssh_url":"git@github.com:DuncanRose/MovieHub.git","clone_url":"https://github.com/DuncanRose/MovieHub.git","svn_url":"https://github.com/DuncanRose/MovieHub","homepage":"","size":1403,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"DuncanRose:master","ref":"master","sha":"d93e5953b5e78608ce14da72c8db686f8e4b4e4a","user":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"repo":{"id":33132921,"name":"MovieHub","full_name":"DuncanRose/MovieHub","owner":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DuncanRose/MovieHub","description":"Group Project at Launch Academy","fork":false,"url":"https://api.github.com/repos/DuncanRose/MovieHub","forks_url":"https://api.github.com/repos/DuncanRose/MovieHub/forks","keys_url":"https://api.github.com/repos/DuncanRose/MovieHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DuncanRose/MovieHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DuncanRose/MovieHub/teams","hooks_url":"https://api.github.com/repos/DuncanRose/MovieHub/hooks","issue_events_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/events{/number}","events_url":"https://api.github.com/repos/DuncanRose/MovieHub/events","assignees_url":"https://api.github.com/repos/DuncanRose/MovieHub/assignees{/user}","branches_url":"https://api.github.com/repos/DuncanRose/MovieHub/branches{/branch}","tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/tags","blobs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/{sha}","languages_url":"https://api.github.com/repos/DuncanRose/MovieHub/languages","stargazers_url":"https://api.github.com/repos/DuncanRose/MovieHub/stargazers","contributors_url":"https://api.github.com/repos/DuncanRose/MovieHub/contributors","subscribers_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscribers","subscription_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscription","commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/DuncanRose/MovieHub/contents/{+path}","compare_url":"https://api.github.com/repos/DuncanRose/MovieHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DuncanRose/MovieHub/merges","archive_url":"https://api.github.com/repos/DuncanRose/MovieHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DuncanRose/MovieHub/downloads","issues_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues{/number}","pulls_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls{/number}","milestones_url":"https://api.github.com/repos/DuncanRose/MovieHub/milestones{/number}","notifications_url":"https://api.github.com/repos/DuncanRose/MovieHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DuncanRose/MovieHub/labels{/name}","releases_url":"https://api.github.com/repos/DuncanRose/MovieHub/releases{/id}","created_at":"2015-03-30T15:56:33Z","updated_at":"2015-04-02T15:46:09Z","pushed_at":"2015-04-07T17:17:16Z","git_url":"git://github.com/DuncanRose/MovieHub.git","ssh_url":"git@github.com:DuncanRose/MovieHub.git","clone_url":"https://github.com/DuncanRose/MovieHub.git","svn_url":"https://github.com/DuncanRose/MovieHub","homepage":"","size":1403,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11"},"html":{"href":"https://github.com/DuncanRose/MovieHub/pull/11"},"issue":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/issues/11"},"comments":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/2fd70c1f7a5f2e9069fadf8d6bc3777f914aef5b"}}}}