{"action":"created","comment":{"url":"https://api.github.com/repos/andela-nmartin/docms2/pulls/comments/46814947","id":46814947,"diff_hunk":"@@ -21,19 +21,22 @@ describe('Roles', function() {\n         }\n       });\n   });\n-  \n-  it('validates that a new role created has a unique title', function() {\n-    expect(true).toBe(true);\n-  });\n-\n-  it('validates that all documents are returned, limited by a specified ' + \n-    'number, when getAllDocuments is called', function() {\n-    expect(true).toBe(true);\n-  });\n \n-  it('validates that all documents are returned in order of their' + \n-    ' published dates, starting from the most recent when getAllDocuments is called', function() {\n-    expect(true).toBe(true);\n+  it('validates that a new role created has a unique title', function(done) {\n+    request\n+      .post(url + '/api/users/roles')\n+      .send({\n+        id: 1,\n+        title: 'Administrator'\n+      })\n+      .end(function(err, res) {","path":"tests/roles.spec.js","position":24,"original_position":24,"commit_id":"ce756e62c32e2bd758f9c786b9f1f3274f3a7477","original_commit_id":"ce756e62c32e2bd758f9c786b9f1f3274f3a7477","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":"'res' is defined but never used.<br>'err' is defined but never used.","created_at":"2015-12-07T12:22:22Z","updated_at":"2015-12-07T12:22:22Z","html_url":"https://github.com/andela-nmartin/docms2/pull/5#discussion_r46814947","pull_request_url":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/andela-nmartin/docms2/pulls/comments/46814947"},"html":{"href":"https://github.com/andela-nmartin/docms2/pull/5#discussion_r46814947"},"pull_request":{"href":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5","id":52838103,"html_url":"https://github.com/andela-nmartin/docms2/pull/5","diff_url":"https://github.com/andela-nmartin/docms2/pull/5.diff","patch_url":"https://github.com/andela-nmartin/docms2/pull/5.patch","issue_url":"https://api.github.com/repos/andela-nmartin/docms2/issues/5","number":5,"state":"open","locked":false,"title":"Develop","user":{"login":"andela-nmartin","id":12892047,"avatar_url":"https://avatars.githubusercontent.com/u/12892047?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-nmartin","html_url":"https://github.com/andela-nmartin","followers_url":"https://api.github.com/users/andela-nmartin/followers","following_url":"https://api.github.com/users/andela-nmartin/following{/other_user}","gists_url":"https://api.github.com/users/andela-nmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-nmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-nmartin/subscriptions","organizations_url":"https://api.github.com/users/andela-nmartin/orgs","repos_url":"https://api.github.com/users/andela-nmartin/repos","events_url":"https://api.github.com/users/andela-nmartin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-nmartin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-07T12:22:10Z","updated_at":"2015-12-07T12:22:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09f5a139f57b7e0d1a49ff4cf946bdcaedf127a6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5/commits","review_comments_url":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5/comments","review_comment_url":"https://api.github.com/repos/andela-nmartin/docms2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-nmartin/docms2/issues/5/comments","statuses_url":"https://api.github.com/repos/andela-nmartin/docms2/statuses/ce756e62c32e2bd758f9c786b9f1f3274f3a7477","head":{"label":"andela-nmartin:develop","ref":"develop","sha":"ce756e62c32e2bd758f9c786b9f1f3274f3a7477","user":{"login":"andela-nmartin","id":12892047,"avatar_url":"https://avatars.githubusercontent.com/u/12892047?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-nmartin","html_url":"https://github.com/andela-nmartin","followers_url":"https://api.github.com/users/andela-nmartin/followers","following_url":"https://api.github.com/users/andela-nmartin/following{/other_user}","gists_url":"https://api.github.com/users/andela-nmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-nmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-nmartin/subscriptions","organizations_url":"https://api.github.com/users/andela-nmartin/orgs","repos_url":"https://api.github.com/users/andela-nmartin/repos","events_url":"https://api.github.com/users/andela-nmartin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-nmartin/received_events","type":"User","site_admin":false},"repo":{"id":46967491,"name":"docms2","full_name":"andela-nmartin/docms2","owner":{"login":"andela-nmartin","id":12892047,"avatar_url":"https://avatars.githubusercontent.com/u/12892047?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-nmartin","html_url":"https://github.com/andela-nmartin","followers_url":"https://api.github.com/users/andela-nmartin/followers","following_url":"https://api.github.com/users/andela-nmartin/following{/other_user}","gists_url":"https://api.github.com/users/andela-nmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-nmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-nmartin/subscriptions","organizations_url":"https://api.github.com/users/andela-nmartin/orgs","repos_url":"https://api.github.com/users/andela-nmartin/repos","events_url":"https://api.github.com/users/andela-nmartin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-nmartin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-nmartin/docms2","description":"Document Management System (Node, Express, Mongo)","fork":false,"url":"https://api.github.com/repos/andela-nmartin/docms2","forks_url":"https://api.github.com/repos/andela-nmartin/docms2/forks","keys_url":"https://api.github.com/repos/andela-nmartin/docms2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-nmartin/docms2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-nmartin/docms2/teams","hooks_url":"https://api.github.com/repos/andela-nmartin/docms2/hooks","issue_events_url":"https://api.github.com/repos/andela-nmartin/docms2/issues/events{/number}","events_url":"https://api.github.com/repos/andela-nmartin/docms2/events","assignees_url":"https://api.github.com/repos/andela-nmartin/docms2/assignees{/user}","branches_url":"https://api.github.com/repos/andela-nmartin/docms2/branches{/branch}","tags_url":"https://api.github.com/repos/andela-nmartin/docms2/tags","blobs_url":"https://api.github.com/repos/andela-nmartin/docms2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-nmartin/docms2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-nmartin/docms2/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-nmartin/docms2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-nmartin/docms2/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-nmartin/docms2/languages","stargazers_url":"https://api.github.com/repos/andela-nmartin/docms2/stargazers","contributors_url":"https://api.github.com/repos/andela-nmartin/docms2/contributors","subscribers_url":"https://api.github.com/repos/andela-nmartin/docms2/subscribers","subscription_url":"https://api.github.com/repos/andela-nmartin/docms2/subscription","commits_url":"https://api.github.com/repos/andela-nmartin/docms2/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-nmartin/docms2/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-nmartin/docms2/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-nmartin/docms2/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-nmartin/docms2/contents/{+path}","compare_url":"https://api.github.com/repos/andela-nmartin/docms2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-nmartin/docms2/merges","archive_url":"https://api.github.com/repos/andela-nmartin/docms2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-nmartin/docms2/downloads","issues_url":"https://api.github.com/repos/andela-nmartin/docms2/issues{/number}","pulls_url":"https://api.github.com/repos/andela-nmartin/docms2/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-nmartin/docms2/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-nmartin/docms2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-nmartin/docms2/labels{/name}","releases_url":"https://api.github.com/repos/andela-nmartin/docms2/releases{/id}","created_at":"2015-11-27T08:05:52Z","updated_at":"2015-12-03T13:41:50Z","pushed_at":"2015-12-07T12:22:10Z","git_url":"git://github.com/andela-nmartin/docms2.git","ssh_url":"git@github.com:andela-nmartin/docms2.git","clone_url":"https://github.com/andela-nmartin/docms2.git","svn_url":"https://github.com/andela-nmartin/docms2","homepage":null,"size":35,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"andela-nmartin:master","ref":"master","sha":"76f53372a0797c12513aa8dd366f23bd61771cf7","user":{"login":"andela-nmartin","id":12892047,"avatar_url":"https://avatars.githubusercontent.com/u/12892047?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-nmartin","html_url":"https://github.com/andela-nmartin","followers_url":"https://api.github.com/users/andela-nmartin/followers","following_url":"https://api.github.com/users/andela-nmartin/following{/other_user}","gists_url":"https://api.github.com/users/andela-nmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-nmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-nmartin/subscriptions","organizations_url":"https://api.github.com/users/andela-nmartin/orgs","repos_url":"https://api.github.com/users/andela-nmartin/repos","events_url":"https://api.github.com/users/andela-nmartin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-nmartin/received_events","type":"User","site_admin":false},"repo":{"id":46967491,"name":"docms2","full_name":"andela-nmartin/docms2","owner":{"login":"andela-nmartin","id":12892047,"avatar_url":"https://avatars.githubusercontent.com/u/12892047?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-nmartin","html_url":"https://github.com/andela-nmartin","followers_url":"https://api.github.com/users/andela-nmartin/followers","following_url":"https://api.github.com/users/andela-nmartin/following{/other_user}","gists_url":"https://api.github.com/users/andela-nmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-nmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-nmartin/subscriptions","organizations_url":"https://api.github.com/users/andela-nmartin/orgs","repos_url":"https://api.github.com/users/andela-nmartin/repos","events_url":"https://api.github.com/users/andela-nmartin/events{/privacy}","received_events_url":"https://api.github.com/users/andela-nmartin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-nmartin/docms2","description":"Document Management System (Node, Express, Mongo)","fork":false,"url":"https://api.github.com/repos/andela-nmartin/docms2","forks_url":"https://api.github.com/repos/andela-nmartin/docms2/forks","keys_url":"https://api.github.com/repos/andela-nmartin/docms2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-nmartin/docms2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-nmartin/docms2/teams","hooks_url":"https://api.github.com/repos/andela-nmartin/docms2/hooks","issue_events_url":"https://api.github.com/repos/andela-nmartin/docms2/issues/events{/number}","events_url":"https://api.github.com/repos/andela-nmartin/docms2/events","assignees_url":"https://api.github.com/repos/andela-nmartin/docms2/assignees{/user}","branches_url":"https://api.github.com/repos/andela-nmartin/docms2/branches{/branch}","tags_url":"https://api.github.com/repos/andela-nmartin/docms2/tags","blobs_url":"https://api.github.com/repos/andela-nmartin/docms2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-nmartin/docms2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-nmartin/docms2/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-nmartin/docms2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-nmartin/docms2/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-nmartin/docms2/languages","stargazers_url":"https://api.github.com/repos/andela-nmartin/docms2/stargazers","contributors_url":"https://api.github.com/repos/andela-nmartin/docms2/contributors","subscribers_url":"https://api.github.com/repos/andela-nmartin/docms2/subscribers","subscription_url":"https://api.github.com/repos/andela-nmartin/docms2/subscription","commits_url":"https://api.github.com/repos/andela-nmartin/docms2/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-nmartin/docms2/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-nmartin/docms2/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-nmartin/docms2/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-nmartin/docms2/contents/{+path}","compare_url":"https://api.github.com/repos/andela-nmartin/docms2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-nmartin/docms2/merges","archive_url":"https://api.github.com/repos/andela-nmartin/docms2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-nmartin/docms2/downloads","issues_url":"https://api.github.com/repos/andela-nmartin/docms2/issues{/number}","pulls_url":"https://api.github.com/repos/andela-nmartin/docms2/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-nmartin/docms2/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-nmartin/docms2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-nmartin/docms2/labels{/name}","releases_url":"https://api.github.com/repos/andela-nmartin/docms2/releases{/id}","created_at":"2015-11-27T08:05:52Z","updated_at":"2015-12-03T13:41:50Z","pushed_at":"2015-12-07T12:22:10Z","git_url":"git://github.com/andela-nmartin/docms2.git","ssh_url":"git@github.com:andela-nmartin/docms2.git","clone_url":"https://github.com/andela-nmartin/docms2.git","svn_url":"https://github.com/andela-nmartin/docms2","homepage":null,"size":35,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5"},"html":{"href":"https://github.com/andela-nmartin/docms2/pull/5"},"issue":{"href":"https://api.github.com/repos/andela-nmartin/docms2/issues/5"},"comments":{"href":"https://api.github.com/repos/andela-nmartin/docms2/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-nmartin/docms2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-nmartin/docms2/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/andela-nmartin/docms2/statuses/ce756e62c32e2bd758f9c786b9f1f3274f3a7477"}}}}