{"action":"created","comment":{"url":"https://api.github.com/repos/its-succ/rabbit-server/pulls/comments/58156402","id":58156402,"diff_hunk":"@@ -5,12 +5,19 @@ var Card = require('../models/Card')\n \n describe('API /api/cards', () => {\n   before(done => {\n-    // 事前にコレクションを空にしておく\n-    mongoose.connection.on('connected', () => {\n+    const func = () => {","path":"test/cards.js","position":6,"original_position":6,"commit_id":"b791ee3c37a76fe40695f518605bac11b01dfd13","original_commit_id":"b791ee3c37a76fe40695f518605bac11b01dfd13","user":{"login":"potatosh","id":894840,"avatar_url":"https://avatars.githubusercontent.com/u/894840?v=3","gravatar_id":"","url":"https://api.github.com/users/potatosh","html_url":"https://github.com/potatosh","followers_url":"https://api.github.com/users/potatosh/followers","following_url":"https://api.github.com/users/potatosh/following{/other_user}","gists_url":"https://api.github.com/users/potatosh/gists{/gist_id}","starred_url":"https://api.github.com/users/potatosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potatosh/subscriptions","organizations_url":"https://api.github.com/users/potatosh/orgs","repos_url":"https://api.github.com/users/potatosh/repos","events_url":"https://api.github.com/users/potatosh/events{/privacy}","received_events_url":"https://api.github.com/users/potatosh/received_events","type":"User","site_admin":false},"body":"あ、19行目でfunc使ってるの気づきませんでした・・・。なるほど。","created_at":"2016-04-01T02:46:58Z","updated_at":"2016-04-01T02:46:58Z","html_url":"https://github.com/its-succ/rabbit-server/pull/41#discussion_r58156402","pull_request_url":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/its-succ/rabbit-server/pulls/comments/58156402"},"html":{"href":"https://github.com/its-succ/rabbit-server/pull/41#discussion_r58156402"},"pull_request":{"href":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41","id":64149583,"html_url":"https://github.com/its-succ/rabbit-server/pull/41","diff_url":"https://github.com/its-succ/rabbit-server/pull/41.diff","patch_url":"https://github.com/its-succ/rabbit-server/pull/41.patch","issue_url":"https://api.github.com/repos/its-succ/rabbit-server/issues/41","number":41,"state":"open","locked":false,"title":"db接続状態をチェックするよう修正した","user":{"login":"sakai-y","id":10514428,"avatar_url":"https://avatars.githubusercontent.com/u/10514428?v=3","gravatar_id":"","url":"https://api.github.com/users/sakai-y","html_url":"https://github.com/sakai-y","followers_url":"https://api.github.com/users/sakai-y/followers","following_url":"https://api.github.com/users/sakai-y/following{/other_user}","gists_url":"https://api.github.com/users/sakai-y/gists{/gist_id}","starred_url":"https://api.github.com/users/sakai-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakai-y/subscriptions","organizations_url":"https://api.github.com/users/sakai-y/orgs","repos_url":"https://api.github.com/users/sakai-y/repos","events_url":"https://api.github.com/users/sakai-y/events{/privacy}","received_events_url":"https://api.github.com/users/sakai-y/received_events","type":"User","site_admin":false},"body":"単体テストの`before`にて、無条件に`mongoose`の`connected`を待ってしまうと、既に接続済みの場合に先に進まなくなる問題を修正しました。","created_at":"2016-03-25T10:18:11Z","updated_at":"2016-04-01T02:46:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08dc58059182266bb504f0e999f7498059bc5491","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41/commits","review_comments_url":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41/comments","review_comment_url":"https://api.github.com/repos/its-succ/rabbit-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/its-succ/rabbit-server/issues/41/comments","statuses_url":"https://api.github.com/repos/its-succ/rabbit-server/statuses/b791ee3c37a76fe40695f518605bac11b01dfd13","head":{"label":"its-succ:improve_test_before_process","ref":"improve_test_before_process","sha":"b791ee3c37a76fe40695f518605bac11b01dfd13","user":{"login":"its-succ","id":11204761,"avatar_url":"https://avatars.githubusercontent.com/u/11204761?v=3","gravatar_id":"","url":"https://api.github.com/users/its-succ","html_url":"https://github.com/its-succ","followers_url":"https://api.github.com/users/its-succ/followers","following_url":"https://api.github.com/users/its-succ/following{/other_user}","gists_url":"https://api.github.com/users/its-succ/gists{/gist_id}","starred_url":"https://api.github.com/users/its-succ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/its-succ/subscriptions","organizations_url":"https://api.github.com/users/its-succ/orgs","repos_url":"https://api.github.com/users/its-succ/repos","events_url":"https://api.github.com/users/its-succ/events{/privacy}","received_events_url":"https://api.github.com/users/its-succ/received_events","type":"Organization","site_admin":false},"repo":{"id":42282256,"name":"rabbit-server","full_name":"its-succ/rabbit-server","owner":{"login":"its-succ","id":11204761,"avatar_url":"https://avatars.githubusercontent.com/u/11204761?v=3","gravatar_id":"","url":"https://api.github.com/users/its-succ","html_url":"https://github.com/its-succ","followers_url":"https://api.github.com/users/its-succ/followers","following_url":"https://api.github.com/users/its-succ/following{/other_user}","gists_url":"https://api.github.com/users/its-succ/gists{/gist_id}","starred_url":"https://api.github.com/users/its-succ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/its-succ/subscriptions","organizations_url":"https://api.github.com/users/its-succ/orgs","repos_url":"https://api.github.com/users/its-succ/repos","events_url":"https://api.github.com/users/its-succ/events{/privacy}","received_events_url":"https://api.github.com/users/its-succ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/its-succ/rabbit-server","description":"","fork":false,"url":"https://api.github.com/repos/its-succ/rabbit-server","forks_url":"https://api.github.com/repos/its-succ/rabbit-server/forks","keys_url":"https://api.github.com/repos/its-succ/rabbit-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/its-succ/rabbit-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/its-succ/rabbit-server/teams","hooks_url":"https://api.github.com/repos/its-succ/rabbit-server/hooks","issue_events_url":"https://api.github.com/repos/its-succ/rabbit-server/issues/events{/number}","events_url":"https://api.github.com/repos/its-succ/rabbit-server/events","assignees_url":"https://api.github.com/repos/its-succ/rabbit-server/assignees{/user}","branches_url":"https://api.github.com/repos/its-succ/rabbit-server/branches{/branch}","tags_url":"https://api.github.com/repos/its-succ/rabbit-server/tags","blobs_url":"https://api.github.com/repos/its-succ/rabbit-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/its-succ/rabbit-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/its-succ/rabbit-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/its-succ/rabbit-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/its-succ/rabbit-server/statuses/{sha}","languages_url":"https://api.github.com/repos/its-succ/rabbit-server/languages","stargazers_url":"https://api.github.com/repos/its-succ/rabbit-server/stargazers","contributors_url":"https://api.github.com/repos/its-succ/rabbit-server/contributors","subscribers_url":"https://api.github.com/repos/its-succ/rabbit-server/subscribers","subscription_url":"https://api.github.com/repos/its-succ/rabbit-server/subscription","commits_url":"https://api.github.com/repos/its-succ/rabbit-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/its-succ/rabbit-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/its-succ/rabbit-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/its-succ/rabbit-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/its-succ/rabbit-server/contents/{+path}","compare_url":"https://api.github.com/repos/its-succ/rabbit-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/its-succ/rabbit-server/merges","archive_url":"https://api.github.com/repos/its-succ/rabbit-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/its-succ/rabbit-server/downloads","issues_url":"https://api.github.com/repos/its-succ/rabbit-server/issues{/number}","pulls_url":"https://api.github.com/repos/its-succ/rabbit-server/pulls{/number}","milestones_url":"https://api.github.com/repos/its-succ/rabbit-server/milestones{/number}","notifications_url":"https://api.github.com/repos/its-succ/rabbit-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/its-succ/rabbit-server/labels{/name}","releases_url":"https://api.github.com/repos/its-succ/rabbit-server/releases{/id}","deployments_url":"https://api.github.com/repos/its-succ/rabbit-server/deployments","created_at":"2015-09-11T02:17:21Z","updated_at":"2016-01-20T03:31:36Z","pushed_at":"2016-03-29T22:14:35Z","git_url":"git://github.com/its-succ/rabbit-server.git","ssh_url":"git@github.com:its-succ/rabbit-server.git","clone_url":"https://github.com/its-succ/rabbit-server.git","svn_url":"https://github.com/its-succ/rabbit-server","homepage":null,"size":55,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"its-succ:master","ref":"master","sha":"ee793ee080a3a7aff00d8804ea67e5513cf43ef9","user":{"login":"its-succ","id":11204761,"avatar_url":"https://avatars.githubusercontent.com/u/11204761?v=3","gravatar_id":"","url":"https://api.github.com/users/its-succ","html_url":"https://github.com/its-succ","followers_url":"https://api.github.com/users/its-succ/followers","following_url":"https://api.github.com/users/its-succ/following{/other_user}","gists_url":"https://api.github.com/users/its-succ/gists{/gist_id}","starred_url":"https://api.github.com/users/its-succ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/its-succ/subscriptions","organizations_url":"https://api.github.com/users/its-succ/orgs","repos_url":"https://api.github.com/users/its-succ/repos","events_url":"https://api.github.com/users/its-succ/events{/privacy}","received_events_url":"https://api.github.com/users/its-succ/received_events","type":"Organization","site_admin":false},"repo":{"id":42282256,"name":"rabbit-server","full_name":"its-succ/rabbit-server","owner":{"login":"its-succ","id":11204761,"avatar_url":"https://avatars.githubusercontent.com/u/11204761?v=3","gravatar_id":"","url":"https://api.github.com/users/its-succ","html_url":"https://github.com/its-succ","followers_url":"https://api.github.com/users/its-succ/followers","following_url":"https://api.github.com/users/its-succ/following{/other_user}","gists_url":"https://api.github.com/users/its-succ/gists{/gist_id}","starred_url":"https://api.github.com/users/its-succ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/its-succ/subscriptions","organizations_url":"https://api.github.com/users/its-succ/orgs","repos_url":"https://api.github.com/users/its-succ/repos","events_url":"https://api.github.com/users/its-succ/events{/privacy}","received_events_url":"https://api.github.com/users/its-succ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/its-succ/rabbit-server","description":"","fork":false,"url":"https://api.github.com/repos/its-succ/rabbit-server","forks_url":"https://api.github.com/repos/its-succ/rabbit-server/forks","keys_url":"https://api.github.com/repos/its-succ/rabbit-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/its-succ/rabbit-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/its-succ/rabbit-server/teams","hooks_url":"https://api.github.com/repos/its-succ/rabbit-server/hooks","issue_events_url":"https://api.github.com/repos/its-succ/rabbit-server/issues/events{/number}","events_url":"https://api.github.com/repos/its-succ/rabbit-server/events","assignees_url":"https://api.github.com/repos/its-succ/rabbit-server/assignees{/user}","branches_url":"https://api.github.com/repos/its-succ/rabbit-server/branches{/branch}","tags_url":"https://api.github.com/repos/its-succ/rabbit-server/tags","blobs_url":"https://api.github.com/repos/its-succ/rabbit-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/its-succ/rabbit-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/its-succ/rabbit-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/its-succ/rabbit-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/its-succ/rabbit-server/statuses/{sha}","languages_url":"https://api.github.com/repos/its-succ/rabbit-server/languages","stargazers_url":"https://api.github.com/repos/its-succ/rabbit-server/stargazers","contributors_url":"https://api.github.com/repos/its-succ/rabbit-server/contributors","subscribers_url":"https://api.github.com/repos/its-succ/rabbit-server/subscribers","subscription_url":"https://api.github.com/repos/its-succ/rabbit-server/subscription","commits_url":"https://api.github.com/repos/its-succ/rabbit-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/its-succ/rabbit-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/its-succ/rabbit-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/its-succ/rabbit-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/its-succ/rabbit-server/contents/{+path}","compare_url":"https://api.github.com/repos/its-succ/rabbit-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/its-succ/rabbit-server/merges","archive_url":"https://api.github.com/repos/its-succ/rabbit-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/its-succ/rabbit-server/downloads","issues_url":"https://api.github.com/repos/its-succ/rabbit-server/issues{/number}","pulls_url":"https://api.github.com/repos/its-succ/rabbit-server/pulls{/number}","milestones_url":"https://api.github.com/repos/its-succ/rabbit-server/milestones{/number}","notifications_url":"https://api.github.com/repos/its-succ/rabbit-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/its-succ/rabbit-server/labels{/name}","releases_url":"https://api.github.com/repos/its-succ/rabbit-server/releases{/id}","deployments_url":"https://api.github.com/repos/its-succ/rabbit-server/deployments","created_at":"2015-09-11T02:17:21Z","updated_at":"2016-01-20T03:31:36Z","pushed_at":"2016-03-29T22:14:35Z","git_url":"git://github.com/its-succ/rabbit-server.git","ssh_url":"git@github.com:its-succ/rabbit-server.git","clone_url":"https://github.com/its-succ/rabbit-server.git","svn_url":"https://github.com/its-succ/rabbit-server","homepage":null,"size":55,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41"},"html":{"href":"https://github.com/its-succ/rabbit-server/pull/41"},"issue":{"href":"https://api.github.com/repos/its-succ/rabbit-server/issues/41"},"comments":{"href":"https://api.github.com/repos/its-succ/rabbit-server/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/its-succ/rabbit-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/its-succ/rabbit-server/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/its-succ/rabbit-server/statuses/b791ee3c37a76fe40695f518605bac11b01dfd13"}}}}