{"action":"created","comment":{"url":"https://api.github.com/repos/cemple89/scoop_d/pulls/comments/82040697","pull_request_review_id":2975869,"id":82040697,"diff_hunk":"@@ -0,0 +1,51 @@\n+require \"rails_helper\"\n+\n+feature \"Admin can delete user\" do\n+  let(:user) do\n+    User.create(\n+      email: \"sophieheller1@gmail.com\",\n+      password: \"scooped\",\n+      admin: true\n+    )\n+  end\n+\n+  let!(:user2) do\n+    User.create(\n+      email: \"testemail@gmail.com\",\n+      password: \"alsoscooped\"\n+    )\n+  end\n+\n+  scenario \"Admin can see a list of all users\" do\n+    visit '/'\n+    fill_in \"Email\", with: user.email\n+    fill_in \"Password\", with: user.password\n+    click_button(\"Log In\")\n+    click_button(\"Users\")\n+\n+    expect(page).to have_content(user.email)\n+    expect(page).to have_content(user2.email)\n+  end\n+\n+  scenario \"Admin can delete user\" do\n+    visit '/'\n+    fill_in \"Email\", with: user.email\n+    fill_in \"Password\", with: user.password\n+    click_button(\"Log In\")\n+    click_button(\"Users\")\n+    click_button(user2.email)\n+\n+    expect(page).to_not have_content(user2.email)\n+  end\n+\n+  scenario \"Non-admin user cannot delete user\" do\n+    visit '/'\n+    fill_in \"Email\", with: user2.email\n+    fill_in \"Password\", with: user2.password","path":"spec/features/04_admin_can_delete_user_spec.rb","position":44,"original_position":44,"commit_id":"1d88064e9b4473de735ed0872a298e89e7025258","original_commit_id":"1d88064e9b4473de735ed0872a298e89e7025258","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.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":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-10-05T18:36:24Z","updated_at":"2016-10-05T18:36:24Z","html_url":"https://github.com/cemple89/scoop_d/pull/4#discussion_r82040697","pull_request_url":"https://api.github.com/repos/cemple89/scoop_d/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/cemple89/scoop_d/pulls/comments/82040697"},"html":{"href":"https://github.com/cemple89/scoop_d/pull/4#discussion_r82040697"},"pull_request":{"href":"https://api.github.com/repos/cemple89/scoop_d/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/cemple89/scoop_d/pulls/4","id":88132669,"html_url":"https://github.com/cemple89/scoop_d/pull/4","diff_url":"https://github.com/cemple89/scoop_d/pull/4.diff","patch_url":"https://github.com/cemple89/scoop_d/pull/4.patch","issue_url":"https://api.github.com/repos/cemple89/scoop_d/issues/4","number":4,"state":"open","locked":false,"title":"Create admin feature","user":{"login":"sophieheller1","id":17413252,"avatar_url":"https://avatars.githubusercontent.com/u/17413252?v=3","gravatar_id":"","url":"https://api.github.com/users/sophieheller1","html_url":"https://github.com/sophieheller1","followers_url":"https://api.github.com/users/sophieheller1/followers","following_url":"https://api.github.com/users/sophieheller1/following{/other_user}","gists_url":"https://api.github.com/users/sophieheller1/gists{/gist_id}","starred_url":"https://api.github.com/users/sophieheller1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sophieheller1/subscriptions","organizations_url":"https://api.github.com/users/sophieheller1/orgs","repos_url":"https://api.github.com/users/sophieheller1/repos","events_url":"https://api.github.com/users/sophieheller1/events{/privacy}","received_events_url":"https://api.github.com/users/sophieheller1/received_events","type":"User","site_admin":false},"body":"# Conflicts:\n#\tapp/views/layouts/application.html.erb","created_at":"2016-10-05T18:36:12Z","updated_at":"2016-10-05T18:36:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29ae7bb23951d86dfb8b285b7ac5e2120702a62a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cemple89/scoop_d/pulls/4/commits","review_comments_url":"https://api.github.com/repos/cemple89/scoop_d/pulls/4/comments","review_comment_url":"https://api.github.com/repos/cemple89/scoop_d/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cemple89/scoop_d/issues/4/comments","statuses_url":"https://api.github.com/repos/cemple89/scoop_d/statuses/1d88064e9b4473de735ed0872a298e89e7025258","head":{"label":"cemple89:create-admin-feature","ref":"create-admin-feature","sha":"1d88064e9b4473de735ed0872a298e89e7025258","user":{"login":"cemple89","id":21268269,"avatar_url":"https://avatars.githubusercontent.com/u/21268269?v=3","gravatar_id":"","url":"https://api.github.com/users/cemple89","html_url":"https://github.com/cemple89","followers_url":"https://api.github.com/users/cemple89/followers","following_url":"https://api.github.com/users/cemple89/following{/other_user}","gists_url":"https://api.github.com/users/cemple89/gists{/gist_id}","starred_url":"https://api.github.com/users/cemple89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemple89/subscriptions","organizations_url":"https://api.github.com/users/cemple89/orgs","repos_url":"https://api.github.com/users/cemple89/repos","events_url":"https://api.github.com/users/cemple89/events{/privacy}","received_events_url":"https://api.github.com/users/cemple89/received_events","type":"User","site_admin":false},"repo":{"id":69880231,"name":"scoop_d","full_name":"cemple89/scoop_d","owner":{"login":"cemple89","id":21268269,"avatar_url":"https://avatars.githubusercontent.com/u/21268269?v=3","gravatar_id":"","url":"https://api.github.com/users/cemple89","html_url":"https://github.com/cemple89","followers_url":"https://api.github.com/users/cemple89/followers","following_url":"https://api.github.com/users/cemple89/following{/other_user}","gists_url":"https://api.github.com/users/cemple89/gists{/gist_id}","starred_url":"https://api.github.com/users/cemple89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemple89/subscriptions","organizations_url":"https://api.github.com/users/cemple89/orgs","repos_url":"https://api.github.com/users/cemple89/repos","events_url":"https://api.github.com/users/cemple89/events{/privacy}","received_events_url":"https://api.github.com/users/cemple89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cemple89/scoop_d","description":null,"fork":false,"url":"https://api.github.com/repos/cemple89/scoop_d","forks_url":"https://api.github.com/repos/cemple89/scoop_d/forks","keys_url":"https://api.github.com/repos/cemple89/scoop_d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cemple89/scoop_d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cemple89/scoop_d/teams","hooks_url":"https://api.github.com/repos/cemple89/scoop_d/hooks","issue_events_url":"https://api.github.com/repos/cemple89/scoop_d/issues/events{/number}","events_url":"https://api.github.com/repos/cemple89/scoop_d/events","assignees_url":"https://api.github.com/repos/cemple89/scoop_d/assignees{/user}","branches_url":"https://api.github.com/repos/cemple89/scoop_d/branches{/branch}","tags_url":"https://api.github.com/repos/cemple89/scoop_d/tags","blobs_url":"https://api.github.com/repos/cemple89/scoop_d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cemple89/scoop_d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cemple89/scoop_d/git/refs{/sha}","trees_url":"https://api.github.com/repos/cemple89/scoop_d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cemple89/scoop_d/statuses/{sha}","languages_url":"https://api.github.com/repos/cemple89/scoop_d/languages","stargazers_url":"https://api.github.com/repos/cemple89/scoop_d/stargazers","contributors_url":"https://api.github.com/repos/cemple89/scoop_d/contributors","subscribers_url":"https://api.github.com/repos/cemple89/scoop_d/subscribers","subscription_url":"https://api.github.com/repos/cemple89/scoop_d/subscription","commits_url":"https://api.github.com/repos/cemple89/scoop_d/commits{/sha}","git_commits_url":"https://api.github.com/repos/cemple89/scoop_d/git/commits{/sha}","comments_url":"https://api.github.com/repos/cemple89/scoop_d/comments{/number}","issue_comment_url":"https://api.github.com/repos/cemple89/scoop_d/issues/comments{/number}","contents_url":"https://api.github.com/repos/cemple89/scoop_d/contents/{+path}","compare_url":"https://api.github.com/repos/cemple89/scoop_d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cemple89/scoop_d/merges","archive_url":"https://api.github.com/repos/cemple89/scoop_d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cemple89/scoop_d/downloads","issues_url":"https://api.github.com/repos/cemple89/scoop_d/issues{/number}","pulls_url":"https://api.github.com/repos/cemple89/scoop_d/pulls{/number}","milestones_url":"https://api.github.com/repos/cemple89/scoop_d/milestones{/number}","notifications_url":"https://api.github.com/repos/cemple89/scoop_d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cemple89/scoop_d/labels{/name}","releases_url":"https://api.github.com/repos/cemple89/scoop_d/releases{/id}","deployments_url":"https://api.github.com/repos/cemple89/scoop_d/deployments","created_at":"2016-10-03T14:44:57Z","updated_at":"2016-10-03T20:57:46Z","pushed_at":"2016-10-05T18:36:12Z","git_url":"git://github.com/cemple89/scoop_d.git","ssh_url":"git@github.com:cemple89/scoop_d.git","clone_url":"https://github.com/cemple89/scoop_d.git","svn_url":"https://github.com/cemple89/scoop_d","homepage":null,"size":270,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"cemple89:master","ref":"master","sha":"01e586589badae41fec660220357fbdb9208d157","user":{"login":"cemple89","id":21268269,"avatar_url":"https://avatars.githubusercontent.com/u/21268269?v=3","gravatar_id":"","url":"https://api.github.com/users/cemple89","html_url":"https://github.com/cemple89","followers_url":"https://api.github.com/users/cemple89/followers","following_url":"https://api.github.com/users/cemple89/following{/other_user}","gists_url":"https://api.github.com/users/cemple89/gists{/gist_id}","starred_url":"https://api.github.com/users/cemple89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemple89/subscriptions","organizations_url":"https://api.github.com/users/cemple89/orgs","repos_url":"https://api.github.com/users/cemple89/repos","events_url":"https://api.github.com/users/cemple89/events{/privacy}","received_events_url":"https://api.github.com/users/cemple89/received_events","type":"User","site_admin":false},"repo":{"id":69880231,"name":"scoop_d","full_name":"cemple89/scoop_d","owner":{"login":"cemple89","id":21268269,"avatar_url":"https://avatars.githubusercontent.com/u/21268269?v=3","gravatar_id":"","url":"https://api.github.com/users/cemple89","html_url":"https://github.com/cemple89","followers_url":"https://api.github.com/users/cemple89/followers","following_url":"https://api.github.com/users/cemple89/following{/other_user}","gists_url":"https://api.github.com/users/cemple89/gists{/gist_id}","starred_url":"https://api.github.com/users/cemple89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cemple89/subscriptions","organizations_url":"https://api.github.com/users/cemple89/orgs","repos_url":"https://api.github.com/users/cemple89/repos","events_url":"https://api.github.com/users/cemple89/events{/privacy}","received_events_url":"https://api.github.com/users/cemple89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cemple89/scoop_d","description":null,"fork":false,"url":"https://api.github.com/repos/cemple89/scoop_d","forks_url":"https://api.github.com/repos/cemple89/scoop_d/forks","keys_url":"https://api.github.com/repos/cemple89/scoop_d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cemple89/scoop_d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cemple89/scoop_d/teams","hooks_url":"https://api.github.com/repos/cemple89/scoop_d/hooks","issue_events_url":"https://api.github.com/repos/cemple89/scoop_d/issues/events{/number}","events_url":"https://api.github.com/repos/cemple89/scoop_d/events","assignees_url":"https://api.github.com/repos/cemple89/scoop_d/assignees{/user}","branches_url":"https://api.github.com/repos/cemple89/scoop_d/branches{/branch}","tags_url":"https://api.github.com/repos/cemple89/scoop_d/tags","blobs_url":"https://api.github.com/repos/cemple89/scoop_d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cemple89/scoop_d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cemple89/scoop_d/git/refs{/sha}","trees_url":"https://api.github.com/repos/cemple89/scoop_d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cemple89/scoop_d/statuses/{sha}","languages_url":"https://api.github.com/repos/cemple89/scoop_d/languages","stargazers_url":"https://api.github.com/repos/cemple89/scoop_d/stargazers","contributors_url":"https://api.github.com/repos/cemple89/scoop_d/contributors","subscribers_url":"https://api.github.com/repos/cemple89/scoop_d/subscribers","subscription_url":"https://api.github.com/repos/cemple89/scoop_d/subscription","commits_url":"https://api.github.com/repos/cemple89/scoop_d/commits{/sha}","git_commits_url":"https://api.github.com/repos/cemple89/scoop_d/git/commits{/sha}","comments_url":"https://api.github.com/repos/cemple89/scoop_d/comments{/number}","issue_comment_url":"https://api.github.com/repos/cemple89/scoop_d/issues/comments{/number}","contents_url":"https://api.github.com/repos/cemple89/scoop_d/contents/{+path}","compare_url":"https://api.github.com/repos/cemple89/scoop_d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cemple89/scoop_d/merges","archive_url":"https://api.github.com/repos/cemple89/scoop_d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cemple89/scoop_d/downloads","issues_url":"https://api.github.com/repos/cemple89/scoop_d/issues{/number}","pulls_url":"https://api.github.com/repos/cemple89/scoop_d/pulls{/number}","milestones_url":"https://api.github.com/repos/cemple89/scoop_d/milestones{/number}","notifications_url":"https://api.github.com/repos/cemple89/scoop_d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cemple89/scoop_d/labels{/name}","releases_url":"https://api.github.com/repos/cemple89/scoop_d/releases{/id}","deployments_url":"https://api.github.com/repos/cemple89/scoop_d/deployments","created_at":"2016-10-03T14:44:57Z","updated_at":"2016-10-03T20:57:46Z","pushed_at":"2016-10-05T18:36:12Z","git_url":"git://github.com/cemple89/scoop_d.git","ssh_url":"git@github.com:cemple89/scoop_d.git","clone_url":"https://github.com/cemple89/scoop_d.git","svn_url":"https://github.com/cemple89/scoop_d","homepage":null,"size":270,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cemple89/scoop_d/pulls/4"},"html":{"href":"https://github.com/cemple89/scoop_d/pull/4"},"issue":{"href":"https://api.github.com/repos/cemple89/scoop_d/issues/4"},"comments":{"href":"https://api.github.com/repos/cemple89/scoop_d/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/cemple89/scoop_d/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/cemple89/scoop_d/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cemple89/scoop_d/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/cemple89/scoop_d/statuses/1d88064e9b4473de735ed0872a298e89e7025258"}}}}
{"actor":{"display_login":"houndci-bot"}}