{"action":"created","comment":{"url":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments/37901501","id":37901501,"diff_hunk":"@@ -16,17 +25,58 @@ describe('RiskyTimesController', function () {\n       this.saveRiskyTimes = function () {\n       };\n       this.getRiskyTimes = function () {\n-        return []\n+        return RISKY_TIMES\n+      };\n+      this.getCessationReasons = function () {\n+        return [{\n+          description: 'cessation reason description',\n+          title: 'cessation reason title'\n+        }];\n       };\n       configurationServiceSaveRiskyTimesSpy = sinon.spy(this, 'saveRiskyTimes');\n       configurationServiceGetRiskyTimesSpy = sinon.spy(this, 'getRiskyTimes');\n+      configurationServiceGetCessationReasonsSpy = sinon.spy(this, 'getCessationReasons')\n     };\n \n     $modalMock = function () {\n-      this.open\n+      this.open = function() {\n+      };\n+      $modalOpenSpy = sinon.spy(this, 'open');\n+    };\n+\n+    $windowMock = function () {","path":"test/unit/controllers/RiskyTimesControllerSpec.js","position":46,"original_position":46,"commit_id":"5967b812ce7093852284f1a3495bd3e4da86f523","original_commit_id":"5967b812ce7093852284f1a3495bd3e4da86f523","user":{"login":"ericcf","id":58693,"avatar_url":"https://avatars.githubusercontent.com/u/58693?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcf","html_url":"https://github.com/ericcf","followers_url":"https://api.github.com/users/ericcf/followers","following_url":"https://api.github.com/users/ericcf/following{/other_user}","gists_url":"https://api.github.com/users/ericcf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcf/subscriptions","organizations_url":"https://api.github.com/users/ericcf/orgs","repos_url":"https://api.github.com/users/ericcf/repos","events_url":"https://api.github.com/users/ericcf/events{/privacy}","received_events_url":"https://api.github.com/users/ericcf/received_events","type":"User","site_admin":false},"body":"Remember, you can generally provide mock services as constants instead, and just pass in an object instead of a generator function.","created_at":"2015-08-25T18:31:23Z","updated_at":"2015-08-25T18:31:23Z","html_url":"https://github.com/cbitstech/sis_app/pull/36#discussion_r37901501","pull_request_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments/37901501"},"html":{"href":"https://github.com/cbitstech/sis_app/pull/36#discussion_r37901501"},"pull_request":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/cbitstech/sis_app/pulls/36","id":43306833,"html_url":"https://github.com/cbitstech/sis_app/pull/36","diff_url":"https://github.com/cbitstech/sis_app/pull/36.diff","patch_url":"https://github.com/cbitstech/sis_app/pull/36.patch","issue_url":"https://api.github.com/repos/cbitstech/sis_app/issues/36","number":36,"state":"open","locked":false,"title":"Add risky time notifications and motivational view.","user":{"login":"eschlange","id":4666065,"avatar_url":"https://avatars.githubusercontent.com/u/4666065?v=3","gravatar_id":"","url":"https://api.github.com/users/eschlange","html_url":"https://github.com/eschlange","followers_url":"https://api.github.com/users/eschlange/followers","following_url":"https://api.github.com/users/eschlange/following{/other_user}","gists_url":"https://api.github.com/users/eschlange/gists{/gist_id}","starred_url":"https://api.github.com/users/eschlange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschlange/subscriptions","organizations_url":"https://api.github.com/users/eschlange/orgs","repos_url":"https://api.github.com/users/eschlange/repos","events_url":"https://api.github.com/users/eschlange/events{/privacy}","received_events_url":"https://api.github.com/users/eschlange/received_events","type":"User","site_admin":false},"body":"- Added risky time strategy selection and view.\r\n- Added new risky time notifications.\r\n- Updated configuration files to include new controllers.\r\n- Added spec coverage for new controllers.\r\n- Added spec coverage to existing controllers.\r\n\r\n[#99282204]","created_at":"2015-08-25T16:25:39Z","updated_at":"2015-08-25T18:31:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edc1afa4b4c2bb58935a3085aac023f9f403d956","assignee":{"login":"ericcf","id":58693,"avatar_url":"https://avatars.githubusercontent.com/u/58693?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcf","html_url":"https://github.com/ericcf","followers_url":"https://api.github.com/users/ericcf/followers","following_url":"https://api.github.com/users/ericcf/following{/other_user}","gists_url":"https://api.github.com/users/ericcf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcf/subscriptions","organizations_url":"https://api.github.com/users/ericcf/orgs","repos_url":"https://api.github.com/users/ericcf/repos","events_url":"https://api.github.com/users/ericcf/events{/privacy}","received_events_url":"https://api.github.com/users/ericcf/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/36/commits","review_comments_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/36/comments","review_comment_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cbitstech/sis_app/issues/36/comments","statuses_url":"https://api.github.com/repos/cbitstech/sis_app/statuses/5967b812ce7093852284f1a3495bd3e4da86f523","head":{"label":"cbitstech:ems-99282204","ref":"ems-99282204","sha":"5967b812ce7093852284f1a3495bd3e4da86f523","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":36821218,"name":"sis_app","full_name":"cbitstech/sis_app","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/sis_app","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/sis_app","forks_url":"https://api.github.com/repos/cbitstech/sis_app/forks","keys_url":"https://api.github.com/repos/cbitstech/sis_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/sis_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/sis_app/teams","hooks_url":"https://api.github.com/repos/cbitstech/sis_app/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/sis_app/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/sis_app/events","assignees_url":"https://api.github.com/repos/cbitstech/sis_app/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/sis_app/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/sis_app/tags","blobs_url":"https://api.github.com/repos/cbitstech/sis_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/sis_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/sis_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/sis_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/sis_app/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/sis_app/languages","stargazers_url":"https://api.github.com/repos/cbitstech/sis_app/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/sis_app/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/sis_app/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/sis_app/subscription","commits_url":"https://api.github.com/repos/cbitstech/sis_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/sis_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/sis_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/sis_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/sis_app/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/sis_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/sis_app/merges","archive_url":"https://api.github.com/repos/cbitstech/sis_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/sis_app/downloads","issues_url":"https://api.github.com/repos/cbitstech/sis_app/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/sis_app/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/sis_app/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/sis_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/sis_app/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/sis_app/releases{/id}","created_at":"2015-06-03T18:05:45Z","updated_at":"2015-06-17T18:28:40Z","pushed_at":"2015-08-25T17:33:53Z","git_url":"git://github.com/cbitstech/sis_app.git","ssh_url":"git@github.com:cbitstech/sis_app.git","clone_url":"https://github.com/cbitstech/sis_app.git","svn_url":"https://github.com/cbitstech/sis_app","homepage":null,"size":1204,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"cbitstech:master","ref":"master","sha":"c96d0d96f74d0ca59d243a39c8c0d1c346dfee37","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":36821218,"name":"sis_app","full_name":"cbitstech/sis_app","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/sis_app","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/sis_app","forks_url":"https://api.github.com/repos/cbitstech/sis_app/forks","keys_url":"https://api.github.com/repos/cbitstech/sis_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/sis_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/sis_app/teams","hooks_url":"https://api.github.com/repos/cbitstech/sis_app/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/sis_app/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/sis_app/events","assignees_url":"https://api.github.com/repos/cbitstech/sis_app/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/sis_app/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/sis_app/tags","blobs_url":"https://api.github.com/repos/cbitstech/sis_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/sis_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/sis_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/sis_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/sis_app/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/sis_app/languages","stargazers_url":"https://api.github.com/repos/cbitstech/sis_app/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/sis_app/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/sis_app/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/sis_app/subscription","commits_url":"https://api.github.com/repos/cbitstech/sis_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/sis_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/sis_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/sis_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/sis_app/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/sis_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/sis_app/merges","archive_url":"https://api.github.com/repos/cbitstech/sis_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/sis_app/downloads","issues_url":"https://api.github.com/repos/cbitstech/sis_app/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/sis_app/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/sis_app/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/sis_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/sis_app/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/sis_app/releases{/id}","created_at":"2015-06-03T18:05:45Z","updated_at":"2015-06-17T18:28:40Z","pushed_at":"2015-08-25T17:33:53Z","git_url":"git://github.com/cbitstech/sis_app.git","ssh_url":"git@github.com:cbitstech/sis_app.git","clone_url":"https://github.com/cbitstech/sis_app.git","svn_url":"https://github.com/cbitstech/sis_app","homepage":null,"size":1204,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/36"},"html":{"href":"https://github.com/cbitstech/sis_app/pull/36"},"issue":{"href":"https://api.github.com/repos/cbitstech/sis_app/issues/36"},"comments":{"href":"https://api.github.com/repos/cbitstech/sis_app/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/cbitstech/sis_app/statuses/5967b812ce7093852284f1a3495bd3e4da86f523"}}}}