{"action":"created","comment":{"url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/comments/49557659","id":49557659,"diff_hunk":"@@ -0,0 +1,30 @@\n+describe('Service: Document Service', function() {\n+  // new instance of the module\n+  beforeEach(angular.mock.module('frodocms'));\n+\n+  var $http, Document;\n+\n+  beforeEach(angular.mock.inject(function($injector) {\n+    $http = $injector.get('$http');\n+    Document = $injector.get('Document');\n+    spyOn(Document, 'allDocuments').and.callThrough();\n+    spyOn(Document, 'all').and.callThrough();\n+    spyOn(Document, 'create').and.callThrough();","path":"tests/unit/client/services/document.spec.js","position":12,"original_position":12,"commit_id":"d36e8bef0144bc0003dcc63a4df815f4c16fc239","original_commit_id":"d36e8bef0144bc0003dcc63a4df815f4c16fc239","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":"'spyOn' is not defined.","created_at":"2016-01-13T07:16:41Z","updated_at":"2016-01-13T07:16:41Z","html_url":"https://github.com/andela-nmartin/frodocms/pull/6#discussion_r49557659","pull_request_url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/comments/49557659"},"html":{"href":"https://github.com/andela-nmartin/frodocms/pull/6#discussion_r49557659"},"pull_request":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/6","id":55862049,"html_url":"https://github.com/andela-nmartin/frodocms/pull/6","diff_url":"https://github.com/andela-nmartin/frodocms/pull/6.diff","patch_url":"https://github.com/andela-nmartin/frodocms/pull/6.patch","issue_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues/6","number":6,"state":"open","locked":false,"title":"Merge 'feature/tests' into '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":"2016-01-13T07:16:27Z","updated_at":"2016-01-13T07:16:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a197f1ab879947ef1deda26208e58f15c617ce9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/6/commits","review_comments_url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/6/comments","review_comment_url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues/6/comments","statuses_url":"https://api.github.com/repos/andela-nmartin/frodocms/statuses/d36e8bef0144bc0003dcc63a4df815f4c16fc239","head":{"label":"andela-nmartin:feature/tests","ref":"feature/tests","sha":"d36e8bef0144bc0003dcc63a4df815f4c16fc239","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":48978522,"name":"frodocms","full_name":"andela-nmartin/frodocms","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/frodocms","description":"https://www.pivotaltracker.com/n/projects/1499270 Document Management System ","fork":false,"url":"https://api.github.com/repos/andela-nmartin/frodocms","forks_url":"https://api.github.com/repos/andela-nmartin/frodocms/forks","keys_url":"https://api.github.com/repos/andela-nmartin/frodocms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-nmartin/frodocms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-nmartin/frodocms/teams","hooks_url":"https://api.github.com/repos/andela-nmartin/frodocms/hooks","issue_events_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues/events{/number}","events_url":"https://api.github.com/repos/andela-nmartin/frodocms/events","assignees_url":"https://api.github.com/repos/andela-nmartin/frodocms/assignees{/user}","branches_url":"https://api.github.com/repos/andela-nmartin/frodocms/branches{/branch}","tags_url":"https://api.github.com/repos/andela-nmartin/frodocms/tags","blobs_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-nmartin/frodocms/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-nmartin/frodocms/languages","stargazers_url":"https://api.github.com/repos/andela-nmartin/frodocms/stargazers","contributors_url":"https://api.github.com/repos/andela-nmartin/frodocms/contributors","subscribers_url":"https://api.github.com/repos/andela-nmartin/frodocms/subscribers","subscription_url":"https://api.github.com/repos/andela-nmartin/frodocms/subscription","commits_url":"https://api.github.com/repos/andela-nmartin/frodocms/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-nmartin/frodocms/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-nmartin/frodocms/contents/{+path}","compare_url":"https://api.github.com/repos/andela-nmartin/frodocms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-nmartin/frodocms/merges","archive_url":"https://api.github.com/repos/andela-nmartin/frodocms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-nmartin/frodocms/downloads","issues_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues{/number}","pulls_url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-nmartin/frodocms/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-nmartin/frodocms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-nmartin/frodocms/labels{/name}","releases_url":"https://api.github.com/repos/andela-nmartin/frodocms/releases{/id}","created_at":"2016-01-04T06:19:31Z","updated_at":"2016-01-07T10:33:37Z","pushed_at":"2016-01-13T07:16:27Z","git_url":"git://github.com/andela-nmartin/frodocms.git","ssh_url":"git@github.com:andela-nmartin/frodocms.git","clone_url":"https://github.com/andela-nmartin/frodocms.git","svn_url":"https://github.com/andela-nmartin/frodocms","homepage":"https://frodocms.herokuapp.com","size":2397,"stargazers_count":0,"watchers_count":0,"language":"CSS","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:develop","ref":"develop","sha":"63c302122585182f4afc2faedda5556e38d8e68f","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":48978522,"name":"frodocms","full_name":"andela-nmartin/frodocms","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/frodocms","description":"https://www.pivotaltracker.com/n/projects/1499270 Document Management System ","fork":false,"url":"https://api.github.com/repos/andela-nmartin/frodocms","forks_url":"https://api.github.com/repos/andela-nmartin/frodocms/forks","keys_url":"https://api.github.com/repos/andela-nmartin/frodocms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-nmartin/frodocms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-nmartin/frodocms/teams","hooks_url":"https://api.github.com/repos/andela-nmartin/frodocms/hooks","issue_events_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues/events{/number}","events_url":"https://api.github.com/repos/andela-nmartin/frodocms/events","assignees_url":"https://api.github.com/repos/andela-nmartin/frodocms/assignees{/user}","branches_url":"https://api.github.com/repos/andela-nmartin/frodocms/branches{/branch}","tags_url":"https://api.github.com/repos/andela-nmartin/frodocms/tags","blobs_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-nmartin/frodocms/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-nmartin/frodocms/languages","stargazers_url":"https://api.github.com/repos/andela-nmartin/frodocms/stargazers","contributors_url":"https://api.github.com/repos/andela-nmartin/frodocms/contributors","subscribers_url":"https://api.github.com/repos/andela-nmartin/frodocms/subscribers","subscription_url":"https://api.github.com/repos/andela-nmartin/frodocms/subscription","commits_url":"https://api.github.com/repos/andela-nmartin/frodocms/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-nmartin/frodocms/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-nmartin/frodocms/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-nmartin/frodocms/contents/{+path}","compare_url":"https://api.github.com/repos/andela-nmartin/frodocms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-nmartin/frodocms/merges","archive_url":"https://api.github.com/repos/andela-nmartin/frodocms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-nmartin/frodocms/downloads","issues_url":"https://api.github.com/repos/andela-nmartin/frodocms/issues{/number}","pulls_url":"https://api.github.com/repos/andela-nmartin/frodocms/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-nmartin/frodocms/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-nmartin/frodocms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-nmartin/frodocms/labels{/name}","releases_url":"https://api.github.com/repos/andela-nmartin/frodocms/releases{/id}","created_at":"2016-01-04T06:19:31Z","updated_at":"2016-01-07T10:33:37Z","pushed_at":"2016-01-13T07:16:27Z","git_url":"git://github.com/andela-nmartin/frodocms.git","ssh_url":"git@github.com:andela-nmartin/frodocms.git","clone_url":"https://github.com/andela-nmartin/frodocms.git","svn_url":"https://github.com/andela-nmartin/frodocms","homepage":"https://frodocms.herokuapp.com","size":2397,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/frodocms/pulls/6"},"html":{"href":"https://github.com/andela-nmartin/frodocms/pull/6"},"issue":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/issues/6"},"comments":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/andela-nmartin/frodocms/statuses/d36e8bef0144bc0003dcc63a4df815f4c16fc239"}}}}