{"action":"created","comment":{"url":"https://api.github.com/repos/KelseyHale/appsassin/pulls/comments/34836026","id":34836026,"diff_hunk":"@@ -0,0 +1,34 @@\n+require 'rails_helper'\n+\n+# Acceptance criteria\n+#\n+# [] User must be logged in\n+# [] User only sees the target assigned to them for that round\n+# [] Targets are only assigned to one user at a time\n+\n+feature \"As a user\n+I want to view my target\n+So I know who to eliminate\" do\n+  scenario \"user visits game details page and sees their assigned target\" do\n+    user = FactoryGirl.create(:user)\n+    user2 = FactoryGirl.create(:user)\n+    user3 = FactoryGirl.create(:user)\n+    user4 = FactoryGirl.create(:user)\n+    user5 = FactoryGirl.create(:user)\n+    game = FactoryGirl.create(:game)\n+    game2 = FactoryGirl.create(:game)\n+    player = Player.create(user: user, game: game)\n+    player2 = Player.create(user: user2, game: game)\n+    player3 = Player.create(user: user3, game: game)\n+    player4 = Player.create(user: user4, game: game, active: false)\n+    player5 = Player.create(user: user3, game: game2)\n+    target = Target.create(user: user, game: game)\n+    target2 = Target.create(user: user2, game: game)\n+    target3 = Target.create(user: user3, game: game)","path":"spec/features/user_views_assigned_target_spec.rb","position":27,"original_position":27,"commit_id":"9f36b9cfed78a62c6ef4e8fd2246fccfa2564137","original_commit_id":"9f36b9cfed78a62c6ef4e8fd2246fccfa2564137","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Useless assignment to variable - `target3`. Did you mean `target`?","created_at":"2015-07-16T20:48:19Z","updated_at":"2015-07-16T20:48:19Z","html_url":"https://github.com/KelseyHale/appsassin/pull/6#discussion_r34836026","pull_request_url":"https://api.github.com/repos/KelseyHale/appsassin/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/KelseyHale/appsassin/pulls/comments/34836026"},"html":{"href":"https://github.com/KelseyHale/appsassin/pull/6#discussion_r34836026"},"pull_request":{"href":"https://api.github.com/repos/KelseyHale/appsassin/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/KelseyHale/appsassin/pulls/6","id":40174133,"html_url":"https://github.com/KelseyHale/appsassin/pull/6","diff_url":"https://github.com/KelseyHale/appsassin/pull/6.diff","patch_url":"https://github.com/KelseyHale/appsassin/pull/6.patch","issue_url":"https://api.github.com/repos/KelseyHale/appsassin/issues/6","number":6,"state":"open","locked":false,"title":"Assign target","user":{"login":"KelseyHale","id":11223143,"avatar_url":"https://avatars.githubusercontent.com/u/11223143?v=3","gravatar_id":"","url":"https://api.github.com/users/KelseyHale","html_url":"https://github.com/KelseyHale","followers_url":"https://api.github.com/users/KelseyHale/followers","following_url":"https://api.github.com/users/KelseyHale/following{/other_user}","gists_url":"https://api.github.com/users/KelseyHale/gists{/gist_id}","starred_url":"https://api.github.com/users/KelseyHale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KelseyHale/subscriptions","organizations_url":"https://api.github.com/users/KelseyHale/orgs","repos_url":"https://api.github.com/users/KelseyHale/repos","events_url":"https://api.github.com/users/KelseyHale/events{/privacy}","received_events_url":"https://api.github.com/users/KelseyHale/received_events","type":"User","site_admin":false},"body":"create round, assign targets to players for each round\r\n","created_at":"2015-07-16T20:48:12Z","updated_at":"2015-07-16T20:48:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec6e934e6cab9541a5626a939f7e4e0869a0f20c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KelseyHale/appsassin/pulls/6/commits","review_comments_url":"https://api.github.com/repos/KelseyHale/appsassin/pulls/6/comments","review_comment_url":"https://api.github.com/repos/KelseyHale/appsassin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KelseyHale/appsassin/issues/6/comments","statuses_url":"https://api.github.com/repos/KelseyHale/appsassin/statuses/9f36b9cfed78a62c6ef4e8fd2246fccfa2564137","head":{"label":"KelseyHale:assign-target","ref":"assign-target","sha":"9f36b9cfed78a62c6ef4e8fd2246fccfa2564137","user":{"login":"KelseyHale","id":11223143,"avatar_url":"https://avatars.githubusercontent.com/u/11223143?v=3","gravatar_id":"","url":"https://api.github.com/users/KelseyHale","html_url":"https://github.com/KelseyHale","followers_url":"https://api.github.com/users/KelseyHale/followers","following_url":"https://api.github.com/users/KelseyHale/following{/other_user}","gists_url":"https://api.github.com/users/KelseyHale/gists{/gist_id}","starred_url":"https://api.github.com/users/KelseyHale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KelseyHale/subscriptions","organizations_url":"https://api.github.com/users/KelseyHale/orgs","repos_url":"https://api.github.com/users/KelseyHale/repos","events_url":"https://api.github.com/users/KelseyHale/events{/privacy}","received_events_url":"https://api.github.com/users/KelseyHale/received_events","type":"User","site_admin":false},"repo":{"id":38970980,"name":"appsassin","full_name":"KelseyHale/appsassin","owner":{"login":"KelseyHale","id":11223143,"avatar_url":"https://avatars.githubusercontent.com/u/11223143?v=3","gravatar_id":"","url":"https://api.github.com/users/KelseyHale","html_url":"https://github.com/KelseyHale","followers_url":"https://api.github.com/users/KelseyHale/followers","following_url":"https://api.github.com/users/KelseyHale/following{/other_user}","gists_url":"https://api.github.com/users/KelseyHale/gists{/gist_id}","starred_url":"https://api.github.com/users/KelseyHale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KelseyHale/subscriptions","organizations_url":"https://api.github.com/users/KelseyHale/orgs","repos_url":"https://api.github.com/users/KelseyHale/repos","events_url":"https://api.github.com/users/KelseyHale/events{/privacy}","received_events_url":"https://api.github.com/users/KelseyHale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KelseyHale/appsassin","description":"","fork":false,"url":"https://api.github.com/repos/KelseyHale/appsassin","forks_url":"https://api.github.com/repos/KelseyHale/appsassin/forks","keys_url":"https://api.github.com/repos/KelseyHale/appsassin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KelseyHale/appsassin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KelseyHale/appsassin/teams","hooks_url":"https://api.github.com/repos/KelseyHale/appsassin/hooks","issue_events_url":"https://api.github.com/repos/KelseyHale/appsassin/issues/events{/number}","events_url":"https://api.github.com/repos/KelseyHale/appsassin/events","assignees_url":"https://api.github.com/repos/KelseyHale/appsassin/assignees{/user}","branches_url":"https://api.github.com/repos/KelseyHale/appsassin/branches{/branch}","tags_url":"https://api.github.com/repos/KelseyHale/appsassin/tags","blobs_url":"https://api.github.com/repos/KelseyHale/appsassin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KelseyHale/appsassin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KelseyHale/appsassin/git/refs{/sha}","trees_url":"https://api.github.com/repos/KelseyHale/appsassin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KelseyHale/appsassin/statuses/{sha}","languages_url":"https://api.github.com/repos/KelseyHale/appsassin/languages","stargazers_url":"https://api.github.com/repos/KelseyHale/appsassin/stargazers","contributors_url":"https://api.github.com/repos/KelseyHale/appsassin/contributors","subscribers_url":"https://api.github.com/repos/KelseyHale/appsassin/subscribers","subscription_url":"https://api.github.com/repos/KelseyHale/appsassin/subscription","commits_url":"https://api.github.com/repos/KelseyHale/appsassin/commits{/sha}","git_commits_url":"https://api.github.com/repos/KelseyHale/appsassin/git/commits{/sha}","comments_url":"https://api.github.com/repos/KelseyHale/appsassin/comments{/number}","issue_comment_url":"https://api.github.com/repos/KelseyHale/appsassin/issues/comments{/number}","contents_url":"https://api.github.com/repos/KelseyHale/appsassin/contents/{+path}","compare_url":"https://api.github.com/repos/KelseyHale/appsassin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KelseyHale/appsassin/merges","archive_url":"https://api.github.com/repos/KelseyHale/appsassin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KelseyHale/appsassin/downloads","issues_url":"https://api.github.com/repos/KelseyHale/appsassin/issues{/number}","pulls_url":"https://api.github.com/repos/KelseyHale/appsassin/pulls{/number}","milestones_url":"https://api.github.com/repos/KelseyHale/appsassin/milestones{/number}","notifications_url":"https://api.github.com/repos/KelseyHale/appsassin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KelseyHale/appsassin/labels{/name}","releases_url":"https://api.github.com/repos/KelseyHale/appsassin/releases{/id}","created_at":"2015-07-12T17:32:59Z","updated_at":"2015-07-12T18:07:42Z","pushed_at":"2015-07-16T20:48:12Z","git_url":"git://github.com/KelseyHale/appsassin.git","ssh_url":"git@github.com:KelseyHale/appsassin.git","clone_url":"https://github.com/KelseyHale/appsassin.git","svn_url":"https://github.com/KelseyHale/appsassin","homepage":null,"size":0,"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":"KelseyHale:master","ref":"master","sha":"881fcb928878947dad5d11a893d251c577971898","user":{"login":"KelseyHale","id":11223143,"avatar_url":"https://avatars.githubusercontent.com/u/11223143?v=3","gravatar_id":"","url":"https://api.github.com/users/KelseyHale","html_url":"https://github.com/KelseyHale","followers_url":"https://api.github.com/users/KelseyHale/followers","following_url":"https://api.github.com/users/KelseyHale/following{/other_user}","gists_url":"https://api.github.com/users/KelseyHale/gists{/gist_id}","starred_url":"https://api.github.com/users/KelseyHale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KelseyHale/subscriptions","organizations_url":"https://api.github.com/users/KelseyHale/orgs","repos_url":"https://api.github.com/users/KelseyHale/repos","events_url":"https://api.github.com/users/KelseyHale/events{/privacy}","received_events_url":"https://api.github.com/users/KelseyHale/received_events","type":"User","site_admin":false},"repo":{"id":38970980,"name":"appsassin","full_name":"KelseyHale/appsassin","owner":{"login":"KelseyHale","id":11223143,"avatar_url":"https://avatars.githubusercontent.com/u/11223143?v=3","gravatar_id":"","url":"https://api.github.com/users/KelseyHale","html_url":"https://github.com/KelseyHale","followers_url":"https://api.github.com/users/KelseyHale/followers","following_url":"https://api.github.com/users/KelseyHale/following{/other_user}","gists_url":"https://api.github.com/users/KelseyHale/gists{/gist_id}","starred_url":"https://api.github.com/users/KelseyHale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KelseyHale/subscriptions","organizations_url":"https://api.github.com/users/KelseyHale/orgs","repos_url":"https://api.github.com/users/KelseyHale/repos","events_url":"https://api.github.com/users/KelseyHale/events{/privacy}","received_events_url":"https://api.github.com/users/KelseyHale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KelseyHale/appsassin","description":"","fork":false,"url":"https://api.github.com/repos/KelseyHale/appsassin","forks_url":"https://api.github.com/repos/KelseyHale/appsassin/forks","keys_url":"https://api.github.com/repos/KelseyHale/appsassin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KelseyHale/appsassin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KelseyHale/appsassin/teams","hooks_url":"https://api.github.com/repos/KelseyHale/appsassin/hooks","issue_events_url":"https://api.github.com/repos/KelseyHale/appsassin/issues/events{/number}","events_url":"https://api.github.com/repos/KelseyHale/appsassin/events","assignees_url":"https://api.github.com/repos/KelseyHale/appsassin/assignees{/user}","branches_url":"https://api.github.com/repos/KelseyHale/appsassin/branches{/branch}","tags_url":"https://api.github.com/repos/KelseyHale/appsassin/tags","blobs_url":"https://api.github.com/repos/KelseyHale/appsassin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KelseyHale/appsassin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KelseyHale/appsassin/git/refs{/sha}","trees_url":"https://api.github.com/repos/KelseyHale/appsassin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KelseyHale/appsassin/statuses/{sha}","languages_url":"https://api.github.com/repos/KelseyHale/appsassin/languages","stargazers_url":"https://api.github.com/repos/KelseyHale/appsassin/stargazers","contributors_url":"https://api.github.com/repos/KelseyHale/appsassin/contributors","subscribers_url":"https://api.github.com/repos/KelseyHale/appsassin/subscribers","subscription_url":"https://api.github.com/repos/KelseyHale/appsassin/subscription","commits_url":"https://api.github.com/repos/KelseyHale/appsassin/commits{/sha}","git_commits_url":"https://api.github.com/repos/KelseyHale/appsassin/git/commits{/sha}","comments_url":"https://api.github.com/repos/KelseyHale/appsassin/comments{/number}","issue_comment_url":"https://api.github.com/repos/KelseyHale/appsassin/issues/comments{/number}","contents_url":"https://api.github.com/repos/KelseyHale/appsassin/contents/{+path}","compare_url":"https://api.github.com/repos/KelseyHale/appsassin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KelseyHale/appsassin/merges","archive_url":"https://api.github.com/repos/KelseyHale/appsassin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KelseyHale/appsassin/downloads","issues_url":"https://api.github.com/repos/KelseyHale/appsassin/issues{/number}","pulls_url":"https://api.github.com/repos/KelseyHale/appsassin/pulls{/number}","milestones_url":"https://api.github.com/repos/KelseyHale/appsassin/milestones{/number}","notifications_url":"https://api.github.com/repos/KelseyHale/appsassin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KelseyHale/appsassin/labels{/name}","releases_url":"https://api.github.com/repos/KelseyHale/appsassin/releases{/id}","created_at":"2015-07-12T17:32:59Z","updated_at":"2015-07-12T18:07:42Z","pushed_at":"2015-07-16T20:48:12Z","git_url":"git://github.com/KelseyHale/appsassin.git","ssh_url":"git@github.com:KelseyHale/appsassin.git","clone_url":"https://github.com/KelseyHale/appsassin.git","svn_url":"https://github.com/KelseyHale/appsassin","homepage":null,"size":0,"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/KelseyHale/appsassin/pulls/6"},"html":{"href":"https://github.com/KelseyHale/appsassin/pull/6"},"issue":{"href":"https://api.github.com/repos/KelseyHale/appsassin/issues/6"},"comments":{"href":"https://api.github.com/repos/KelseyHale/appsassin/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/KelseyHale/appsassin/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/KelseyHale/appsassin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KelseyHale/appsassin/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/KelseyHale/appsassin/statuses/9f36b9cfed78a62c6ef4e8fd2246fccfa2564137"}}}}