{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/25166604","id":25166604,"diff_hunk":"@@ -0,0 +1,61 @@\n+require 'game'\n+\n+describe Game do\n+  \n+  let(:game){Game.new}\n+  let(:thomas){double :player, weapon: :scissor, name: :thomas}\n+  let(:computer){double :player, weapon: :paper, name: :computer}\n+  let(:thomas_alias){double :player, weapon: :scissor, name: :thomas_alias}\n+  let(:player3){double :player, weapon: :rock, name: :player3}\n+\n+  def add_players_to_game\n+    game.add_player(thomas)\n+    game.add_player(computer)\n+  end \n+\n+  it \"should be able to add players\" do\n+    add_players_to_game\n+    expect(game.players).to eq([thomas, computer])\n+  end\n+\n+  xit \"shouldn't add more then two players\" do\n+    add_players_to_game\n+    expect{game.add_player(computer)}.to raise_error(RuntimeError, \"Sorry, this game can only be played by two players at a time\")\n+  end\n+\n+  it \"can decide, when a player has beaten the other\" do\n+    add_players_to_game\n+    expect(game.beater?(thomas, computer)).to eq(thomas)\n+  end\n+\n+  it \"can decide, when a player has beaten the other\" do\n+    game.add_player(thomas)\n+    game.add_player(player3)\n+    expect(game.beater?(thomas, player3)).to eq(player3)\n+  end\n+\n+  it \"should tell the player to try again when he has tied with his opponent\" do\n+    game.add_player(thomas)\n+    game.add_player(thomas_alias)\n+    expect(game.beater?(thomas, thomas_alias)).to eq(\"Tie. Choose again\")\n+  end\n+\n+  it \"should keep track of the turns\" do\n+    game.beater?(thomas, computer)\n+    game.beater?(thomas, computer)\n+    expect(game.count[:thomas]).to eq(2)\n+  end\n+\n+  it \"should know that the geme is over after three beats\" do","path":"spec/game_spec.rb","position":49,"original_position":49,"commit_id":"d1b942176091c88f71852822c1685924d7a2a117","original_commit_id":"87a207a12f7326a78c082045c12bb989a78bf31f","user":{"login":"pitchinvasion","id":208986,"avatar_url":"https://avatars.githubusercontent.com/u/208986?v=3","gravatar_id":"","url":"https://api.github.com/users/pitchinvasion","html_url":"https://github.com/pitchinvasion","followers_url":"https://api.github.com/users/pitchinvasion/followers","following_url":"https://api.github.com/users/pitchinvasion/following{/other_user}","gists_url":"https://api.github.com/users/pitchinvasion/gists{/gist_id}","starred_url":"https://api.github.com/users/pitchinvasion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitchinvasion/subscriptions","organizations_url":"https://api.github.com/users/pitchinvasion/orgs","repos_url":"https://api.github.com/users/pitchinvasion/repos","events_url":"https://api.github.com/users/pitchinvasion/events{/privacy}","received_events_url":"https://api.github.com/users/pitchinvasion/received_events","type":"User","site_admin":false},"body":"spelling!","created_at":"2015-02-23T14:23:15Z","updated_at":"2015-02-23T14:23:15Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/11#discussion_r25166604","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/25166604"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/11#discussion_r25166604"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/11","id":29793016,"html_url":"https://github.com/makersacademy/rps-challenge/pull/11","diff_url":"https://github.com/makersacademy/rps-challenge/pull/11.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/11.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/11","number":11,"state":"open","locked":false,"title":"Not particularly beautiful, but there is a nice little functionality","user":{"login":"TStrothjohann","id":6845969,"avatar_url":"https://avatars.githubusercontent.com/u/6845969?v=3","gravatar_id":"","url":"https://api.github.com/users/TStrothjohann","html_url":"https://github.com/TStrothjohann","followers_url":"https://api.github.com/users/TStrothjohann/followers","following_url":"https://api.github.com/users/TStrothjohann/following{/other_user}","gists_url":"https://api.github.com/users/TStrothjohann/gists{/gist_id}","starred_url":"https://api.github.com/users/TStrothjohann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TStrothjohann/subscriptions","organizations_url":"https://api.github.com/users/TStrothjohann/orgs","repos_url":"https://api.github.com/users/TStrothjohann/repos","events_url":"https://api.github.com/users/TStrothjohann/events{/privacy}","received_events_url":"https://api.github.com/users/TStrothjohann/received_events","type":"User","site_admin":false},"body":"If someone found out, why I have to restart the server after every round in order to keep playing... I would pretty much appreciate. Added some more comment to README.md","created_at":"2015-02-23T08:50:54Z","updated_at":"2015-02-23T14:23:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/11/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/11/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/11/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/d1b942176091c88f71852822c1685924d7a2a117","head":{"label":"TStrothjohann:master","ref":"master","sha":"d1b942176091c88f71852822c1685924d7a2a117","user":{"login":"TStrothjohann","id":6845969,"avatar_url":"https://avatars.githubusercontent.com/u/6845969?v=3","gravatar_id":"","url":"https://api.github.com/users/TStrothjohann","html_url":"https://github.com/TStrothjohann","followers_url":"https://api.github.com/users/TStrothjohann/followers","following_url":"https://api.github.com/users/TStrothjohann/following{/other_user}","gists_url":"https://api.github.com/users/TStrothjohann/gists{/gist_id}","starred_url":"https://api.github.com/users/TStrothjohann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TStrothjohann/subscriptions","organizations_url":"https://api.github.com/users/TStrothjohann/orgs","repos_url":"https://api.github.com/users/TStrothjohann/repos","events_url":"https://api.github.com/users/TStrothjohann/events{/privacy}","received_events_url":"https://api.github.com/users/TStrothjohann/received_events","type":"User","site_admin":false},"repo":{"id":31062678,"name":"rps-challenge","full_name":"TStrothjohann/rps-challenge","owner":{"login":"TStrothjohann","id":6845969,"avatar_url":"https://avatars.githubusercontent.com/u/6845969?v=3","gravatar_id":"","url":"https://api.github.com/users/TStrothjohann","html_url":"https://github.com/TStrothjohann","followers_url":"https://api.github.com/users/TStrothjohann/followers","following_url":"https://api.github.com/users/TStrothjohann/following{/other_user}","gists_url":"https://api.github.com/users/TStrothjohann/gists{/gist_id}","starred_url":"https://api.github.com/users/TStrothjohann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TStrothjohann/subscriptions","organizations_url":"https://api.github.com/users/TStrothjohann/orgs","repos_url":"https://api.github.com/users/TStrothjohann/repos","events_url":"https://api.github.com/users/TStrothjohann/events{/privacy}","received_events_url":"https://api.github.com/users/TStrothjohann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TStrothjohann/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/TStrothjohann/rps-challenge","forks_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/forks","keys_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/teams","hooks_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/events","assignees_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/tags","blobs_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/subscription","commits_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/merges","archive_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/downloads","issues_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/TStrothjohann/rps-challenge/releases{/id}","created_at":"2015-02-20T11:47:04Z","updated_at":"2015-02-23T14:04:35Z","pushed_at":"2015-02-23T14:04:35Z","git_url":"git://github.com/TStrothjohann/rps-challenge.git","ssh_url":"git@github.com:TStrothjohann/rps-challenge.git","clone_url":"https://github.com/TStrothjohann/rps-challenge.git","svn_url":"https://github.com/TStrothjohann/rps-challenge","homepage":null,"size":113,"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":"9799328ada5a799f838ce98991d8dc9eb88737c1","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-02-20T10:05:38Z","pushed_at":"2015-02-21T08:04:34Z","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":129,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":24,"forks":25,"open_issues":24,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/11"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/11"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/11"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/11/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/11/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/d1b942176091c88f71852822c1685924d7a2a117"}}}}