{"action":"created","comment":{"url":"https://api.github.com/repos/nickcluc/golf/pulls/comments/25125192","id":25125192,"diff_hunk":"@@ -0,0 +1,43 @@\n+require \"rails_helper\"\n+\n+feature \"User adds a new round\", %{\n+  As a user,\n+  I want to add a round I played,\n+  So I can keep track of my scores.\n+\n+  Acceptance Criteria\n+  [ ] A new round needs a course, date, and tee time\n+  [ ] A new played round needs to have a score, tee, and how many holes played.\n+  [ ] After round is created, should see a success message and see it  pending on their user page\n+  [ ] After a round is played, Player should be able to add their scores and holes played\n+  [ ] Completed rounds should be listed on user page as well\n+} do\n+  let (:test_tee) do\n+    FactoryGirl.create(:tee)\n+  end\n+\n+  scenario \"User successfully creates a new round\" do\n+\n+    test_round = FactoryGirl.build(:round)\n+\n+    sign_in_as(test_tee.course.user)\n+\n+    visit new_round_path\n+\n+    fill_in \"Date\", with: test_round.round_date\n+    select test_tee.course.name, from: \"Course\"\n+    fill_in \"Tee Time\", with: test_round.tee_time\n+    click_on \"Create Round\"\n+\n+    expect(page).to have_content \"Round Created Successfully!\"\n+\n+    fill_in \"Number of Holes\", with: 18\n+    fill_in \"Score\", with: 80\n+    select test_tee.color, from: \"Tee\"\n+\n+    click_on \"Save Score\"\n+\n+    expect(page).to have_content \"Score Saved Successfully!\"\n+","path":"spec/features/user_adds_a_new_round_spec.rb","position":41,"original_position":41,"commit_id":"75e886529e351b3f1bc212ec50d2bcb6b069e4f4","original_commit_id":"75e886529e351b3f1bc212ec50d2bcb6b069e4f4","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 empty line detected at block body end.","created_at":"2015-02-21T19:58:07Z","updated_at":"2015-02-21T19:58:07Z","html_url":"https://github.com/nickcluc/golf/pull/5#discussion_r25125192","pull_request_url":"https://api.github.com/repos/nickcluc/golf/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/nickcluc/golf/pulls/comments/25125192"},"html":{"href":"https://github.com/nickcluc/golf/pull/5#discussion_r25125192"},"pull_request":{"href":"https://api.github.com/repos/nickcluc/golf/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/nickcluc/golf/pulls/5","id":29758800,"html_url":"https://github.com/nickcluc/golf/pull/5","diff_url":"https://github.com/nickcluc/golf/pull/5.diff","patch_url":"https://github.com/nickcluc/golf/pull/5.patch","issue_url":"https://api.github.com/repos/nickcluc/golf/issues/5","number":5,"state":"open","locked":false,"title":"Added round and score functionality","user":{"login":"nickcluc","id":8691993,"avatar_url":"https://avatars.githubusercontent.com/u/8691993?v=3","gravatar_id":"","url":"https://api.github.com/users/nickcluc","html_url":"https://github.com/nickcluc","followers_url":"https://api.github.com/users/nickcluc/followers","following_url":"https://api.github.com/users/nickcluc/following{/other_user}","gists_url":"https://api.github.com/users/nickcluc/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcluc/subscriptions","organizations_url":"https://api.github.com/users/nickcluc/orgs","repos_url":"https://api.github.com/users/nickcluc/repos","events_url":"https://api.github.com/users/nickcluc/events{/privacy}","received_events_url":"https://api.github.com/users/nickcluc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-21T19:50:03Z","updated_at":"2015-02-21T19:58:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d11b24d84fb5c3205a729bda0bdd533f1b73f9e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nickcluc/golf/pulls/5/commits","review_comments_url":"https://api.github.com/repos/nickcluc/golf/pulls/5/comments","review_comment_url":"https://api.github.com/repos/nickcluc/golf/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nickcluc/golf/issues/5/comments","statuses_url":"https://api.github.com/repos/nickcluc/golf/statuses/75e886529e351b3f1bc212ec50d2bcb6b069e4f4","head":{"label":"nickcluc:add_rounds","ref":"add_rounds","sha":"75e886529e351b3f1bc212ec50d2bcb6b069e4f4","user":{"login":"nickcluc","id":8691993,"avatar_url":"https://avatars.githubusercontent.com/u/8691993?v=3","gravatar_id":"","url":"https://api.github.com/users/nickcluc","html_url":"https://github.com/nickcluc","followers_url":"https://api.github.com/users/nickcluc/followers","following_url":"https://api.github.com/users/nickcluc/following{/other_user}","gists_url":"https://api.github.com/users/nickcluc/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcluc/subscriptions","organizations_url":"https://api.github.com/users/nickcluc/orgs","repos_url":"https://api.github.com/users/nickcluc/repos","events_url":"https://api.github.com/users/nickcluc/events{/privacy}","received_events_url":"https://api.github.com/users/nickcluc/received_events","type":"User","site_admin":false},"repo":{"id":30880240,"name":"golf","full_name":"nickcluc/golf","owner":{"login":"nickcluc","id":8691993,"avatar_url":"https://avatars.githubusercontent.com/u/8691993?v=3","gravatar_id":"","url":"https://api.github.com/users/nickcluc","html_url":"https://github.com/nickcluc","followers_url":"https://api.github.com/users/nickcluc/followers","following_url":"https://api.github.com/users/nickcluc/following{/other_user}","gists_url":"https://api.github.com/users/nickcluc/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcluc/subscriptions","organizations_url":"https://api.github.com/users/nickcluc/orgs","repos_url":"https://api.github.com/users/nickcluc/repos","events_url":"https://api.github.com/users/nickcluc/events{/privacy}","received_events_url":"https://api.github.com/users/nickcluc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickcluc/golf","description":"","fork":false,"url":"https://api.github.com/repos/nickcluc/golf","forks_url":"https://api.github.com/repos/nickcluc/golf/forks","keys_url":"https://api.github.com/repos/nickcluc/golf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickcluc/golf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickcluc/golf/teams","hooks_url":"https://api.github.com/repos/nickcluc/golf/hooks","issue_events_url":"https://api.github.com/repos/nickcluc/golf/issues/events{/number}","events_url":"https://api.github.com/repos/nickcluc/golf/events","assignees_url":"https://api.github.com/repos/nickcluc/golf/assignees{/user}","branches_url":"https://api.github.com/repos/nickcluc/golf/branches{/branch}","tags_url":"https://api.github.com/repos/nickcluc/golf/tags","blobs_url":"https://api.github.com/repos/nickcluc/golf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickcluc/golf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickcluc/golf/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickcluc/golf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickcluc/golf/statuses/{sha}","languages_url":"https://api.github.com/repos/nickcluc/golf/languages","stargazers_url":"https://api.github.com/repos/nickcluc/golf/stargazers","contributors_url":"https://api.github.com/repos/nickcluc/golf/contributors","subscribers_url":"https://api.github.com/repos/nickcluc/golf/subscribers","subscription_url":"https://api.github.com/repos/nickcluc/golf/subscription","commits_url":"https://api.github.com/repos/nickcluc/golf/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickcluc/golf/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickcluc/golf/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickcluc/golf/issues/comments/{number}","contents_url":"https://api.github.com/repos/nickcluc/golf/contents/{+path}","compare_url":"https://api.github.com/repos/nickcluc/golf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickcluc/golf/merges","archive_url":"https://api.github.com/repos/nickcluc/golf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickcluc/golf/downloads","issues_url":"https://api.github.com/repos/nickcluc/golf/issues{/number}","pulls_url":"https://api.github.com/repos/nickcluc/golf/pulls{/number}","milestones_url":"https://api.github.com/repos/nickcluc/golf/milestones{/number}","notifications_url":"https://api.github.com/repos/nickcluc/golf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickcluc/golf/labels{/name}","releases_url":"https://api.github.com/repos/nickcluc/golf/releases{/id}","created_at":"2015-02-16T17:47:23Z","updated_at":"2015-02-20T05:22:46Z","pushed_at":"2015-02-21T19:58:01Z","git_url":"git://github.com/nickcluc/golf.git","ssh_url":"git@github.com:nickcluc/golf.git","clone_url":"https://github.com/nickcluc/golf.git","svn_url":"https://github.com/nickcluc/golf","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":"nickcluc:master","ref":"master","sha":"5c217f7b606ce2f8140310334f619cbd7e1c203f","user":{"login":"nickcluc","id":8691993,"avatar_url":"https://avatars.githubusercontent.com/u/8691993?v=3","gravatar_id":"","url":"https://api.github.com/users/nickcluc","html_url":"https://github.com/nickcluc","followers_url":"https://api.github.com/users/nickcluc/followers","following_url":"https://api.github.com/users/nickcluc/following{/other_user}","gists_url":"https://api.github.com/users/nickcluc/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcluc/subscriptions","organizations_url":"https://api.github.com/users/nickcluc/orgs","repos_url":"https://api.github.com/users/nickcluc/repos","events_url":"https://api.github.com/users/nickcluc/events{/privacy}","received_events_url":"https://api.github.com/users/nickcluc/received_events","type":"User","site_admin":false},"repo":{"id":30880240,"name":"golf","full_name":"nickcluc/golf","owner":{"login":"nickcluc","id":8691993,"avatar_url":"https://avatars.githubusercontent.com/u/8691993?v=3","gravatar_id":"","url":"https://api.github.com/users/nickcluc","html_url":"https://github.com/nickcluc","followers_url":"https://api.github.com/users/nickcluc/followers","following_url":"https://api.github.com/users/nickcluc/following{/other_user}","gists_url":"https://api.github.com/users/nickcluc/gists{/gist_id}","starred_url":"https://api.github.com/users/nickcluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickcluc/subscriptions","organizations_url":"https://api.github.com/users/nickcluc/orgs","repos_url":"https://api.github.com/users/nickcluc/repos","events_url":"https://api.github.com/users/nickcluc/events{/privacy}","received_events_url":"https://api.github.com/users/nickcluc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickcluc/golf","description":"","fork":false,"url":"https://api.github.com/repos/nickcluc/golf","forks_url":"https://api.github.com/repos/nickcluc/golf/forks","keys_url":"https://api.github.com/repos/nickcluc/golf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickcluc/golf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickcluc/golf/teams","hooks_url":"https://api.github.com/repos/nickcluc/golf/hooks","issue_events_url":"https://api.github.com/repos/nickcluc/golf/issues/events{/number}","events_url":"https://api.github.com/repos/nickcluc/golf/events","assignees_url":"https://api.github.com/repos/nickcluc/golf/assignees{/user}","branches_url":"https://api.github.com/repos/nickcluc/golf/branches{/branch}","tags_url":"https://api.github.com/repos/nickcluc/golf/tags","blobs_url":"https://api.github.com/repos/nickcluc/golf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickcluc/golf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickcluc/golf/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickcluc/golf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickcluc/golf/statuses/{sha}","languages_url":"https://api.github.com/repos/nickcluc/golf/languages","stargazers_url":"https://api.github.com/repos/nickcluc/golf/stargazers","contributors_url":"https://api.github.com/repos/nickcluc/golf/contributors","subscribers_url":"https://api.github.com/repos/nickcluc/golf/subscribers","subscription_url":"https://api.github.com/repos/nickcluc/golf/subscription","commits_url":"https://api.github.com/repos/nickcluc/golf/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickcluc/golf/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickcluc/golf/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickcluc/golf/issues/comments/{number}","contents_url":"https://api.github.com/repos/nickcluc/golf/contents/{+path}","compare_url":"https://api.github.com/repos/nickcluc/golf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickcluc/golf/merges","archive_url":"https://api.github.com/repos/nickcluc/golf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickcluc/golf/downloads","issues_url":"https://api.github.com/repos/nickcluc/golf/issues{/number}","pulls_url":"https://api.github.com/repos/nickcluc/golf/pulls{/number}","milestones_url":"https://api.github.com/repos/nickcluc/golf/milestones{/number}","notifications_url":"https://api.github.com/repos/nickcluc/golf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickcluc/golf/labels{/name}","releases_url":"https://api.github.com/repos/nickcluc/golf/releases{/id}","created_at":"2015-02-16T17:47:23Z","updated_at":"2015-02-20T05:22:46Z","pushed_at":"2015-02-21T19:58:01Z","git_url":"git://github.com/nickcluc/golf.git","ssh_url":"git@github.com:nickcluc/golf.git","clone_url":"https://github.com/nickcluc/golf.git","svn_url":"https://github.com/nickcluc/golf","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/nickcluc/golf/pulls/5"},"html":{"href":"https://github.com/nickcluc/golf/pull/5"},"issue":{"href":"https://api.github.com/repos/nickcluc/golf/issues/5"},"comments":{"href":"https://api.github.com/repos/nickcluc/golf/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/nickcluc/golf/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/nickcluc/golf/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nickcluc/golf/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/nickcluc/golf/statuses/75e886529e351b3f1bc212ec50d2bcb6b069e4f4"}}}}