{"action":"created","comment":{"url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/comments/40710085","id":40710085,"diff_hunk":"@@ -0,0 +1,24 @@\n+require \"rails_helper\"\n+\n+feature 'Admin deletes comment - ', %(\n+  As an admin\n+  I want to delete a comment\n+  So that I can cull the comment population\n+) do\n+\n+  scenario 'Admin should be able to delete comments' do\n+    sign_in_admin\n+    comment = FactoryGirl.create(:comment)\n+    visit tool_path(comment.review.tool)\n+    click_button(\"Delete comment #{comment.id}\")\n+    expect { Comment.find(comment.id) }.\n+      to raise_error { \"Couldn't find Tool with 'id'=#{comment.id}\" }","path":"spec/features/admin/admin_deletes_comment_spec.rb","position":15,"original_position":15,"commit_id":"d39988f698ba93cb042b11f93ebfdc72c7ed37c7","original_commit_id":"d39988f698ba93cb042b11f93ebfdc72c7ed37c7","user":{"login":"EWarringer","id":11731305,"avatar_url":"https://avatars.githubusercontent.com/u/11731305?v=3","gravatar_id":"","url":"https://api.github.com/users/EWarringer","html_url":"https://github.com/EWarringer","followers_url":"https://api.github.com/users/EWarringer/followers","following_url":"https://api.github.com/users/EWarringer/following{/other_user}","gists_url":"https://api.github.com/users/EWarringer/gists{/gist_id}","starred_url":"https://api.github.com/users/EWarringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EWarringer/subscriptions","organizations_url":"https://api.github.com/users/EWarringer/orgs","repos_url":"https://api.github.com/users/EWarringer/repos","events_url":"https://api.github.com/users/EWarringer/events{/privacy}","received_events_url":"https://api.github.com/users/EWarringer/received_events","type":"User","site_admin":false},"body":"Searching for the comment that was just deleted should raise an error, proving that the delete button is working.","created_at":"2015-09-29T18:33:32Z","updated_at":"2015-09-29T18:33:32Z","html_url":"https://github.com/casualsubversive/dev-tools-review/pull/10#discussion_r40710085","pull_request_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/comments/40710085"},"html":{"href":"https://github.com/casualsubversive/dev-tools-review/pull/10#discussion_r40710085"},"pull_request":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10","id":46205574,"html_url":"https://github.com/casualsubversive/dev-tools-review/pull/10","diff_url":"https://github.com/casualsubversive/dev-tools-review/pull/10.diff","patch_url":"https://github.com/casualsubversive/dev-tools-review/pull/10.patch","issue_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/10","number":10,"state":"open","locked":false,"title":"Add admin","user":{"login":"EWarringer","id":11731305,"avatar_url":"https://avatars.githubusercontent.com/u/11731305?v=3","gravatar_id":"","url":"https://api.github.com/users/EWarringer","html_url":"https://github.com/EWarringer","followers_url":"https://api.github.com/users/EWarringer/followers","following_url":"https://api.github.com/users/EWarringer/following{/other_user}","gists_url":"https://api.github.com/users/EWarringer/gists{/gist_id}","starred_url":"https://api.github.com/users/EWarringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EWarringer/subscriptions","organizations_url":"https://api.github.com/users/EWarringer/orgs","repos_url":"https://api.github.com/users/EWarringer/repos","events_url":"https://api.github.com/users/EWarringer/events{/privacy}","received_events_url":"https://api.github.com/users/EWarringer/received_events","type":"User","site_admin":false},"body":"Rspec tests for:\r\n- An admin views a list of users\r\n- An admin deletes a user\r\n- An admin deletes an item\r\n- An admin deletes a review\r\n- An admin deletes a comment\r\n\r\nUpdated user relation, html.erb files, controllers, controller actions, routes.rb, and factorygirl to make tests pass.","created_at":"2015-09-28T20:43:03Z","updated_at":"2015-09-29T18:33:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb9687fb498c43e3b0286cc7d95e6ae013a13d3d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10/commits","review_comments_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10/comments","review_comment_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/10/comments","statuses_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/statuses/d39988f698ba93cb042b11f93ebfdc72c7ed37c7","head":{"label":"casualsubversive:add-admin","ref":"add-admin","sha":"d39988f698ba93cb042b11f93ebfdc72c7ed37c7","user":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"repo":{"id":42874786,"name":"dev-tools-review","full_name":"casualsubversive/dev-tools-review","owner":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/casualsubversive/dev-tools-review","description":null,"fork":false,"url":"https://api.github.com/repos/casualsubversive/dev-tools-review","forks_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/forks","keys_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/teams","hooks_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/hooks","issue_events_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/events{/number}","events_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/events","assignees_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/assignees{/user}","branches_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/branches{/branch}","tags_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/tags","blobs_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/statuses/{sha}","languages_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/languages","stargazers_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/stargazers","contributors_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/contributors","subscribers_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/subscribers","subscription_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/subscription","commits_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/contents/{+path}","compare_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/merges","archive_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/downloads","issues_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues{/number}","pulls_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls{/number}","milestones_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/milestones{/number}","notifications_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/labels{/name}","releases_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/releases{/id}","created_at":"2015-09-21T15:22:28Z","updated_at":"2015-09-23T19:05:55Z","pushed_at":"2015-09-29T18:05:07Z","git_url":"git://github.com/casualsubversive/dev-tools-review.git","ssh_url":"git@github.com:casualsubversive/dev-tools-review.git","clone_url":"https://github.com/casualsubversive/dev-tools-review.git","svn_url":"https://github.com/casualsubversive/dev-tools-review","homepage":null,"size":2236,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"base":{"label":"casualsubversive:master","ref":"master","sha":"6832dcf1766399f7728ea9c60db5b1e905e19ca7","user":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"repo":{"id":42874786,"name":"dev-tools-review","full_name":"casualsubversive/dev-tools-review","owner":{"login":"casualsubversive","id":13060122,"avatar_url":"https://avatars.githubusercontent.com/u/13060122?v=3","gravatar_id":"","url":"https://api.github.com/users/casualsubversive","html_url":"https://github.com/casualsubversive","followers_url":"https://api.github.com/users/casualsubversive/followers","following_url":"https://api.github.com/users/casualsubversive/following{/other_user}","gists_url":"https://api.github.com/users/casualsubversive/gists{/gist_id}","starred_url":"https://api.github.com/users/casualsubversive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casualsubversive/subscriptions","organizations_url":"https://api.github.com/users/casualsubversive/orgs","repos_url":"https://api.github.com/users/casualsubversive/repos","events_url":"https://api.github.com/users/casualsubversive/events{/privacy}","received_events_url":"https://api.github.com/users/casualsubversive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/casualsubversive/dev-tools-review","description":null,"fork":false,"url":"https://api.github.com/repos/casualsubversive/dev-tools-review","forks_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/forks","keys_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/teams","hooks_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/hooks","issue_events_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/events{/number}","events_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/events","assignees_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/assignees{/user}","branches_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/branches{/branch}","tags_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/tags","blobs_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/statuses/{sha}","languages_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/languages","stargazers_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/stargazers","contributors_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/contributors","subscribers_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/subscribers","subscription_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/subscription","commits_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/contents/{+path}","compare_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/merges","archive_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/downloads","issues_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues{/number}","pulls_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls{/number}","milestones_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/milestones{/number}","notifications_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/labels{/name}","releases_url":"https://api.github.com/repos/casualsubversive/dev-tools-review/releases{/id}","created_at":"2015-09-21T15:22:28Z","updated_at":"2015-09-23T19:05:55Z","pushed_at":"2015-09-29T18:05:07Z","git_url":"git://github.com/casualsubversive/dev-tools-review.git","ssh_url":"git@github.com:casualsubversive/dev-tools-review.git","clone_url":"https://github.com/casualsubversive/dev-tools-review.git","svn_url":"https://github.com/casualsubversive/dev-tools-review","homepage":null,"size":2236,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10"},"html":{"href":"https://github.com/casualsubversive/dev-tools-review/pull/10"},"issue":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/10"},"comments":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/casualsubversive/dev-tools-review/statuses/d39988f698ba93cb042b11f93ebfdc72c7ed37c7"}}}}