{"action":"created","comment":{"url":"https://api.github.com/repos/toriejw/global-pursuit/pulls/comments/44861946","id":44861946,"diff_hunk":"@@ -0,0 +1,45 @@\n+require \"test_helper\"\n+\n+class UnathenticatedUserSecurityTest < ActionDispatch::IntegrationTest\n+  test \"unathenticated user cannot see another users dashboard or orders\" do\n+    visit root_path\n+\n+    click_button \"Login\"\n+\n+    fill_in \"Username\", with: \"Nicole\"\n+    fill_in \"Password\", with: \"pass\"\n+    click_button \"Login\"\n+\n+    assert_equal login_path, current_path\n+    assert page.has_content?(\"Login\")\n+  end\n+\n+  test \"unathenticated user cannot make themself an admin account\" do\n+    visit root_path\n+\n+    click_button \"Apply for Membership\"\n+\n+    assert_equal new_user_path, current_path\n+    refute page.has_content?(\"role\")\n+\n+    fill_in \"Username\", with: \"Nicole\"\n+    fill_in \"Password\", with: \"pass\"\n+    fill_in \"Name\", with: \"Cole\"\n+\n+    click_button (\"Create Account\")\n+\n+    assert page.has_content?(\"Welcome, Cole!\")\n+    refute page.has_content?(\"Admin Dashboard\")\n+    refute page.has_content?(\"Create Pursuit\")\n+    refute page.has_content?(\"Create User\")\n+  end\n+\n+  test \"unathenticated user is redirected to login page when they try checkout\" do","path":"test/integration/unathenticated_user_security_test.rb","position":37,"original_position":37,"commit_id":"e261f4ca611ce28bd11524e6cbdb3e6d8a40f035","original_commit_id":"e261f4ca611ce28bd11524e6cbdb3e6d8a40f035","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-11-14T18:45:07Z","updated_at":"2015-11-14T18:45:07Z","html_url":"https://github.com/toriejw/global-pursuit/pull/48#discussion_r44861946","pull_request_url":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/toriejw/global-pursuit/pulls/comments/44861946"},"html":{"href":"https://github.com/toriejw/global-pursuit/pull/48#discussion_r44861946"},"pull_request":{"href":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48","id":50729258,"html_url":"https://github.com/toriejw/global-pursuit/pull/48","diff_url":"https://github.com/toriejw/global-pursuit/pull/48.diff","patch_url":"https://github.com/toriejw/global-pursuit/pull/48.patch","issue_url":"https://api.github.com/repos/toriejw/global-pursuit/issues/48","number":48,"state":"open","locked":false,"title":"Closes 19 - unathenticated user security","user":{"login":"acareaga","id":2416316,"avatar_url":"https://avatars.githubusercontent.com/u/2416316?v=3","gravatar_id":"","url":"https://api.github.com/users/acareaga","html_url":"https://github.com/acareaga","followers_url":"https://api.github.com/users/acareaga/followers","following_url":"https://api.github.com/users/acareaga/following{/other_user}","gists_url":"https://api.github.com/users/acareaga/gists{/gist_id}","starred_url":"https://api.github.com/users/acareaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acareaga/subscriptions","organizations_url":"https://api.github.com/users/acareaga/orgs","repos_url":"https://api.github.com/users/acareaga/repos","events_url":"https://api.github.com/users/acareaga/events{/privacy}","received_events_url":"https://api.github.com/users/acareaga/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-14T18:45:01Z","updated_at":"2015-11-14T18:45:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82bf419e2890497bc216fc2359d90a2b6a86bf77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48/commits","review_comments_url":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48/comments","review_comment_url":"https://api.github.com/repos/toriejw/global-pursuit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toriejw/global-pursuit/issues/48/comments","statuses_url":"https://api.github.com/repos/toriejw/global-pursuit/statuses/e261f4ca611ce28bd11524e6cbdb3e6d8a40f035","head":{"label":"toriejw:19-unathenticated-user-security","ref":"19-unathenticated-user-security","sha":"e261f4ca611ce28bd11524e6cbdb3e6d8a40f035","user":{"login":"toriejw","id":8861750,"avatar_url":"https://avatars.githubusercontent.com/u/8861750?v=3","gravatar_id":"","url":"https://api.github.com/users/toriejw","html_url":"https://github.com/toriejw","followers_url":"https://api.github.com/users/toriejw/followers","following_url":"https://api.github.com/users/toriejw/following{/other_user}","gists_url":"https://api.github.com/users/toriejw/gists{/gist_id}","starred_url":"https://api.github.com/users/toriejw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toriejw/subscriptions","organizations_url":"https://api.github.com/users/toriejw/orgs","repos_url":"https://api.github.com/users/toriejw/repos","events_url":"https://api.github.com/users/toriejw/events{/privacy}","received_events_url":"https://api.github.com/users/toriejw/received_events","type":"User","site_admin":false},"repo":{"id":45855752,"name":"global-pursuit","full_name":"toriejw/global-pursuit","owner":{"login":"toriejw","id":8861750,"avatar_url":"https://avatars.githubusercontent.com/u/8861750?v=3","gravatar_id":"","url":"https://api.github.com/users/toriejw","html_url":"https://github.com/toriejw","followers_url":"https://api.github.com/users/toriejw/followers","following_url":"https://api.github.com/users/toriejw/following{/other_user}","gists_url":"https://api.github.com/users/toriejw/gists{/gist_id}","starred_url":"https://api.github.com/users/toriejw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toriejw/subscriptions","organizations_url":"https://api.github.com/users/toriejw/orgs","repos_url":"https://api.github.com/users/toriejw/repos","events_url":"https://api.github.com/users/toriejw/events{/privacy}","received_events_url":"https://api.github.com/users/toriejw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toriejw/global-pursuit","description":"","fork":false,"url":"https://api.github.com/repos/toriejw/global-pursuit","forks_url":"https://api.github.com/repos/toriejw/global-pursuit/forks","keys_url":"https://api.github.com/repos/toriejw/global-pursuit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toriejw/global-pursuit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toriejw/global-pursuit/teams","hooks_url":"https://api.github.com/repos/toriejw/global-pursuit/hooks","issue_events_url":"https://api.github.com/repos/toriejw/global-pursuit/issues/events{/number}","events_url":"https://api.github.com/repos/toriejw/global-pursuit/events","assignees_url":"https://api.github.com/repos/toriejw/global-pursuit/assignees{/user}","branches_url":"https://api.github.com/repos/toriejw/global-pursuit/branches{/branch}","tags_url":"https://api.github.com/repos/toriejw/global-pursuit/tags","blobs_url":"https://api.github.com/repos/toriejw/global-pursuit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toriejw/global-pursuit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toriejw/global-pursuit/git/refs{/sha}","trees_url":"https://api.github.com/repos/toriejw/global-pursuit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toriejw/global-pursuit/statuses/{sha}","languages_url":"https://api.github.com/repos/toriejw/global-pursuit/languages","stargazers_url":"https://api.github.com/repos/toriejw/global-pursuit/stargazers","contributors_url":"https://api.github.com/repos/toriejw/global-pursuit/contributors","subscribers_url":"https://api.github.com/repos/toriejw/global-pursuit/subscribers","subscription_url":"https://api.github.com/repos/toriejw/global-pursuit/subscription","commits_url":"https://api.github.com/repos/toriejw/global-pursuit/commits{/sha}","git_commits_url":"https://api.github.com/repos/toriejw/global-pursuit/git/commits{/sha}","comments_url":"https://api.github.com/repos/toriejw/global-pursuit/comments{/number}","issue_comment_url":"https://api.github.com/repos/toriejw/global-pursuit/issues/comments{/number}","contents_url":"https://api.github.com/repos/toriejw/global-pursuit/contents/{+path}","compare_url":"https://api.github.com/repos/toriejw/global-pursuit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toriejw/global-pursuit/merges","archive_url":"https://api.github.com/repos/toriejw/global-pursuit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toriejw/global-pursuit/downloads","issues_url":"https://api.github.com/repos/toriejw/global-pursuit/issues{/number}","pulls_url":"https://api.github.com/repos/toriejw/global-pursuit/pulls{/number}","milestones_url":"https://api.github.com/repos/toriejw/global-pursuit/milestones{/number}","notifications_url":"https://api.github.com/repos/toriejw/global-pursuit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toriejw/global-pursuit/labels{/name}","releases_url":"https://api.github.com/repos/toriejw/global-pursuit/releases{/id}","created_at":"2015-11-09T17:50:01Z","updated_at":"2015-11-10T00:56:24Z","pushed_at":"2015-11-14T18:45:01Z","git_url":"git://github.com/toriejw/global-pursuit.git","ssh_url":"git@github.com:toriejw/global-pursuit.git","clone_url":"https://github.com/toriejw/global-pursuit.git","svn_url":"https://github.com/toriejw/global-pursuit","homepage":null,"size":2248,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"toriejw:master","ref":"master","sha":"fac355840dac58bba4ae9a812111cfbfd38c1df6","user":{"login":"toriejw","id":8861750,"avatar_url":"https://avatars.githubusercontent.com/u/8861750?v=3","gravatar_id":"","url":"https://api.github.com/users/toriejw","html_url":"https://github.com/toriejw","followers_url":"https://api.github.com/users/toriejw/followers","following_url":"https://api.github.com/users/toriejw/following{/other_user}","gists_url":"https://api.github.com/users/toriejw/gists{/gist_id}","starred_url":"https://api.github.com/users/toriejw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toriejw/subscriptions","organizations_url":"https://api.github.com/users/toriejw/orgs","repos_url":"https://api.github.com/users/toriejw/repos","events_url":"https://api.github.com/users/toriejw/events{/privacy}","received_events_url":"https://api.github.com/users/toriejw/received_events","type":"User","site_admin":false},"repo":{"id":45855752,"name":"global-pursuit","full_name":"toriejw/global-pursuit","owner":{"login":"toriejw","id":8861750,"avatar_url":"https://avatars.githubusercontent.com/u/8861750?v=3","gravatar_id":"","url":"https://api.github.com/users/toriejw","html_url":"https://github.com/toriejw","followers_url":"https://api.github.com/users/toriejw/followers","following_url":"https://api.github.com/users/toriejw/following{/other_user}","gists_url":"https://api.github.com/users/toriejw/gists{/gist_id}","starred_url":"https://api.github.com/users/toriejw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toriejw/subscriptions","organizations_url":"https://api.github.com/users/toriejw/orgs","repos_url":"https://api.github.com/users/toriejw/repos","events_url":"https://api.github.com/users/toriejw/events{/privacy}","received_events_url":"https://api.github.com/users/toriejw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toriejw/global-pursuit","description":"","fork":false,"url":"https://api.github.com/repos/toriejw/global-pursuit","forks_url":"https://api.github.com/repos/toriejw/global-pursuit/forks","keys_url":"https://api.github.com/repos/toriejw/global-pursuit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toriejw/global-pursuit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toriejw/global-pursuit/teams","hooks_url":"https://api.github.com/repos/toriejw/global-pursuit/hooks","issue_events_url":"https://api.github.com/repos/toriejw/global-pursuit/issues/events{/number}","events_url":"https://api.github.com/repos/toriejw/global-pursuit/events","assignees_url":"https://api.github.com/repos/toriejw/global-pursuit/assignees{/user}","branches_url":"https://api.github.com/repos/toriejw/global-pursuit/branches{/branch}","tags_url":"https://api.github.com/repos/toriejw/global-pursuit/tags","blobs_url":"https://api.github.com/repos/toriejw/global-pursuit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toriejw/global-pursuit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toriejw/global-pursuit/git/refs{/sha}","trees_url":"https://api.github.com/repos/toriejw/global-pursuit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toriejw/global-pursuit/statuses/{sha}","languages_url":"https://api.github.com/repos/toriejw/global-pursuit/languages","stargazers_url":"https://api.github.com/repos/toriejw/global-pursuit/stargazers","contributors_url":"https://api.github.com/repos/toriejw/global-pursuit/contributors","subscribers_url":"https://api.github.com/repos/toriejw/global-pursuit/subscribers","subscription_url":"https://api.github.com/repos/toriejw/global-pursuit/subscription","commits_url":"https://api.github.com/repos/toriejw/global-pursuit/commits{/sha}","git_commits_url":"https://api.github.com/repos/toriejw/global-pursuit/git/commits{/sha}","comments_url":"https://api.github.com/repos/toriejw/global-pursuit/comments{/number}","issue_comment_url":"https://api.github.com/repos/toriejw/global-pursuit/issues/comments{/number}","contents_url":"https://api.github.com/repos/toriejw/global-pursuit/contents/{+path}","compare_url":"https://api.github.com/repos/toriejw/global-pursuit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toriejw/global-pursuit/merges","archive_url":"https://api.github.com/repos/toriejw/global-pursuit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toriejw/global-pursuit/downloads","issues_url":"https://api.github.com/repos/toriejw/global-pursuit/issues{/number}","pulls_url":"https://api.github.com/repos/toriejw/global-pursuit/pulls{/number}","milestones_url":"https://api.github.com/repos/toriejw/global-pursuit/milestones{/number}","notifications_url":"https://api.github.com/repos/toriejw/global-pursuit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toriejw/global-pursuit/labels{/name}","releases_url":"https://api.github.com/repos/toriejw/global-pursuit/releases{/id}","created_at":"2015-11-09T17:50:01Z","updated_at":"2015-11-10T00:56:24Z","pushed_at":"2015-11-14T18:45:01Z","git_url":"git://github.com/toriejw/global-pursuit.git","ssh_url":"git@github.com:toriejw/global-pursuit.git","clone_url":"https://github.com/toriejw/global-pursuit.git","svn_url":"https://github.com/toriejw/global-pursuit","homepage":null,"size":2248,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48"},"html":{"href":"https://github.com/toriejw/global-pursuit/pull/48"},"issue":{"href":"https://api.github.com/repos/toriejw/global-pursuit/issues/48"},"comments":{"href":"https://api.github.com/repos/toriejw/global-pursuit/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/toriejw/global-pursuit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toriejw/global-pursuit/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/toriejw/global-pursuit/statuses/e261f4ca611ce28bd11524e6cbdb3e6d8a40f035"}}}}