{"action":"created","comment":{"url":"https://api.github.com/repos/cmacaulay/folio-share/pulls/comments/109320661","pull_request_review_id":30414740,"id":109320661,"diff_hunk":"@@ -0,0 +1,27 @@\n+require 'rails_helper'\n+\n+describe \"admin\" do\n+  it \"views a list of all users\" do \n+    admin = create(:user)\n+    admin.roles.create(name: \"admin\")\n+\n+    user_one =create(:user)\n+    user_one.roles.create(name: \"registered user\")    \n+    user_two =create(:user)\n+    user_two.roles.create(name: \"registered user\")\n+    user_three =create(:user)\n+    user_three.roles.create(name: \"registered user\")\n+\n+    controller = ApplicationController\n+    allow_any_instance_of(controller).to receive(:current_user).and_return(admin)\n+    visit admin_dashboard_path\n+\n+    expect(page).to have_content(user_one.username)\n+    expect(page).to have_content(user_two.username)\n+    expect(page).to have_content(user_three.username)\n+  end\n+\n+  ","path":"spec/features/admin/admin_views_all_users_spec.rb","position":24,"original_position":24,"commit_id":"23a4b75c4b841281859dec9f166be8ada7eb954a","original_commit_id":"23a4b75c4b841281859dec9f166be8ada7eb954a","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":"Trailing whitespace detected.","created_at":"2017-04-02T21:33:19Z","updated_at":"2017-04-02T21:33:19Z","html_url":"https://github.com/cmacaulay/folio-share/pull/116#discussion_r109320661","pull_request_url":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/cmacaulay/folio-share/pulls/comments/109320661"},"html":{"href":"https://github.com/cmacaulay/folio-share/pull/116#discussion_r109320661"},"pull_request":{"href":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116","id":113836012,"html_url":"https://github.com/cmacaulay/folio-share/pull/116","diff_url":"https://github.com/cmacaulay/folio-share/pull/116.diff","patch_url":"https://github.com/cmacaulay/folio-share/pull/116.patch","issue_url":"https://api.github.com/repos/cmacaulay/folio-share/issues/116","number":116,"state":"open","locked":false,"title":"Admin views all users","user":{"login":"JonathanSR","id":13320451,"avatar_url":"https://avatars0.githubusercontent.com/u/13320451?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanSR","html_url":"https://github.com/JonathanSR","followers_url":"https://api.github.com/users/JonathanSR/followers","following_url":"https://api.github.com/users/JonathanSR/following{/other_user}","gists_url":"https://api.github.com/users/JonathanSR/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanSR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanSR/subscriptions","organizations_url":"https://api.github.com/users/JonathanSR/orgs","repos_url":"https://api.github.com/users/JonathanSR/repos","events_url":"https://api.github.com/users/JonathanSR/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanSR/received_events","type":"User","site_admin":false},"body":"*WIP*\r\n\r\nadds admin can view all users\r\ncan activate a user\r\ncan deactivate a user\r\ncreates admin users controller with (update method)\r\nadds activated and deactivated permissions \r\nupdates admin dashboard to support users and passes those updates to the view page.\r\ncreates feature test to test for activation and deactivation of user.\r\n\r\n\r\n\r\ndeactivated user permissions is failing, it allows a deactivated user access to all view pages.","created_at":"2017-04-02T21:33:11Z","updated_at":"2017-04-02T21:33:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e4d61bad2d1dc3c42c7c6285c89485a2af80cf3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116/commits","review_comments_url":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116/comments","review_comment_url":"https://api.github.com/repos/cmacaulay/folio-share/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cmacaulay/folio-share/issues/116/comments","statuses_url":"https://api.github.com/repos/cmacaulay/folio-share/statuses/23a4b75c4b841281859dec9f166be8ada7eb954a","head":{"label":"cmacaulay:admin_views_all_users","ref":"admin_views_all_users","sha":"23a4b75c4b841281859dec9f166be8ada7eb954a","user":{"login":"cmacaulay","id":9217701,"avatar_url":"https://avatars0.githubusercontent.com/u/9217701?v=3","gravatar_id":"","url":"https://api.github.com/users/cmacaulay","html_url":"https://github.com/cmacaulay","followers_url":"https://api.github.com/users/cmacaulay/followers","following_url":"https://api.github.com/users/cmacaulay/following{/other_user}","gists_url":"https://api.github.com/users/cmacaulay/gists{/gist_id}","starred_url":"https://api.github.com/users/cmacaulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmacaulay/subscriptions","organizations_url":"https://api.github.com/users/cmacaulay/orgs","repos_url":"https://api.github.com/users/cmacaulay/repos","events_url":"https://api.github.com/users/cmacaulay/events{/privacy}","received_events_url":"https://api.github.com/users/cmacaulay/received_events","type":"User","site_admin":false},"repo":{"id":86386440,"name":"folio-share","full_name":"cmacaulay/folio-share","owner":{"login":"cmacaulay","id":9217701,"avatar_url":"https://avatars0.githubusercontent.com/u/9217701?v=3","gravatar_id":"","url":"https://api.github.com/users/cmacaulay","html_url":"https://github.com/cmacaulay","followers_url":"https://api.github.com/users/cmacaulay/followers","following_url":"https://api.github.com/users/cmacaulay/following{/other_user}","gists_url":"https://api.github.com/users/cmacaulay/gists{/gist_id}","starred_url":"https://api.github.com/users/cmacaulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmacaulay/subscriptions","organizations_url":"https://api.github.com/users/cmacaulay/orgs","repos_url":"https://api.github.com/users/cmacaulay/repos","events_url":"https://api.github.com/users/cmacaulay/events{/privacy}","received_events_url":"https://api.github.com/users/cmacaulay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmacaulay/folio-share","description":null,"fork":false,"url":"https://api.github.com/repos/cmacaulay/folio-share","forks_url":"https://api.github.com/repos/cmacaulay/folio-share/forks","keys_url":"https://api.github.com/repos/cmacaulay/folio-share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmacaulay/folio-share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmacaulay/folio-share/teams","hooks_url":"https://api.github.com/repos/cmacaulay/folio-share/hooks","issue_events_url":"https://api.github.com/repos/cmacaulay/folio-share/issues/events{/number}","events_url":"https://api.github.com/repos/cmacaulay/folio-share/events","assignees_url":"https://api.github.com/repos/cmacaulay/folio-share/assignees{/user}","branches_url":"https://api.github.com/repos/cmacaulay/folio-share/branches{/branch}","tags_url":"https://api.github.com/repos/cmacaulay/folio-share/tags","blobs_url":"https://api.github.com/repos/cmacaulay/folio-share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmacaulay/folio-share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmacaulay/folio-share/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmacaulay/folio-share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmacaulay/folio-share/statuses/{sha}","languages_url":"https://api.github.com/repos/cmacaulay/folio-share/languages","stargazers_url":"https://api.github.com/repos/cmacaulay/folio-share/stargazers","contributors_url":"https://api.github.com/repos/cmacaulay/folio-share/contributors","subscribers_url":"https://api.github.com/repos/cmacaulay/folio-share/subscribers","subscription_url":"https://api.github.com/repos/cmacaulay/folio-share/subscription","commits_url":"https://api.github.com/repos/cmacaulay/folio-share/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmacaulay/folio-share/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmacaulay/folio-share/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmacaulay/folio-share/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmacaulay/folio-share/contents/{+path}","compare_url":"https://api.github.com/repos/cmacaulay/folio-share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmacaulay/folio-share/merges","archive_url":"https://api.github.com/repos/cmacaulay/folio-share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmacaulay/folio-share/downloads","issues_url":"https://api.github.com/repos/cmacaulay/folio-share/issues{/number}","pulls_url":"https://api.github.com/repos/cmacaulay/folio-share/pulls{/number}","milestones_url":"https://api.github.com/repos/cmacaulay/folio-share/milestones{/number}","notifications_url":"https://api.github.com/repos/cmacaulay/folio-share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmacaulay/folio-share/labels{/name}","releases_url":"https://api.github.com/repos/cmacaulay/folio-share/releases{/id}","deployments_url":"https://api.github.com/repos/cmacaulay/folio-share/deployments","created_at":"2017-03-27T21:39:04Z","updated_at":"2017-03-31T23:10:14Z","pushed_at":"2017-04-02T21:33:12Z","git_url":"git://github.com/cmacaulay/folio-share.git","ssh_url":"git@github.com:cmacaulay/folio-share.git","clone_url":"https://github.com/cmacaulay/folio-share.git","svn_url":"https://github.com/cmacaulay/folio-share","homepage":null,"size":8337,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":64,"forks":0,"open_issues":64,"watchers":2,"default_branch":"master"}},"base":{"label":"cmacaulay:master","ref":"master","sha":"99b279e20322d54f70f25def685eb0cc6c0e69ab","user":{"login":"cmacaulay","id":9217701,"avatar_url":"https://avatars0.githubusercontent.com/u/9217701?v=3","gravatar_id":"","url":"https://api.github.com/users/cmacaulay","html_url":"https://github.com/cmacaulay","followers_url":"https://api.github.com/users/cmacaulay/followers","following_url":"https://api.github.com/users/cmacaulay/following{/other_user}","gists_url":"https://api.github.com/users/cmacaulay/gists{/gist_id}","starred_url":"https://api.github.com/users/cmacaulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmacaulay/subscriptions","organizations_url":"https://api.github.com/users/cmacaulay/orgs","repos_url":"https://api.github.com/users/cmacaulay/repos","events_url":"https://api.github.com/users/cmacaulay/events{/privacy}","received_events_url":"https://api.github.com/users/cmacaulay/received_events","type":"User","site_admin":false},"repo":{"id":86386440,"name":"folio-share","full_name":"cmacaulay/folio-share","owner":{"login":"cmacaulay","id":9217701,"avatar_url":"https://avatars0.githubusercontent.com/u/9217701?v=3","gravatar_id":"","url":"https://api.github.com/users/cmacaulay","html_url":"https://github.com/cmacaulay","followers_url":"https://api.github.com/users/cmacaulay/followers","following_url":"https://api.github.com/users/cmacaulay/following{/other_user}","gists_url":"https://api.github.com/users/cmacaulay/gists{/gist_id}","starred_url":"https://api.github.com/users/cmacaulay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmacaulay/subscriptions","organizations_url":"https://api.github.com/users/cmacaulay/orgs","repos_url":"https://api.github.com/users/cmacaulay/repos","events_url":"https://api.github.com/users/cmacaulay/events{/privacy}","received_events_url":"https://api.github.com/users/cmacaulay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmacaulay/folio-share","description":null,"fork":false,"url":"https://api.github.com/repos/cmacaulay/folio-share","forks_url":"https://api.github.com/repos/cmacaulay/folio-share/forks","keys_url":"https://api.github.com/repos/cmacaulay/folio-share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmacaulay/folio-share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmacaulay/folio-share/teams","hooks_url":"https://api.github.com/repos/cmacaulay/folio-share/hooks","issue_events_url":"https://api.github.com/repos/cmacaulay/folio-share/issues/events{/number}","events_url":"https://api.github.com/repos/cmacaulay/folio-share/events","assignees_url":"https://api.github.com/repos/cmacaulay/folio-share/assignees{/user}","branches_url":"https://api.github.com/repos/cmacaulay/folio-share/branches{/branch}","tags_url":"https://api.github.com/repos/cmacaulay/folio-share/tags","blobs_url":"https://api.github.com/repos/cmacaulay/folio-share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmacaulay/folio-share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmacaulay/folio-share/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmacaulay/folio-share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmacaulay/folio-share/statuses/{sha}","languages_url":"https://api.github.com/repos/cmacaulay/folio-share/languages","stargazers_url":"https://api.github.com/repos/cmacaulay/folio-share/stargazers","contributors_url":"https://api.github.com/repos/cmacaulay/folio-share/contributors","subscribers_url":"https://api.github.com/repos/cmacaulay/folio-share/subscribers","subscription_url":"https://api.github.com/repos/cmacaulay/folio-share/subscription","commits_url":"https://api.github.com/repos/cmacaulay/folio-share/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmacaulay/folio-share/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmacaulay/folio-share/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmacaulay/folio-share/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmacaulay/folio-share/contents/{+path}","compare_url":"https://api.github.com/repos/cmacaulay/folio-share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmacaulay/folio-share/merges","archive_url":"https://api.github.com/repos/cmacaulay/folio-share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmacaulay/folio-share/downloads","issues_url":"https://api.github.com/repos/cmacaulay/folio-share/issues{/number}","pulls_url":"https://api.github.com/repos/cmacaulay/folio-share/pulls{/number}","milestones_url":"https://api.github.com/repos/cmacaulay/folio-share/milestones{/number}","notifications_url":"https://api.github.com/repos/cmacaulay/folio-share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmacaulay/folio-share/labels{/name}","releases_url":"https://api.github.com/repos/cmacaulay/folio-share/releases{/id}","deployments_url":"https://api.github.com/repos/cmacaulay/folio-share/deployments","created_at":"2017-03-27T21:39:04Z","updated_at":"2017-03-31T23:10:14Z","pushed_at":"2017-04-02T21:33:12Z","git_url":"git://github.com/cmacaulay/folio-share.git","ssh_url":"git@github.com:cmacaulay/folio-share.git","clone_url":"https://github.com/cmacaulay/folio-share.git","svn_url":"https://github.com/cmacaulay/folio-share","homepage":null,"size":8337,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":64,"forks":0,"open_issues":64,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116"},"html":{"href":"https://github.com/cmacaulay/folio-share/pull/116"},"issue":{"href":"https://api.github.com/repos/cmacaulay/folio-share/issues/116"},"comments":{"href":"https://api.github.com/repos/cmacaulay/folio-share/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/cmacaulay/folio-share/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cmacaulay/folio-share/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/cmacaulay/folio-share/statuses/23a4b75c4b841281859dec9f166be8ada7eb954a"}}}}
{"actor":{"display_login":"houndci-bot"}}