{"action":"created","comment":{"url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/comments/115123524","pull_request_review_id":36647303,"id":115123524,"diff_hunk":"@@ -0,0 +1,72 @@\n+require \"rails_helper\"\n+\n+feature \"visitors can edit a review\" do\n+  let!(:user) { FactoryGirl.create(:user) }\n+  let!(:nbafinal) { FactoryGirl.create(:nbafinal) }\n+  let!(:review) { FactoryGirl.create(:review, user: user, nbafinal: nbafinal) }\n+\n+  scenario \"from a link on the nbafinal show page if logged in\" do\n+    login_as(user)\n+    visit root_path\n+\n+    first(:link, nbafinal.year).click\n+    click_on \"Edit Review\"\n+    expect(page).to have_content \"Edit Review\"\n+  end\n+\n+  scenario \"and successfully update the database and be redirected to the show page\" do\n+    login_as(user)\n+    visit root_path\n+\n+    first(:link, nbafinal.year).click\n+    click_link \"Edit Review\"\n+\n+    select(4, from: \"Rating\")\n+    fill_in \"Review\", with: \"I have a new found respect for this colour\"\n+    click_button \"Submit Review\"\n+\n+    expect(page).to have_content \"I have a new found respect for this colour\"\n+    expect(page).to have_content \"Your review is successfully saved!\"\n+    expect(page).to_not have_content \"This just makes me sad.\"\n+  end\n+\n+  scenario \"only if they are logged in\" do\n+    visit nbafinal_path(nbafinal)\n+    expect(page).to_not have_content \"Edit Review\"\n+  end\n+\n+#   scenario \"and should be shown error message if updated review has no rating\" do","path":"spec/features/09_user_edits_reviews_spec.rb","position":38,"original_position":38,"commit_id":"3106c073763fa6688b4887094fadf26ccea04350","original_commit_id":"3106c073763fa6688b4887094fadf26ccea04350","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [83/80]","created_at":"2017-05-06T16:15:56Z","updated_at":"2017-05-06T16:15:57Z","html_url":"https://github.com/mikesilb/lakers_vs_celtics/pull/11#discussion_r115123524","pull_request_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/comments/115123524"},"html":{"href":"https://github.com/mikesilb/lakers_vs_celtics/pull/11#discussion_r115123524"},"pull_request":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/11","id":119306508,"html_url":"https://github.com/mikesilb/lakers_vs_celtics/pull/11","diff_url":"https://github.com/mikesilb/lakers_vs_celtics/pull/11.diff","patch_url":"https://github.com/mikesilb/lakers_vs_celtics/pull/11.patch","issue_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/11","number":11,"state":"open","locked":false,"title":"Added edit and delete functionality with improved styling","user":{"login":"mikesilb","id":6145238,"avatar_url":"https://avatars3.githubusercontent.com/u/6145238?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesilb","html_url":"https://github.com/mikesilb","followers_url":"https://api.github.com/users/mikesilb/followers","following_url":"https://api.github.com/users/mikesilb/following{/other_user}","gists_url":"https://api.github.com/users/mikesilb/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesilb/subscriptions","organizations_url":"https://api.github.com/users/mikesilb/orgs","repos_url":"https://api.github.com/users/mikesilb/repos","events_url":"https://api.github.com/users/mikesilb/events{/privacy}","received_events_url":"https://api.github.com/users/mikesilb/received_events","type":"User","site_admin":false},"body":"Added edit and delete functionality with improved styling","created_at":"2017-05-06T16:15:47Z","updated_at":"2017-05-06T16:15:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"239fe9a0ea0b7d08fa400bc05d39235d5cc0e34f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/11/commits","review_comments_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/11/comments","review_comment_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/11/comments","statuses_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/statuses/3106c073763fa6688b4887094fadf26ccea04350","head":{"label":"mikesilb:edit_and_delete_reviews","ref":"edit_and_delete_reviews","sha":"3106c073763fa6688b4887094fadf26ccea04350","user":{"login":"mikesilb","id":6145238,"avatar_url":"https://avatars3.githubusercontent.com/u/6145238?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesilb","html_url":"https://github.com/mikesilb","followers_url":"https://api.github.com/users/mikesilb/followers","following_url":"https://api.github.com/users/mikesilb/following{/other_user}","gists_url":"https://api.github.com/users/mikesilb/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesilb/subscriptions","organizations_url":"https://api.github.com/users/mikesilb/orgs","repos_url":"https://api.github.com/users/mikesilb/repos","events_url":"https://api.github.com/users/mikesilb/events{/privacy}","received_events_url":"https://api.github.com/users/mikesilb/received_events","type":"User","site_admin":false},"repo":{"id":89780194,"name":"lakers_vs_celtics","full_name":"mikesilb/lakers_vs_celtics","owner":{"login":"mikesilb","id":6145238,"avatar_url":"https://avatars3.githubusercontent.com/u/6145238?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesilb","html_url":"https://github.com/mikesilb","followers_url":"https://api.github.com/users/mikesilb/followers","following_url":"https://api.github.com/users/mikesilb/following{/other_user}","gists_url":"https://api.github.com/users/mikesilb/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesilb/subscriptions","organizations_url":"https://api.github.com/users/mikesilb/orgs","repos_url":"https://api.github.com/users/mikesilb/repos","events_url":"https://api.github.com/users/mikesilb/events{/privacy}","received_events_url":"https://api.github.com/users/mikesilb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikesilb/lakers_vs_celtics","description":null,"fork":false,"url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics","forks_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/forks","keys_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/teams","hooks_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/hooks","issue_events_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/events{/number}","events_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/events","assignees_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/assignees{/user}","branches_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/branches{/branch}","tags_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/tags","blobs_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/statuses/{sha}","languages_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/languages","stargazers_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/stargazers","contributors_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/contributors","subscribers_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/subscribers","subscription_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/subscription","commits_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/contents/{+path}","compare_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/merges","archive_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/downloads","issues_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues{/number}","pulls_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls{/number}","milestones_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/milestones{/number}","notifications_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/labels{/name}","releases_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/releases{/id}","deployments_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/deployments","created_at":"2017-04-29T11:04:11Z","updated_at":"2017-04-29T11:09:35Z","pushed_at":"2017-05-06T16:15:48Z","git_url":"git://github.com/mikesilb/lakers_vs_celtics.git","ssh_url":"git@github.com:mikesilb/lakers_vs_celtics.git","clone_url":"https://github.com/mikesilb/lakers_vs_celtics.git","svn_url":"https://github.com/mikesilb/lakers_vs_celtics","homepage":null,"size":1452,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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":"mikesilb:master","ref":"master","sha":"b8dd373ba527712c220180e491ce08d3c40f7eee","user":{"login":"mikesilb","id":6145238,"avatar_url":"https://avatars3.githubusercontent.com/u/6145238?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesilb","html_url":"https://github.com/mikesilb","followers_url":"https://api.github.com/users/mikesilb/followers","following_url":"https://api.github.com/users/mikesilb/following{/other_user}","gists_url":"https://api.github.com/users/mikesilb/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesilb/subscriptions","organizations_url":"https://api.github.com/users/mikesilb/orgs","repos_url":"https://api.github.com/users/mikesilb/repos","events_url":"https://api.github.com/users/mikesilb/events{/privacy}","received_events_url":"https://api.github.com/users/mikesilb/received_events","type":"User","site_admin":false},"repo":{"id":89780194,"name":"lakers_vs_celtics","full_name":"mikesilb/lakers_vs_celtics","owner":{"login":"mikesilb","id":6145238,"avatar_url":"https://avatars3.githubusercontent.com/u/6145238?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesilb","html_url":"https://github.com/mikesilb","followers_url":"https://api.github.com/users/mikesilb/followers","following_url":"https://api.github.com/users/mikesilb/following{/other_user}","gists_url":"https://api.github.com/users/mikesilb/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesilb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesilb/subscriptions","organizations_url":"https://api.github.com/users/mikesilb/orgs","repos_url":"https://api.github.com/users/mikesilb/repos","events_url":"https://api.github.com/users/mikesilb/events{/privacy}","received_events_url":"https://api.github.com/users/mikesilb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikesilb/lakers_vs_celtics","description":null,"fork":false,"url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics","forks_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/forks","keys_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/teams","hooks_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/hooks","issue_events_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/events{/number}","events_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/events","assignees_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/assignees{/user}","branches_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/branches{/branch}","tags_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/tags","blobs_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/statuses/{sha}","languages_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/languages","stargazers_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/stargazers","contributors_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/contributors","subscribers_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/subscribers","subscription_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/subscription","commits_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/contents/{+path}","compare_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/merges","archive_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/downloads","issues_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues{/number}","pulls_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls{/number}","milestones_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/milestones{/number}","notifications_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/labels{/name}","releases_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/releases{/id}","deployments_url":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/deployments","created_at":"2017-04-29T11:04:11Z","updated_at":"2017-04-29T11:09:35Z","pushed_at":"2017-05-06T16:15:48Z","git_url":"git://github.com/mikesilb/lakers_vs_celtics.git","ssh_url":"git@github.com:mikesilb/lakers_vs_celtics.git","clone_url":"https://github.com/mikesilb/lakers_vs_celtics.git","svn_url":"https://github.com/mikesilb/lakers_vs_celtics","homepage":null,"size":1452,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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/mikesilb/lakers_vs_celtics/pulls/11"},"html":{"href":"https://github.com/mikesilb/lakers_vs_celtics/pull/11"},"issue":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/11"},"comments":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/mikesilb/lakers_vs_celtics/statuses/3106c073763fa6688b4887094fadf26ccea04350"}}}}
{"actor":{"display_login":"houndci-bot"}}