{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/28068111","id":28068111,"diff_hunk":"@@ -0,0 +1,44 @@\n+require './lib/game'\n+\n+describe Game do\n+  subject { described_class.new }\n+  let(:player) { double(:player, name: \"Rob\") }\n+  let(:auto_player) { double(:auto_player, name: \"Holly\") }\n+  let(:play_hash) { { player1: player, p1_move: :rock, player2: auto_player, p2_move: auto_player.move } }\n+\n+  it 'can determine whether a player has won' do\n+    allow(auto_player).to receive(:move) { :scissors }\n+    winning_response = { draw: false,\n+                         winner: \"Rob\",\n+                         loser: \"Holly\",\n+                         p1: \"rock\",\n+                         verb: \"blunts\",\n+                         p2: \"scissors\"\n+                       }\n+    expect(subject.result(play_hash)).to eq winning_response\n+  end\n+\n+  it 'can determine whether a player has lost' do\n+    allow(auto_player).to receive(:move) { :paper }\n+    winning_response = { draw: false,\n+                         winner: \"Holly\",\n+                         loser: \"Rob\",\n+                         p1: \"paper\",\n+                         verb: \"wraps\",\n+                         p2: \"rock\"\n+                       }\n+    expect(subject.result(play_hash)).to eq winning_response\n+  end\n+\n+  it 'can determine whether a player has drawn' do\n+    allow(auto_player).to receive(:move) { :rock }\n+    winning_response = { draw: true,\n+                         winner: \"Rob\",\n+                         loser: \"Holly\",\n+                         p1: \"rock\",\n+                         verb: \"matches\",\n+                         p2: \"rock\"\n+                       }\n+    expect(subject.result(play_hash)).to eq winning_response","path":"spec/game_spec.rb","position":42,"original_position":42,"commit_id":"192b5e0d84d802d6593a13962ffb2421e8350eca","original_commit_id":"192b5e0d84d802d6593a13962ffb2421e8350eca","user":{"login":"sjmog","id":1960230,"avatar_url":"https://avatars.githubusercontent.com/u/1960230?v=3","gravatar_id":"","url":"https://api.github.com/users/sjmog","html_url":"https://github.com/sjmog","followers_url":"https://api.github.com/users/sjmog/followers","following_url":"https://api.github.com/users/sjmog/following{/other_user}","gists_url":"https://api.github.com/users/sjmog/gists{/gist_id}","starred_url":"https://api.github.com/users/sjmog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjmog/subscriptions","organizations_url":"https://api.github.com/users/sjmog/orgs","repos_url":"https://api.github.com/users/sjmog/repos","events_url":"https://api.github.com/users/sjmog/events{/privacy}","received_events_url":"https://api.github.com/users/sjmog/received_events","type":"User","site_admin":false},"body":"I like this hash stuff","created_at":"2015-04-09T14:48:52Z","updated_at":"2015-04-09T14:48:52Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/28#discussion_r28068111","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/28068111"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/28#discussion_r28068111"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/28","id":32655581,"html_url":"https://github.com/makersacademy/rps-challenge/pull/28","diff_url":"https://github.com/makersacademy/rps-challenge/pull/28.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/28.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/28","number":28,"state":"open","locked":false,"title":"MVP completed","user":{"login":"RBGeomaticsRob","id":10895286,"avatar_url":"https://avatars.githubusercontent.com/u/10895286?v=3","gravatar_id":"","url":"https://api.github.com/users/RBGeomaticsRob","html_url":"https://github.com/RBGeomaticsRob","followers_url":"https://api.github.com/users/RBGeomaticsRob/followers","following_url":"https://api.github.com/users/RBGeomaticsRob/following{/other_user}","gists_url":"https://api.github.com/users/RBGeomaticsRob/gists{/gist_id}","starred_url":"https://api.github.com/users/RBGeomaticsRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBGeomaticsRob/subscriptions","organizations_url":"https://api.github.com/users/RBGeomaticsRob/orgs","repos_url":"https://api.github.com/users/RBGeomaticsRob/repos","events_url":"https://api.github.com/users/RBGeomaticsRob/events{/privacy}","received_events_url":"https://api.github.com/users/RBGeomaticsRob/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-05T22:33:02Z","updated_at":"2015-04-09T14:48:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc267b7bb6ecc100a47279a23fa913ef9096f7aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/28/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/28/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/28/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/192b5e0d84d802d6593a13962ffb2421e8350eca","head":{"label":"RBGeomaticsRob:master","ref":"master","sha":"192b5e0d84d802d6593a13962ffb2421e8350eca","user":{"login":"RBGeomaticsRob","id":10895286,"avatar_url":"https://avatars.githubusercontent.com/u/10895286?v=3","gravatar_id":"","url":"https://api.github.com/users/RBGeomaticsRob","html_url":"https://github.com/RBGeomaticsRob","followers_url":"https://api.github.com/users/RBGeomaticsRob/followers","following_url":"https://api.github.com/users/RBGeomaticsRob/following{/other_user}","gists_url":"https://api.github.com/users/RBGeomaticsRob/gists{/gist_id}","starred_url":"https://api.github.com/users/RBGeomaticsRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBGeomaticsRob/subscriptions","organizations_url":"https://api.github.com/users/RBGeomaticsRob/orgs","repos_url":"https://api.github.com/users/RBGeomaticsRob/repos","events_url":"https://api.github.com/users/RBGeomaticsRob/events{/privacy}","received_events_url":"https://api.github.com/users/RBGeomaticsRob/received_events","type":"User","site_admin":false},"repo":{"id":33380111,"name":"rps-challenge","full_name":"RBGeomaticsRob/rps-challenge","owner":{"login":"RBGeomaticsRob","id":10895286,"avatar_url":"https://avatars.githubusercontent.com/u/10895286?v=3","gravatar_id":"","url":"https://api.github.com/users/RBGeomaticsRob","html_url":"https://github.com/RBGeomaticsRob","followers_url":"https://api.github.com/users/RBGeomaticsRob/followers","following_url":"https://api.github.com/users/RBGeomaticsRob/following{/other_user}","gists_url":"https://api.github.com/users/RBGeomaticsRob/gists{/gist_id}","starred_url":"https://api.github.com/users/RBGeomaticsRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RBGeomaticsRob/subscriptions","organizations_url":"https://api.github.com/users/RBGeomaticsRob/orgs","repos_url":"https://api.github.com/users/RBGeomaticsRob/repos","events_url":"https://api.github.com/users/RBGeomaticsRob/events{/privacy}","received_events_url":"https://api.github.com/users/RBGeomaticsRob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RBGeomaticsRob/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge","forks_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/forks","keys_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/teams","hooks_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/events","assignees_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/tags","blobs_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/subscription","commits_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/merges","archive_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/downloads","issues_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/RBGeomaticsRob/rps-challenge/releases{/id}","created_at":"2015-04-03T19:52:56Z","updated_at":"2015-04-06T23:04:00Z","pushed_at":"2015-04-06T23:04:00Z","git_url":"git://github.com/RBGeomaticsRob/rps-challenge.git","ssh_url":"git@github.com:RBGeomaticsRob/rps-challenge.git","clone_url":"https://github.com/RBGeomaticsRob/rps-challenge.git","svn_url":"https://github.com/RBGeomaticsRob/rps-challenge","homepage":null,"size":316,"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":"54707445d3f5a344e331e11ac8484f6f80010068","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-04-09T13:57:54Z","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":25246,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":29,"forks":57,"open_issues":29,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/28"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/28"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/28"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/28/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/28/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/192b5e0d84d802d6593a13962ffb2421e8350eca"}}}}