{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/33447627","id":33447627,"diff_hunk":"@@ -0,0 +1,82 @@\n+require 'game'\n+\n+describe Game do\n+  let (:game) {Game.new 'Paul'}\n+\n+  it 'should take in a player-name' do\n+    expect(game.player_1_name).to eq 'Paul'\n+  end\n+\n+  it 'should give the default name player_1 if no name is given' do\n+    game = Game.new\n+    expect(game.player_1_name).to eq 'player_1'\n+  end\n+\n+  # it 'should allow a player to guess on a particular game instance' do\n+  #   expect(game.play_1_player(\"scissors\")).to eq :win\n+  # end\n+\n+  # it 'should be able to return :win or :lose to a request from player' do\n+  #\n+  #   expect(subject.play('scissors')).to eq(:win).or eq(:lose)\n+  #\n+  # end\n+\n+  it 'should print out the player name if they win' do\n+     if game.play_1_player(\"scissors\") == :win\n+       expect(game.game_winner).to eq \"Paul\"\n+     end\n+   end\n+\n+  context 'determining the winner' do\n+\n+    it 'should tie when the player guess and the computer guess are the same' do\n+      game.stub(:computer_guess).and_return('paper')\n+      expect(game.play_1_player('paper')).to eq 'tied'\n+\n+    end\n+\n+    it \"should win when player choice is scissors and computer choice is paper\" do\n+    game.stub(:computer_guess).and_return('paper')\n+    expect(game.play_1_player('scissors')).to eq 'Paul'\n+\n+    end\n+\n+\n+    it \"should lose when player choice is scissors and computer choice is rock\" do\n+    game.stub(:computer_guess).and_return('rock')\n+    expect(game.play_1_player('scissors')).to eq 'Computer'\n+\n+    end\n+\n+    it \"should win when player choice is paper and computer choice is rock\" do\n+    game.stub(:computer_guess).and_return('rock')\n+    expect(game.play_1_player('paper')).to eq 'Paul'\n+\n+    end\n+\n+    it \"should win when player choice is rock and computer choice is scissors\" do\n+    game.stub(:computer_guess).and_return('scissors')\n+    expect(game.play_1_player('rock')).to eq 'Paul'\n+\n+    end\n+\n+","path":"spec/game_spec.rb","position":64,"original_position":64,"commit_id":"f1165881069ee1dff5af0881a56eac90c6bc81ab","original_commit_id":"f1165881069ee1dff5af0881a56eac90c6bc81ab","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":"Extra blank line detected.","created_at":"2015-06-29T09:31:53Z","updated_at":"2015-06-29T09:31:53Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/96#discussion_r33447627","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/33447627"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/96#discussion_r33447627"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96","id":38755775,"html_url":"https://github.com/makersacademy/rps-challenge/pull/96","diff_url":"https://github.com/makersacademy/rps-challenge/pull/96.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/96.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/96","number":96,"state":"open","locked":false,"title":"uploaded wrong version! This is finished game","user":{"login":"Harxy","id":11242766,"avatar_url":"https://avatars.githubusercontent.com/u/11242766?v=3","gravatar_id":"","url":"https://api.github.com/users/Harxy","html_url":"https://github.com/Harxy","followers_url":"https://api.github.com/users/Harxy/followers","following_url":"https://api.github.com/users/Harxy/following{/other_user}","gists_url":"https://api.github.com/users/Harxy/gists{/gist_id}","starred_url":"https://api.github.com/users/Harxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harxy/subscriptions","organizations_url":"https://api.github.com/users/Harxy/orgs","repos_url":"https://api.github.com/users/Harxy/repos","events_url":"https://api.github.com/users/Harxy/events{/privacy}","received_events_url":"https://api.github.com/users/Harxy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-29T09:31:44Z","updated_at":"2015-06-29T09:31:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"086a3c7200ee60590c238ecde98f79837fac34df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96/comments","review_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/96/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f1165881069ee1dff5af0881a56eac90c6bc81ab","head":{"label":"Harxy:dev","ref":"dev","sha":"f1165881069ee1dff5af0881a56eac90c6bc81ab","user":{"login":"Harxy","id":11242766,"avatar_url":"https://avatars.githubusercontent.com/u/11242766?v=3","gravatar_id":"","url":"https://api.github.com/users/Harxy","html_url":"https://github.com/Harxy","followers_url":"https://api.github.com/users/Harxy/followers","following_url":"https://api.github.com/users/Harxy/following{/other_user}","gists_url":"https://api.github.com/users/Harxy/gists{/gist_id}","starred_url":"https://api.github.com/users/Harxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harxy/subscriptions","organizations_url":"https://api.github.com/users/Harxy/orgs","repos_url":"https://api.github.com/users/Harxy/repos","events_url":"https://api.github.com/users/Harxy/events{/privacy}","received_events_url":"https://api.github.com/users/Harxy/received_events","type":"User","site_admin":false},"repo":{"id":38234761,"name":"rps-challenge","full_name":"Harxy/rps-challenge","owner":{"login":"Harxy","id":11242766,"avatar_url":"https://avatars.githubusercontent.com/u/11242766?v=3","gravatar_id":"","url":"https://api.github.com/users/Harxy","html_url":"https://github.com/Harxy","followers_url":"https://api.github.com/users/Harxy/followers","following_url":"https://api.github.com/users/Harxy/following{/other_user}","gists_url":"https://api.github.com/users/Harxy/gists{/gist_id}","starred_url":"https://api.github.com/users/Harxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harxy/subscriptions","organizations_url":"https://api.github.com/users/Harxy/orgs","repos_url":"https://api.github.com/users/Harxy/repos","events_url":"https://api.github.com/users/Harxy/events{/privacy}","received_events_url":"https://api.github.com/users/Harxy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Harxy/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/Harxy/rps-challenge","forks_url":"https://api.github.com/repos/Harxy/rps-challenge/forks","keys_url":"https://api.github.com/repos/Harxy/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Harxy/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Harxy/rps-challenge/teams","hooks_url":"https://api.github.com/repos/Harxy/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/Harxy/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Harxy/rps-challenge/events","assignees_url":"https://api.github.com/repos/Harxy/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Harxy/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Harxy/rps-challenge/tags","blobs_url":"https://api.github.com/repos/Harxy/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Harxy/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Harxy/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Harxy/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Harxy/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Harxy/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/Harxy/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/Harxy/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/Harxy/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/Harxy/rps-challenge/subscription","commits_url":"https://api.github.com/repos/Harxy/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Harxy/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Harxy/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Harxy/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Harxy/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Harxy/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Harxy/rps-challenge/merges","archive_url":"https://api.github.com/repos/Harxy/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Harxy/rps-challenge/downloads","issues_url":"https://api.github.com/repos/Harxy/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Harxy/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Harxy/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Harxy/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Harxy/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Harxy/rps-challenge/releases{/id}","created_at":"2015-06-29T07:52:59Z","updated_at":"2015-06-29T07:53:00Z","pushed_at":"2015-06-29T09:31:18Z","git_url":"git://github.com/Harxy/rps-challenge.git","ssh_url":"git@github.com:Harxy/rps-challenge.git","clone_url":"https://github.com/Harxy/rps-challenge.git","svn_url":"https://github.com/Harxy/rps-challenge","homepage":null,"size":37546,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"a11d2128e9605c16587bc9377cdee2684f2ed4ae","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006066,"name":"rps-challenge","full_name":"makersacademy/rps-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":false,"url":"https://api.github.com/repos/makersacademy/rps-challenge","forks_url":"https://api.github.com/repos/makersacademy/rps-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/rps-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/rps-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/rps-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/rps-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/rps-challenge/releases{/id}","created_at":"2014-11-22T17:15:17Z","updated_at":"2015-04-02T19:30:46Z","pushed_at":"2015-06-29T09:31:45Z","git_url":"git://github.com/makersacademy/rps-challenge.git","ssh_url":"git@github.com:makersacademy/rps-challenge.git","clone_url":"https://github.com/makersacademy/rps-challenge.git","svn_url":"https://github.com/makersacademy/rps-challenge","homepage":null,"size":37546,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":22,"forks":101,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/96"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/96"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f1165881069ee1dff5af0881a56eac90c6bc81ab"}}}}