{"action":"created","comment":{"url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/comments/27487888","id":27487888,"diff_hunk":"@@ -0,0 +1,37 @@\n+require 'spec_helper'\n+feature \"As an admin, I want to be able to delete all reviews, because what I say goes\"\n+\n+  #Acceptance Criteria\n+  #[ ]I must be signed in\n+  #[ ]I must be on the details page for a specific beer\n+  #[ ]I must be able to delete a review by clicking the delete button\n+  #[ ]After deleting a review, the page will re-render\n+\n+  scenario 'successfully deleted all reviews' do\n+\n+    admin = FactoryGirl.create(:admin)\n+    review = FactoryGirl.create(:review)\n+\n+    visit root_path\n+    click_link \"Sign In\"\n+    fill_in \"Email\", with: admin.email\n+    fill_in \"Password\", with: admin.password\n+    click_link review.beer.name\n+    click_link \"Delete Reviews\"\n+    expect(page).to have_content(\"Reviews Successfully Deleted\")\n+    expect(page).to_not have_content(review.description)\n+  end\n+\n+  scenario 'unsuccessfully delete all reviews' do\n+\n+    user = FactoryGirl.create(:user)\n+    review = FactoryGirl.create(:review)\n+\n+    visit root_path\n+    click_link \"Sign In\"\n+    fill_in \"Email\", with: user.email\n+    fill_in \"Password\", with: user.password\n+    click_link review.beer.name\n+    expect(page).to_not have_content(\"Delete Reviews\")\n+  end\n+end","path":"spec/features/admin_deletes_all_comments_spec.rb","position":37,"original_position":37,"commit_id":"cedec803c902c4c010e881882d961a8cdb33148d","original_commit_id":"cedec803c902c4c010e881882d961a8cdb33148d","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":"unexpected token kEND","created_at":"2015-03-31T15:09:29Z","updated_at":"2015-03-31T15:09:29Z","html_url":"https://github.com/davidrf/Beer-Reviews/pull/4#discussion_r27487888","pull_request_url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/comments/27487888"},"html":{"href":"https://github.com/davidrf/Beer-Reviews/pull/4#discussion_r27487888"},"pull_request":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4","id":32330042,"html_url":"https://github.com/davidrf/Beer-Reviews/pull/4","diff_url":"https://github.com/davidrf/Beer-Reviews/pull/4.diff","patch_url":"https://github.com/davidrf/Beer-Reviews/pull/4.patch","issue_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/4","number":4,"state":"open","locked":false,"title":"RFR - Ibm tests","user":{"login":"imiller1985","id":10070374,"avatar_url":"https://avatars.githubusercontent.com/u/10070374?v=3","gravatar_id":"","url":"https://api.github.com/users/imiller1985","html_url":"https://github.com/imiller1985","followers_url":"https://api.github.com/users/imiller1985/followers","following_url":"https://api.github.com/users/imiller1985/following{/other_user}","gists_url":"https://api.github.com/users/imiller1985/gists{/gist_id}","starred_url":"https://api.github.com/users/imiller1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imiller1985/subscriptions","organizations_url":"https://api.github.com/users/imiller1985/orgs","repos_url":"https://api.github.com/users/imiller1985/repos","events_url":"https://api.github.com/users/imiller1985/events{/privacy}","received_events_url":"https://api.github.com/users/imiller1985/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-31T14:52:50Z","updated_at":"2015-03-31T15:09:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4/commits","review_comments_url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4/comments","review_comment_url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/comments{/number}","comments_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/4/comments","statuses_url":"https://api.github.com/repos/davidrf/Beer-Reviews/statuses/cedec803c902c4c010e881882d961a8cdb33148d","head":{"label":"davidrf:ibm-tests","ref":"ibm-tests","sha":"cedec803c902c4c010e881882d961a8cdb33148d","user":{"login":"davidrf","id":9678182,"avatar_url":"https://avatars.githubusercontent.com/u/9678182?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrf","html_url":"https://github.com/davidrf","followers_url":"https://api.github.com/users/davidrf/followers","following_url":"https://api.github.com/users/davidrf/following{/other_user}","gists_url":"https://api.github.com/users/davidrf/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrf/subscriptions","organizations_url":"https://api.github.com/users/davidrf/orgs","repos_url":"https://api.github.com/users/davidrf/repos","events_url":"https://api.github.com/users/davidrf/events{/privacy}","received_events_url":"https://api.github.com/users/davidrf/received_events","type":"User","site_admin":false},"repo":{"id":33140253,"name":"Beer-Reviews","full_name":"davidrf/Beer-Reviews","owner":{"login":"davidrf","id":9678182,"avatar_url":"https://avatars.githubusercontent.com/u/9678182?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrf","html_url":"https://github.com/davidrf","followers_url":"https://api.github.com/users/davidrf/followers","following_url":"https://api.github.com/users/davidrf/following{/other_user}","gists_url":"https://api.github.com/users/davidrf/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrf/subscriptions","organizations_url":"https://api.github.com/users/davidrf/orgs","repos_url":"https://api.github.com/users/davidrf/repos","events_url":"https://api.github.com/users/davidrf/events{/privacy}","received_events_url":"https://api.github.com/users/davidrf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidrf/Beer-Reviews","description":"","fork":false,"url":"https://api.github.com/repos/davidrf/Beer-Reviews","forks_url":"https://api.github.com/repos/davidrf/Beer-Reviews/forks","keys_url":"https://api.github.com/repos/davidrf/Beer-Reviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidrf/Beer-Reviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidrf/Beer-Reviews/teams","hooks_url":"https://api.github.com/repos/davidrf/Beer-Reviews/hooks","issue_events_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/events{/number}","events_url":"https://api.github.com/repos/davidrf/Beer-Reviews/events","assignees_url":"https://api.github.com/repos/davidrf/Beer-Reviews/assignees{/user}","branches_url":"https://api.github.com/repos/davidrf/Beer-Reviews/branches{/branch}","tags_url":"https://api.github.com/repos/davidrf/Beer-Reviews/tags","blobs_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidrf/Beer-Reviews/statuses/{sha}","languages_url":"https://api.github.com/repos/davidrf/Beer-Reviews/languages","stargazers_url":"https://api.github.com/repos/davidrf/Beer-Reviews/stargazers","contributors_url":"https://api.github.com/repos/davidrf/Beer-Reviews/contributors","subscribers_url":"https://api.github.com/repos/davidrf/Beer-Reviews/subscribers","subscription_url":"https://api.github.com/repos/davidrf/Beer-Reviews/subscription","commits_url":"https://api.github.com/repos/davidrf/Beer-Reviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidrf/Beer-Reviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidrf/Beer-Reviews/contents/{+path}","compare_url":"https://api.github.com/repos/davidrf/Beer-Reviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidrf/Beer-Reviews/merges","archive_url":"https://api.github.com/repos/davidrf/Beer-Reviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidrf/Beer-Reviews/downloads","issues_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues{/number}","pulls_url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls{/number}","milestones_url":"https://api.github.com/repos/davidrf/Beer-Reviews/milestones{/number}","notifications_url":"https://api.github.com/repos/davidrf/Beer-Reviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidrf/Beer-Reviews/labels{/name}","releases_url":"https://api.github.com/repos/davidrf/Beer-Reviews/releases{/id}","created_at":"2015-03-30T18:26:08Z","updated_at":"2015-03-31T14:05:57Z","pushed_at":"2015-03-31T15:09:26Z","git_url":"git://github.com/davidrf/Beer-Reviews.git","ssh_url":"git@github.com:davidrf/Beer-Reviews.git","clone_url":"https://github.com/davidrf/Beer-Reviews.git","svn_url":"https://github.com/davidrf/Beer-Reviews","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"davidrf:master","ref":"master","sha":"98570565771f5f91361eb9b67a21ac6c35fb1923","user":{"login":"davidrf","id":9678182,"avatar_url":"https://avatars.githubusercontent.com/u/9678182?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrf","html_url":"https://github.com/davidrf","followers_url":"https://api.github.com/users/davidrf/followers","following_url":"https://api.github.com/users/davidrf/following{/other_user}","gists_url":"https://api.github.com/users/davidrf/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrf/subscriptions","organizations_url":"https://api.github.com/users/davidrf/orgs","repos_url":"https://api.github.com/users/davidrf/repos","events_url":"https://api.github.com/users/davidrf/events{/privacy}","received_events_url":"https://api.github.com/users/davidrf/received_events","type":"User","site_admin":false},"repo":{"id":33140253,"name":"Beer-Reviews","full_name":"davidrf/Beer-Reviews","owner":{"login":"davidrf","id":9678182,"avatar_url":"https://avatars.githubusercontent.com/u/9678182?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrf","html_url":"https://github.com/davidrf","followers_url":"https://api.github.com/users/davidrf/followers","following_url":"https://api.github.com/users/davidrf/following{/other_user}","gists_url":"https://api.github.com/users/davidrf/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrf/subscriptions","organizations_url":"https://api.github.com/users/davidrf/orgs","repos_url":"https://api.github.com/users/davidrf/repos","events_url":"https://api.github.com/users/davidrf/events{/privacy}","received_events_url":"https://api.github.com/users/davidrf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidrf/Beer-Reviews","description":"","fork":false,"url":"https://api.github.com/repos/davidrf/Beer-Reviews","forks_url":"https://api.github.com/repos/davidrf/Beer-Reviews/forks","keys_url":"https://api.github.com/repos/davidrf/Beer-Reviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidrf/Beer-Reviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidrf/Beer-Reviews/teams","hooks_url":"https://api.github.com/repos/davidrf/Beer-Reviews/hooks","issue_events_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/events{/number}","events_url":"https://api.github.com/repos/davidrf/Beer-Reviews/events","assignees_url":"https://api.github.com/repos/davidrf/Beer-Reviews/assignees{/user}","branches_url":"https://api.github.com/repos/davidrf/Beer-Reviews/branches{/branch}","tags_url":"https://api.github.com/repos/davidrf/Beer-Reviews/tags","blobs_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidrf/Beer-Reviews/statuses/{sha}","languages_url":"https://api.github.com/repos/davidrf/Beer-Reviews/languages","stargazers_url":"https://api.github.com/repos/davidrf/Beer-Reviews/stargazers","contributors_url":"https://api.github.com/repos/davidrf/Beer-Reviews/contributors","subscribers_url":"https://api.github.com/repos/davidrf/Beer-Reviews/subscribers","subscription_url":"https://api.github.com/repos/davidrf/Beer-Reviews/subscription","commits_url":"https://api.github.com/repos/davidrf/Beer-Reviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidrf/Beer-Reviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidrf/Beer-Reviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidrf/Beer-Reviews/contents/{+path}","compare_url":"https://api.github.com/repos/davidrf/Beer-Reviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidrf/Beer-Reviews/merges","archive_url":"https://api.github.com/repos/davidrf/Beer-Reviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidrf/Beer-Reviews/downloads","issues_url":"https://api.github.com/repos/davidrf/Beer-Reviews/issues{/number}","pulls_url":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls{/number}","milestones_url":"https://api.github.com/repos/davidrf/Beer-Reviews/milestones{/number}","notifications_url":"https://api.github.com/repos/davidrf/Beer-Reviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidrf/Beer-Reviews/labels{/name}","releases_url":"https://api.github.com/repos/davidrf/Beer-Reviews/releases{/id}","created_at":"2015-03-30T18:26:08Z","updated_at":"2015-03-31T14:05:57Z","pushed_at":"2015-03-31T15:09:26Z","git_url":"git://github.com/davidrf/Beer-Reviews.git","ssh_url":"git@github.com:davidrf/Beer-Reviews.git","clone_url":"https://github.com/davidrf/Beer-Reviews.git","svn_url":"https://github.com/davidrf/Beer-Reviews","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4"},"html":{"href":"https://github.com/davidrf/Beer-Reviews/pull/4"},"issue":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/4"},"comments":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/davidrf/Beer-Reviews/statuses/cedec803c902c4c010e881882d961a8cdb33148d"}}}}