{"action":"created","comment":{"url":"https://api.github.com/repos/superNazo/video_quiz/pulls/comments/62549519","id":62549519,"diff_hunk":"@@ -36,6 +45,15 @@ describe('quizzesControllers', function() {\n       scope.removeQuestion(scope.quiz.questions_attributes);\n       expect(scope.quiz.questions_attributes.length).toEqual(2);\n     });\n+\n+    it('should prevent from adding questions when questionsCounter>=10', function() {\n+      scope.quiz.questions_attributes.length = 0;\n+      for (var i = 0; i < questionsHelper.limit; i++) {","path":"spec/javascripts/angularjs_app/components/quizzes/quizzesControllers_spec.js","position":23,"original_position":23,"commit_id":"d638f60eb4c0c349add12eb640af1551a90af151","original_commit_id":"d638f60eb4c0c349add12eb640af1551a90af151","user":{"login":"vovka","id":127781,"avatar_url":"https://avatars.githubusercontent.com/u/127781?v=3","gravatar_id":"","url":"https://api.github.com/users/vovka","html_url":"https://github.com/vovka","followers_url":"https://api.github.com/users/vovka/followers","following_url":"https://api.github.com/users/vovka/following{/other_user}","gists_url":"https://api.github.com/users/vovka/gists{/gist_id}","starred_url":"https://api.github.com/users/vovka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovka/subscriptions","organizations_url":"https://api.github.com/users/vovka/orgs","repos_url":"https://api.github.com/users/vovka/repos","events_url":"https://api.github.com/users/vovka/events{/privacy}","received_events_url":"https://api.github.com/users/vovka/received_events","type":"User","site_admin":false},"body":"Use explicit value 10 instead of some variable. ","created_at":"2016-05-09T18:35:29Z","updated_at":"2016-05-09T18:35:29Z","html_url":"https://github.com/superNazo/video_quiz/pull/56#discussion_r62549519","pull_request_url":"https://api.github.com/repos/superNazo/video_quiz/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/comments/62549519"},"html":{"href":"https://github.com/superNazo/video_quiz/pull/56#discussion_r62549519"},"pull_request":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/superNazo/video_quiz/pulls/56","id":67231736,"html_url":"https://github.com/superNazo/video_quiz/pull/56","diff_url":"https://github.com/superNazo/video_quiz/pull/56.diff","patch_url":"https://github.com/superNazo/video_quiz/pull/56.patch","issue_url":"https://api.github.com/repos/superNazo/video_quiz/issues/56","number":56,"state":"open","locked":false,"title":"addQuestion button now disabled at 10 question fields","user":{"login":"brouhaha88","id":9768774,"avatar_url":"https://avatars.githubusercontent.com/u/9768774?v=3","gravatar_id":"","url":"https://api.github.com/users/brouhaha88","html_url":"https://github.com/brouhaha88","followers_url":"https://api.github.com/users/brouhaha88/followers","following_url":"https://api.github.com/users/brouhaha88/following{/other_user}","gists_url":"https://api.github.com/users/brouhaha88/gists{/gist_id}","starred_url":"https://api.github.com/users/brouhaha88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brouhaha88/subscriptions","organizations_url":"https://api.github.com/users/brouhaha88/orgs","repos_url":"https://api.github.com/users/brouhaha88/repos","events_url":"https://api.github.com/users/brouhaha88/events{/privacy}","received_events_url":"https://api.github.com/users/brouhaha88/received_events","type":"User","site_admin":false},"body":"[Link to JIRA ticket](http://ssu-jira.softserveinc.com/browse/LR-176)\r\n[Link to JIRA ticket](https://ssu-jira.softserveinc.com/browse/LR-195)\r\n\r\n### Author.\r\n\r\n- [x] I have added link to this PR to the JIRA\r\n- [x] I have logged time in JIRA.\r\n\r\n### Reviewers.\r\n\r\n- [x] @YUzhva \r\n- [ ] @anatoliiibra0155 \r\n- [ ] @vovka\r\n\r\n### Issue summary.\r\n\r\n* addQuestion button now disabled at 10 question fields\r\n* addQuestion button now displaying quantity of current question field against limit\r\n* after creating 10 question fields user is informed of reaching the limit\r\n\r\n### Testing approach.\r\n*In progress\r\n","created_at":"2016-04-20T18:03:56Z","updated_at":"2016-05-09T18:35:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08e44e8a83ee8669faad643e686a4703ee96351b","assignee":{"login":"brouhaha88","id":9768774,"avatar_url":"https://avatars.githubusercontent.com/u/9768774?v=3","gravatar_id":"","url":"https://api.github.com/users/brouhaha88","html_url":"https://github.com/brouhaha88","followers_url":"https://api.github.com/users/brouhaha88/followers","following_url":"https://api.github.com/users/brouhaha88/following{/other_user}","gists_url":"https://api.github.com/users/brouhaha88/gists{/gist_id}","starred_url":"https://api.github.com/users/brouhaha88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brouhaha88/subscriptions","organizations_url":"https://api.github.com/users/brouhaha88/orgs","repos_url":"https://api.github.com/users/brouhaha88/repos","events_url":"https://api.github.com/users/brouhaha88/events{/privacy}","received_events_url":"https://api.github.com/users/brouhaha88/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/superNazo/video_quiz/pulls/56/commits","review_comments_url":"https://api.github.com/repos/superNazo/video_quiz/pulls/56/comments","review_comment_url":"https://api.github.com/repos/superNazo/video_quiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superNazo/video_quiz/issues/56/comments","statuses_url":"https://api.github.com/repos/superNazo/video_quiz/statuses/d638f60eb4c0c349add12eb640af1551a90af151","head":{"label":"superNazo:feature/add_question_button","ref":"feature/add_question_button","sha":"d638f60eb4c0c349add12eb640af1551a90af151","user":{"login":"superNazo","id":16664775,"avatar_url":"https://avatars.githubusercontent.com/u/16664775?v=3","gravatar_id":"","url":"https://api.github.com/users/superNazo","html_url":"https://github.com/superNazo","followers_url":"https://api.github.com/users/superNazo/followers","following_url":"https://api.github.com/users/superNazo/following{/other_user}","gists_url":"https://api.github.com/users/superNazo/gists{/gist_id}","starred_url":"https://api.github.com/users/superNazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superNazo/subscriptions","organizations_url":"https://api.github.com/users/superNazo/orgs","repos_url":"https://api.github.com/users/superNazo/repos","events_url":"https://api.github.com/users/superNazo/events{/privacy}","received_events_url":"https://api.github.com/users/superNazo/received_events","type":"User","site_admin":false},"repo":{"id":53331596,"name":"video_quiz","full_name":"superNazo/video_quiz","owner":{"login":"superNazo","id":16664775,"avatar_url":"https://avatars.githubusercontent.com/u/16664775?v=3","gravatar_id":"","url":"https://api.github.com/users/superNazo","html_url":"https://github.com/superNazo","followers_url":"https://api.github.com/users/superNazo/followers","following_url":"https://api.github.com/users/superNazo/following{/other_user}","gists_url":"https://api.github.com/users/superNazo/gists{/gist_id}","starred_url":"https://api.github.com/users/superNazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superNazo/subscriptions","organizations_url":"https://api.github.com/users/superNazo/orgs","repos_url":"https://api.github.com/users/superNazo/repos","events_url":"https://api.github.com/users/superNazo/events{/privacy}","received_events_url":"https://api.github.com/users/superNazo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/superNazo/video_quiz","description":"","fork":false,"url":"https://api.github.com/repos/superNazo/video_quiz","forks_url":"https://api.github.com/repos/superNazo/video_quiz/forks","keys_url":"https://api.github.com/repos/superNazo/video_quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superNazo/video_quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superNazo/video_quiz/teams","hooks_url":"https://api.github.com/repos/superNazo/video_quiz/hooks","issue_events_url":"https://api.github.com/repos/superNazo/video_quiz/issues/events{/number}","events_url":"https://api.github.com/repos/superNazo/video_quiz/events","assignees_url":"https://api.github.com/repos/superNazo/video_quiz/assignees{/user}","branches_url":"https://api.github.com/repos/superNazo/video_quiz/branches{/branch}","tags_url":"https://api.github.com/repos/superNazo/video_quiz/tags","blobs_url":"https://api.github.com/repos/superNazo/video_quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superNazo/video_quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superNazo/video_quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/superNazo/video_quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superNazo/video_quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/superNazo/video_quiz/languages","stargazers_url":"https://api.github.com/repos/superNazo/video_quiz/stargazers","contributors_url":"https://api.github.com/repos/superNazo/video_quiz/contributors","subscribers_url":"https://api.github.com/repos/superNazo/video_quiz/subscribers","subscription_url":"https://api.github.com/repos/superNazo/video_quiz/subscription","commits_url":"https://api.github.com/repos/superNazo/video_quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/superNazo/video_quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/superNazo/video_quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/superNazo/video_quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/superNazo/video_quiz/contents/{+path}","compare_url":"https://api.github.com/repos/superNazo/video_quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superNazo/video_quiz/merges","archive_url":"https://api.github.com/repos/superNazo/video_quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superNazo/video_quiz/downloads","issues_url":"https://api.github.com/repos/superNazo/video_quiz/issues{/number}","pulls_url":"https://api.github.com/repos/superNazo/video_quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/superNazo/video_quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/superNazo/video_quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superNazo/video_quiz/labels{/name}","releases_url":"https://api.github.com/repos/superNazo/video_quiz/releases{/id}","deployments_url":"https://api.github.com/repos/superNazo/video_quiz/deployments","created_at":"2016-03-07T14:28:19Z","updated_at":"2016-03-20T16:06:51Z","pushed_at":"2016-05-08T23:49:58Z","git_url":"git://github.com/superNazo/video_quiz.git","ssh_url":"git@github.com:superNazo/video_quiz.git","clone_url":"https://github.com/superNazo/video_quiz.git","svn_url":"https://github.com/superNazo/video_quiz","homepage":null,"size":249,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"superNazo:master","ref":"master","sha":"8f2616faa003b4b8889ec2ba1fcbea58557f3a43","user":{"login":"superNazo","id":16664775,"avatar_url":"https://avatars.githubusercontent.com/u/16664775?v=3","gravatar_id":"","url":"https://api.github.com/users/superNazo","html_url":"https://github.com/superNazo","followers_url":"https://api.github.com/users/superNazo/followers","following_url":"https://api.github.com/users/superNazo/following{/other_user}","gists_url":"https://api.github.com/users/superNazo/gists{/gist_id}","starred_url":"https://api.github.com/users/superNazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superNazo/subscriptions","organizations_url":"https://api.github.com/users/superNazo/orgs","repos_url":"https://api.github.com/users/superNazo/repos","events_url":"https://api.github.com/users/superNazo/events{/privacy}","received_events_url":"https://api.github.com/users/superNazo/received_events","type":"User","site_admin":false},"repo":{"id":53331596,"name":"video_quiz","full_name":"superNazo/video_quiz","owner":{"login":"superNazo","id":16664775,"avatar_url":"https://avatars.githubusercontent.com/u/16664775?v=3","gravatar_id":"","url":"https://api.github.com/users/superNazo","html_url":"https://github.com/superNazo","followers_url":"https://api.github.com/users/superNazo/followers","following_url":"https://api.github.com/users/superNazo/following{/other_user}","gists_url":"https://api.github.com/users/superNazo/gists{/gist_id}","starred_url":"https://api.github.com/users/superNazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superNazo/subscriptions","organizations_url":"https://api.github.com/users/superNazo/orgs","repos_url":"https://api.github.com/users/superNazo/repos","events_url":"https://api.github.com/users/superNazo/events{/privacy}","received_events_url":"https://api.github.com/users/superNazo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/superNazo/video_quiz","description":"","fork":false,"url":"https://api.github.com/repos/superNazo/video_quiz","forks_url":"https://api.github.com/repos/superNazo/video_quiz/forks","keys_url":"https://api.github.com/repos/superNazo/video_quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superNazo/video_quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superNazo/video_quiz/teams","hooks_url":"https://api.github.com/repos/superNazo/video_quiz/hooks","issue_events_url":"https://api.github.com/repos/superNazo/video_quiz/issues/events{/number}","events_url":"https://api.github.com/repos/superNazo/video_quiz/events","assignees_url":"https://api.github.com/repos/superNazo/video_quiz/assignees{/user}","branches_url":"https://api.github.com/repos/superNazo/video_quiz/branches{/branch}","tags_url":"https://api.github.com/repos/superNazo/video_quiz/tags","blobs_url":"https://api.github.com/repos/superNazo/video_quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superNazo/video_quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superNazo/video_quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/superNazo/video_quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superNazo/video_quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/superNazo/video_quiz/languages","stargazers_url":"https://api.github.com/repos/superNazo/video_quiz/stargazers","contributors_url":"https://api.github.com/repos/superNazo/video_quiz/contributors","subscribers_url":"https://api.github.com/repos/superNazo/video_quiz/subscribers","subscription_url":"https://api.github.com/repos/superNazo/video_quiz/subscription","commits_url":"https://api.github.com/repos/superNazo/video_quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/superNazo/video_quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/superNazo/video_quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/superNazo/video_quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/superNazo/video_quiz/contents/{+path}","compare_url":"https://api.github.com/repos/superNazo/video_quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superNazo/video_quiz/merges","archive_url":"https://api.github.com/repos/superNazo/video_quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superNazo/video_quiz/downloads","issues_url":"https://api.github.com/repos/superNazo/video_quiz/issues{/number}","pulls_url":"https://api.github.com/repos/superNazo/video_quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/superNazo/video_quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/superNazo/video_quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superNazo/video_quiz/labels{/name}","releases_url":"https://api.github.com/repos/superNazo/video_quiz/releases{/id}","deployments_url":"https://api.github.com/repos/superNazo/video_quiz/deployments","created_at":"2016-03-07T14:28:19Z","updated_at":"2016-03-20T16:06:51Z","pushed_at":"2016-05-08T23:49:58Z","git_url":"git://github.com/superNazo/video_quiz.git","ssh_url":"git@github.com:superNazo/video_quiz.git","clone_url":"https://github.com/superNazo/video_quiz.git","svn_url":"https://github.com/superNazo/video_quiz","homepage":null,"size":249,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/56"},"html":{"href":"https://github.com/superNazo/video_quiz/pull/56"},"issue":{"href":"https://api.github.com/repos/superNazo/video_quiz/issues/56"},"comments":{"href":"https://api.github.com/repos/superNazo/video_quiz/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/superNazo/video_quiz/statuses/d638f60eb4c0c349add12eb640af1551a90af151"}}}}