{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36990209","id":36990209,"diff_hunk":"@@ -0,0 +1,139 @@\n+require \"spec_helper\"\n+\n+feature 'I can play against the computer' do\n+  scenario 'I can enter my name' do\n+    visit '/'\n+    click_link 'Play Against Computer'\n+    expect(page).to have_content \"What's your name?\"\n+    our_name = \"Richard\"\n+    fill_in \"name\", with: our_name\n+    click_button 'Submit'\n+    expect(page).to have_content \"Hello #{our_name}\"\n+  end\n+  scenario 'Gives default name if none submitted' do\n+    visit '/'\n+    click_link 'Play Against Computer'\n+    click_button 'Submit'\n+    expect(page).to have_content \"Hello Mr Anonymous\"\n+  end\n+  scenario 'I can select a hand to play' do\n+    visit '/'\n+    click_link 'Play Against Computer'\n+    click_button 'Submit'\n+    select \"paper\", :from => \"choice\"\n+    click_button 'Present Choice'\n+    expect(page).to have_content \"Mr Anonymous presented paper\"\n+  end\n+  scenario 'I can rematch' do\n+    visit '/'\n+    click_link 'Play Against Computer'\n+    click_button 'Submit'\n+    select \"paper\", :from => \"choice\"\n+    click_button 'Present Choice'\n+    select \"scissors\", :from => \"choice\"\n+    click_button 'Present Choice'\n+    expect(page).to have_content \"Mr Anonymous presented scissors\"\n+  end\n+  scenario 'I can quit to start page' do\n+    visit '/'\n+    click_link 'Play Against Computer'\n+    click_button 'Submit'\n+    click_button 'Quit'\n+    expect(page).to have_content \"Play Against Computer\"\n+  end\n+end\n+\n+feature 'I can play against a human' do\n+  scenario 'We can both enter our names' do\n+    visit '/'\n+    click_link 'Play Against A Friend'\n+    expect(page).to have_content \"What's your name?\"\n+    our_name = \"Richard\"\n+    their_name = \"Dave\"\n+    fill_in \"name1\", with: our_name\n+    fill_in \"name2\", with: their_name\n+    click_button 'Submit'\n+    expect(page).to have_content \"Richard vs Dave\"\n+  end\n+  scenario 'Gives default names if none submitted' do\n+    visit '/'\n+    click_link 'Play Against A Friend'\n+    click_button 'Submit'\n+    expect(page).to have_content \"Player 1 vs Player 2\"\n+  end\n+  scenario 'We can both select a hand to play' do\n+    visit '/'\n+    click_link 'Play Against A Friend'\n+    click_button 'Submit'\n+    select \"paper\", :from => \"choice1\"\n+    click_button 'Present Choice'\n+    select \"rock\", :from => \"choice2\"\n+    click_button 'Present Choice'\n+    expect(page).to have_content \"Paper wraps rock - Player 1 wins!\"\n+  end\n+  scenario 'I can rematch' do\n+    visit '/'\n+    click_link 'Play Against A Friend'\n+    click_button 'Submit'\n+    select \"paper\", :from => \"choice1\"\n+    click_button 'Present Choice'\n+    select \"rock\", :from => \"choice2\"\n+    click_button 'Present Choice'\n+    select \"scissors\", :from => \"choice1\"\n+    click_button 'Present Choice'\n+    select \"paper\", :from => \"choice2\"\n+    click_button 'Present Choice' \n+    expect(page).to have_content \"Scissors cuts paper - Player 1 wins!\"\n+  end\n+  scenario 'I can quit to start page' do\n+    visit '/'\n+    click_link 'Play Against A Friend'\n+    click_button 'Submit'\n+    click_button 'Submit'     \n+    click_button 'Quit'\n+    expect(page).to have_content \"Play Against Computer\"\n+  end\n+end\n+\n+feature 'I can play Rock Paper Scissors Lizard Spock' do\n+  scenario 'I can enter my name' do\n+    visit '/'\n+    click_link 'Play Rock Paper Scissors Lizard Spock'\n+    expect(page).to have_content \"What's your name?\"\n+    our_name = \"Richard\"\n+    fill_in \"name\", with: our_name\n+    click_button 'Submit'\n+    expect(page).to have_content \"Hello #{our_name}\"\n+  end\n+  scenario 'Gives default name if none submitted' do\n+    visit '/'\n+    click_link 'Play Rock Paper Scissors Lizard Spock'\n+    click_button 'Submit'\n+    expect(page).to have_content \"Hello Mr Anonymous\"\n+  end\n+  scenario 'I can select a hand to play' do\n+    visit '/'\n+    click_link 'Play Rock Paper Scissors Lizard Spock'\n+    click_button 'Submit'\n+    select \"lizard\", :from => \"choice\"\n+    click_button 'Present Choice'\n+    expect(page).to have_content \"Mr Anonymous presented lizard\"\n+  end\n+  scenario 'I can rematch' do\n+    visit '/'\n+    click_link 'Play Rock Paper Scissors Lizard Spock'\n+    click_button 'Submit'\n+    select \"lizard\", :from => \"choice\"\n+    click_button 'Present Choice'\n+    select \"Spock\", :from => \"choice\"","path":"spec/features/playing_the_game_spec.rb","position":128,"original_position":128,"commit_id":"f71ea48274fb655f9c8e07a56390b7bfd3f98d84","original_commit_id":"f71ea48274fb655f9c8e07a56390b7bfd3f98d84","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":"Use the new Ruby 1.9 hash syntax.","created_at":"2015-08-13T15:49:21Z","updated_at":"2015-08-13T15:49:21Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/105#discussion_r36990209","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/105","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36990209"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/105#discussion_r36990209"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/105"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/105","id":41966236,"html_url":"https://github.com/makersacademy/rps-challenge/pull/105","diff_url":"https://github.com/makersacademy/rps-challenge/pull/105.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/105.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/105","number":105,"state":"open","locked":false,"title":"Completed rps-challenge","user":{"login":"RichardCharman","id":12716756,"avatar_url":"https://avatars.githubusercontent.com/u/12716756?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardCharman","html_url":"https://github.com/RichardCharman","followers_url":"https://api.github.com/users/RichardCharman/followers","following_url":"https://api.github.com/users/RichardCharman/following{/other_user}","gists_url":"https://api.github.com/users/RichardCharman/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardCharman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardCharman/subscriptions","organizations_url":"https://api.github.com/users/RichardCharman/orgs","repos_url":"https://api.github.com/users/RichardCharman/repos","events_url":"https://api.github.com/users/RichardCharman/events{/privacy}","received_events_url":"https://api.github.com/users/RichardCharman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-09T06:40:00Z","updated_at":"2015-08-13T15:49:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85e216359e3bfee3b3907636ce575b178ec0c1b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/105/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/105/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/105/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f71ea48274fb655f9c8e07a56390b7bfd3f98d84","head":{"label":"RichardCharman:master","ref":"master","sha":"f71ea48274fb655f9c8e07a56390b7bfd3f98d84","user":{"login":"RichardCharman","id":12716756,"avatar_url":"https://avatars.githubusercontent.com/u/12716756?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardCharman","html_url":"https://github.com/RichardCharman","followers_url":"https://api.github.com/users/RichardCharman/followers","following_url":"https://api.github.com/users/RichardCharman/following{/other_user}","gists_url":"https://api.github.com/users/RichardCharman/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardCharman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardCharman/subscriptions","organizations_url":"https://api.github.com/users/RichardCharman/orgs","repos_url":"https://api.github.com/users/RichardCharman/repos","events_url":"https://api.github.com/users/RichardCharman/events{/privacy}","received_events_url":"https://api.github.com/users/RichardCharman/received_events","type":"User","site_admin":false},"repo":{"id":40374269,"name":"rps-challenge","full_name":"RichardCharman/rps-challenge","owner":{"login":"RichardCharman","id":12716756,"avatar_url":"https://avatars.githubusercontent.com/u/12716756?v=3","gravatar_id":"","url":"https://api.github.com/users/RichardCharman","html_url":"https://github.com/RichardCharman","followers_url":"https://api.github.com/users/RichardCharman/followers","following_url":"https://api.github.com/users/RichardCharman/following{/other_user}","gists_url":"https://api.github.com/users/RichardCharman/gists{/gist_id}","starred_url":"https://api.github.com/users/RichardCharman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichardCharman/subscriptions","organizations_url":"https://api.github.com/users/RichardCharman/orgs","repos_url":"https://api.github.com/users/RichardCharman/repos","events_url":"https://api.github.com/users/RichardCharman/events{/privacy}","received_events_url":"https://api.github.com/users/RichardCharman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RichardCharman/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/RichardCharman/rps-challenge","forks_url":"https://api.github.com/repos/RichardCharman/rps-challenge/forks","keys_url":"https://api.github.com/repos/RichardCharman/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RichardCharman/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RichardCharman/rps-challenge/teams","hooks_url":"https://api.github.com/repos/RichardCharman/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/RichardCharman/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/RichardCharman/rps-challenge/events","assignees_url":"https://api.github.com/repos/RichardCharman/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/RichardCharman/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/RichardCharman/rps-challenge/tags","blobs_url":"https://api.github.com/repos/RichardCharman/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RichardCharman/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RichardCharman/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/RichardCharman/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RichardCharman/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/RichardCharman/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/RichardCharman/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/RichardCharman/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/RichardCharman/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/RichardCharman/rps-challenge/subscription","commits_url":"https://api.github.com/repos/RichardCharman/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/RichardCharman/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/RichardCharman/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/RichardCharman/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/RichardCharman/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/RichardCharman/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RichardCharman/rps-challenge/merges","archive_url":"https://api.github.com/repos/RichardCharman/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RichardCharman/rps-challenge/downloads","issues_url":"https://api.github.com/repos/RichardCharman/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/RichardCharman/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/RichardCharman/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/RichardCharman/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RichardCharman/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/RichardCharman/rps-challenge/releases{/id}","created_at":"2015-08-07T18:13:09Z","updated_at":"2015-08-08T22:49:12Z","pushed_at":"2015-08-13T15:49:17Z","git_url":"git://github.com/RichardCharman/rps-challenge.git","ssh_url":"git@github.com:RichardCharman/rps-challenge.git","clone_url":"https://github.com/RichardCharman/rps-challenge.git","svn_url":"https://github.com/RichardCharman/rps-challenge","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"59953a8672f5fdb2f74d149a875340446276117a","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-08-13T15:49:17Z","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":39058,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":12,"forks":134,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/105"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/105"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/105"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/105/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/105/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/f71ea48274fb655f9c8e07a56390b7bfd3f98d84"}}}}