{"action":"created","comment":{"url":"https://api.github.com/repos/mikedao/dinner_dash/pulls/comments/23584438","id":23584438,"diff_hunk":"@@ -14,6 +18,10 @@\n \n     it \"has an editing link\" do\n       create(:category)\n+      user = create(:admin)\n+      allow_any_instance_of(ApplicationController). to receive(:current_user).\n+                                                  and_return(user)\n+\n ","path":"spec/integration/edit_category_spec.rb","position":19,"original_position":19,"commit_id":"a5cd9ba81f42537aebd72d17c68eac860d5d0ef5","original_commit_id":"a5cd9ba81f42537aebd72d17c68eac860d5d0ef5","user":{"login":"EmilyMB","id":8007635,"avatar_url":"https://avatars.githubusercontent.com/u/8007635?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilyMB","html_url":"https://github.com/EmilyMB","followers_url":"https://api.github.com/users/EmilyMB/followers","following_url":"https://api.github.com/users/EmilyMB/following{/other_user}","gists_url":"https://api.github.com/users/EmilyMB/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilyMB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilyMB/subscriptions","organizations_url":"https://api.github.com/users/EmilyMB/orgs","repos_url":"https://api.github.com/users/EmilyMB/repos","events_url":"https://api.github.com/users/EmilyMB/events{/privacy}","received_events_url":"https://api.github.com/users/EmilyMB/received_events","type":"User","site_admin":false},"body":"Extra line here?","created_at":"2015-01-27T03:04:02Z","updated_at":"2015-01-27T03:04:02Z","html_url":"https://github.com/mikedao/dinner_dash/pull/158#discussion_r23584438","pull_request_url":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/mikedao/dinner_dash/pulls/comments/23584438"},"html":{"href":"https://github.com/mikedao/dinner_dash/pull/158#discussion_r23584438"},"pull_request":{"href":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158","id":28078844,"html_url":"https://github.com/mikedao/dinner_dash/pull/158","diff_url":"https://github.com/mikedao/dinner_dash/pull/158.diff","patch_url":"https://github.com/mikedao/dinner_dash/pull/158.patch","issue_url":"https://api.github.com/repos/mikedao/dinner_dash/issues/158","number":158,"state":"open","locked":false,"title":"added admin ability to add categories closes #158","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"body":"Added the ability for an admin to add categories.\r\n\r\nBecause I made it for an admin to add them, it broke the edit category tests, which I modified to let only admin edit categories.\r\n\r\nI also changed the admin menu bar link from a placeholder to the categories index.","created_at":"2015-01-27T02:23:18Z","updated_at":"2015-01-27T03:04:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cedf0c295cffb401c771cc50aae4f08dc58e9cf","assignee":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158/commits","review_comments_url":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158/comments","review_comment_url":"https://api.github.com/repos/mikedao/dinner_dash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mikedao/dinner_dash/issues/158/comments","statuses_url":"https://api.github.com/repos/mikedao/dinner_dash/statuses/a5cd9ba81f42537aebd72d17c68eac860d5d0ef5","head":{"label":"mikedao:admin_can_add_categories_101","ref":"admin_can_add_categories_101","sha":"a5cd9ba81f42537aebd72d17c68eac860d5d0ef5","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"repo":{"id":29539006,"name":"dinner_dash","full_name":"mikedao/dinner_dash","owner":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedao/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/mikedao/dinner_dash","forks_url":"https://api.github.com/repos/mikedao/dinner_dash/forks","keys_url":"https://api.github.com/repos/mikedao/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedao/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedao/dinner_dash/teams","hooks_url":"https://api.github.com/repos/mikedao/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/mikedao/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/mikedao/dinner_dash/events","assignees_url":"https://api.github.com/repos/mikedao/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/mikedao/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/mikedao/dinner_dash/tags","blobs_url":"https://api.github.com/repos/mikedao/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedao/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedao/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedao/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedao/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedao/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/mikedao/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/mikedao/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/mikedao/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/mikedao/dinner_dash/subscription","commits_url":"https://api.github.com/repos/mikedao/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedao/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedao/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedao/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/mikedao/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/mikedao/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedao/dinner_dash/merges","archive_url":"https://api.github.com/repos/mikedao/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedao/dinner_dash/downloads","issues_url":"https://api.github.com/repos/mikedao/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/mikedao/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedao/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedao/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedao/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/mikedao/dinner_dash/releases{/id}","created_at":"2015-01-20T16:21:23Z","updated_at":"2015-01-27T02:08:41Z","pushed_at":"2015-01-27T02:24:15Z","git_url":"git://github.com/mikedao/dinner_dash.git","ssh_url":"git@github.com:mikedao/dinner_dash.git","clone_url":"https://github.com/mikedao/dinner_dash.git","svn_url":"https://github.com/mikedao/dinner_dash","homepage":null,"size":3599,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":26,"forks":1,"open_issues":26,"watchers":0,"default_branch":"master"}},"base":{"label":"mikedao:master","ref":"master","sha":"4623e8c4efb5a308d549ea25d40cc9850af6ea47","user":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"repo":{"id":29539006,"name":"dinner_dash","full_name":"mikedao/dinner_dash","owner":{"login":"mikedao","id":3011748,"avatar_url":"https://avatars.githubusercontent.com/u/3011748?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedao","html_url":"https://github.com/mikedao","followers_url":"https://api.github.com/users/mikedao/followers","following_url":"https://api.github.com/users/mikedao/following{/other_user}","gists_url":"https://api.github.com/users/mikedao/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedao/subscriptions","organizations_url":"https://api.github.com/users/mikedao/orgs","repos_url":"https://api.github.com/users/mikedao/repos","events_url":"https://api.github.com/users/mikedao/events{/privacy}","received_events_url":"https://api.github.com/users/mikedao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedao/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/mikedao/dinner_dash","forks_url":"https://api.github.com/repos/mikedao/dinner_dash/forks","keys_url":"https://api.github.com/repos/mikedao/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedao/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedao/dinner_dash/teams","hooks_url":"https://api.github.com/repos/mikedao/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/mikedao/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/mikedao/dinner_dash/events","assignees_url":"https://api.github.com/repos/mikedao/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/mikedao/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/mikedao/dinner_dash/tags","blobs_url":"https://api.github.com/repos/mikedao/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedao/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedao/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedao/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedao/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedao/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/mikedao/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/mikedao/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/mikedao/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/mikedao/dinner_dash/subscription","commits_url":"https://api.github.com/repos/mikedao/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedao/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedao/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedao/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/mikedao/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/mikedao/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedao/dinner_dash/merges","archive_url":"https://api.github.com/repos/mikedao/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedao/dinner_dash/downloads","issues_url":"https://api.github.com/repos/mikedao/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/mikedao/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedao/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedao/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedao/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/mikedao/dinner_dash/releases{/id}","created_at":"2015-01-20T16:21:23Z","updated_at":"2015-01-27T02:08:41Z","pushed_at":"2015-01-27T02:24:15Z","git_url":"git://github.com/mikedao/dinner_dash.git","ssh_url":"git@github.com:mikedao/dinner_dash.git","clone_url":"https://github.com/mikedao/dinner_dash.git","svn_url":"https://github.com/mikedao/dinner_dash","homepage":null,"size":3599,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":26,"forks":1,"open_issues":26,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158"},"html":{"href":"https://github.com/mikedao/dinner_dash/pull/158"},"issue":{"href":"https://api.github.com/repos/mikedao/dinner_dash/issues/158"},"comments":{"href":"https://api.github.com/repos/mikedao/dinner_dash/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/mikedao/dinner_dash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mikedao/dinner_dash/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/mikedao/dinner_dash/statuses/a5cd9ba81f42537aebd72d17c68eac860d5d0ef5"}}}}