{"action":"created","comment":{"url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/comments/36472163","id":36472163,"diff_hunk":"@@ -0,0 +1,28 @@\n+require \"rails_helper\"\n+RSpec.feature \"AdminCanSeeDashBoard\", type: :feature do\n+  context \"as an admin\" do\n+    it \"logs in and sees dashboard\" do\n+      admin = User.create(username: \"admin\",\n+      password: \"password\",\n+      role: 1)\n+      ApplicationController.any_instance.stubs(:current_user).returns(admin)\n+      visit admin_dashboard_path\n+\n+      expect(page).to have_content(\"Admin Dashboard\")\n+      expect(current_path).to eq(\"/admin/dashboard\")\n+    end\n+\n+    it \"shows a 404 with registered user non admin\" do\n+      user = User.create(username: \"nonadmin\", password: \"meh\")\n+      visit admin_dashboard_path\n+\n+      expect(page).to have_content('The page you were looking for doesn\"t exist.')\n+    end\n+\n+    it \"shows a 404 with nonregistered user\" do\n+      visit admin_dashboard_path\n+\n+      expect(page).to have_content('The page you were looking for doesn\"t exist.')","path":"spec/features/admin_has_dashboard_spec.rb","position":25,"original_position":25,"commit_id":"06d2fb150089ffd13aa561ab9c660f954535c72d","original_commit_id":"06d2fb150089ffd13aa561ab9c660f954535c72d","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":"Line is too long. [82/80]","created_at":"2015-08-06T22:09:18Z","updated_at":"2015-08-06T22:09:18Z","html_url":"https://github.com/marlabrizel/jurassic_parka/pull/50#discussion_r36472163","pull_request_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/comments/36472163"},"html":{"href":"https://github.com/marlabrizel/jurassic_parka/pull/50#discussion_r36472163"},"pull_request":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50","id":41840809,"html_url":"https://github.com/marlabrizel/jurassic_parka/pull/50","diff_url":"https://github.com/marlabrizel/jurassic_parka/pull/50.diff","patch_url":"https://github.com/marlabrizel/jurassic_parka/pull/50.patch","issue_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/50","number":50,"state":"open","locked":false,"title":"created admin namespace with a dashboard, feature test passing","user":{"login":"Drew242","id":11841077,"avatar_url":"https://avatars.githubusercontent.com/u/11841077?v=3","gravatar_id":"","url":"https://api.github.com/users/Drew242","html_url":"https://github.com/Drew242","followers_url":"https://api.github.com/users/Drew242/followers","following_url":"https://api.github.com/users/Drew242/following{/other_user}","gists_url":"https://api.github.com/users/Drew242/gists{/gist_id}","starred_url":"https://api.github.com/users/Drew242/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drew242/subscriptions","organizations_url":"https://api.github.com/users/Drew242/orgs","repos_url":"https://api.github.com/users/Drew242/repos","events_url":"https://api.github.com/users/Drew242/events{/privacy}","received_events_url":"https://api.github.com/users/Drew242/received_events","type":"User","site_admin":false},"body":"Created admin namespace with admin controller in order to route to dashboard. Added role column to users table with a default of 0. Also added dashboard view for admin. closes #22 ","created_at":"2015-08-06T22:09:12Z","updated_at":"2015-08-06T22:09:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe1e0b79d5196d5da061eb5b0e1c153a2b3a45fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50/commits","review_comments_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50/comments","review_comment_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/50/comments","statuses_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/statuses/06d2fb150089ffd13aa561ab9c660f954535c72d","head":{"label":"marlabrizel:admin_authorization","ref":"admin_authorization","sha":"06d2fb150089ffd13aa561ab9c660f954535c72d","user":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"repo":{"id":40133956,"name":"jurassic_parka","full_name":"marlabrizel/jurassic_parka","owner":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marlabrizel/jurassic_parka","description":"","fork":false,"url":"https://api.github.com/repos/marlabrizel/jurassic_parka","forks_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/forks","keys_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/teams","hooks_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/hooks","issue_events_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/events{/number}","events_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/events","assignees_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/assignees{/user}","branches_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/branches{/branch}","tags_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/tags","blobs_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/refs{/sha}","trees_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/statuses/{sha}","languages_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/languages","stargazers_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/stargazers","contributors_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/contributors","subscribers_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/subscribers","subscription_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/subscription","commits_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/commits{/sha}","git_commits_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/commits{/sha}","comments_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/comments{/number}","issue_comment_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/comments{/number}","contents_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/contents/{+path}","compare_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/merges","archive_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/downloads","issues_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues{/number}","pulls_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls{/number}","milestones_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/milestones{/number}","notifications_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/labels{/name}","releases_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/releases{/id}","created_at":"2015-08-03T15:59:10Z","updated_at":"2015-08-06T18:40:54Z","pushed_at":"2015-08-06T22:09:12Z","git_url":"git://github.com/marlabrizel/jurassic_parka.git","ssh_url":"git@github.com:marlabrizel/jurassic_parka.git","clone_url":"https://github.com/marlabrizel/jurassic_parka.git","svn_url":"https://github.com/marlabrizel/jurassic_parka","homepage":"https://jurassic-parka.herokuapp.com/","size":2200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"marlabrizel:master","ref":"master","sha":"07b9b3e2d26897a29d73697a8e86916df1687b28","user":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"repo":{"id":40133956,"name":"jurassic_parka","full_name":"marlabrizel/jurassic_parka","owner":{"login":"marlabrizel","id":6632025,"avatar_url":"https://avatars.githubusercontent.com/u/6632025?v=3","gravatar_id":"","url":"https://api.github.com/users/marlabrizel","html_url":"https://github.com/marlabrizel","followers_url":"https://api.github.com/users/marlabrizel/followers","following_url":"https://api.github.com/users/marlabrizel/following{/other_user}","gists_url":"https://api.github.com/users/marlabrizel/gists{/gist_id}","starred_url":"https://api.github.com/users/marlabrizel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlabrizel/subscriptions","organizations_url":"https://api.github.com/users/marlabrizel/orgs","repos_url":"https://api.github.com/users/marlabrizel/repos","events_url":"https://api.github.com/users/marlabrizel/events{/privacy}","received_events_url":"https://api.github.com/users/marlabrizel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marlabrizel/jurassic_parka","description":"","fork":false,"url":"https://api.github.com/repos/marlabrizel/jurassic_parka","forks_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/forks","keys_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/teams","hooks_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/hooks","issue_events_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/events{/number}","events_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/events","assignees_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/assignees{/user}","branches_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/branches{/branch}","tags_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/tags","blobs_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/refs{/sha}","trees_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/statuses/{sha}","languages_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/languages","stargazers_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/stargazers","contributors_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/contributors","subscribers_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/subscribers","subscription_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/subscription","commits_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/commits{/sha}","git_commits_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/git/commits{/sha}","comments_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/comments{/number}","issue_comment_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/comments{/number}","contents_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/contents/{+path}","compare_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/merges","archive_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/downloads","issues_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues{/number}","pulls_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls{/number}","milestones_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/milestones{/number}","notifications_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/labels{/name}","releases_url":"https://api.github.com/repos/marlabrizel/jurassic_parka/releases{/id}","created_at":"2015-08-03T15:59:10Z","updated_at":"2015-08-06T18:40:54Z","pushed_at":"2015-08-06T22:09:12Z","git_url":"git://github.com/marlabrizel/jurassic_parka.git","ssh_url":"git@github.com:marlabrizel/jurassic_parka.git","clone_url":"https://github.com/marlabrizel/jurassic_parka.git","svn_url":"https://github.com/marlabrizel/jurassic_parka","homepage":"https://jurassic-parka.herokuapp.com/","size":2200,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50"},"html":{"href":"https://github.com/marlabrizel/jurassic_parka/pull/50"},"issue":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/50"},"comments":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/marlabrizel/jurassic_parka/statuses/06d2fb150089ffd13aa561ab9c660f954535c72d"}}}}