{"action":"created","comment":{"url":"https://api.github.com/repos/superNazo/video_quiz/pulls/comments/64150179","id":64150179,"diff_hunk":"@@ -32,4 +35,51 @@\n \n     it { should_not be_valid }\n   end\n-end\n+\n+  it 'change the current question of interview' do\n+    @quiz = Quiz.create(name: 'Example Quiz 1')\n+    @quiz.questions.create!(content: 'This is question #1', record_time_limit: 10)\n+    @quiz.questions.create!(content: 'This is question #2', record_time_limit: 20)\n+    @interview = Interview.create(quiz_id: 1, user_id: 1, current_question_id: 1, status: nil)\n+\n+    expect(@quiz.next_quiz_question(@interview.current_question_id).id).to eq(2)\n+  end\n+\n+  describe 'interviews' do\n+    before {\n+      @quiz.save\n+      @user.save","path":"spec/models/quiz_spec.rb","position":30,"original_position":30,"commit_id":"9f1d527f59221946f8aefa95e6cff6f1da23b58d","original_commit_id":"9f1d527f59221946f8aefa95e6cff6f1da23b58d","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":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Line is too long. [101/80]](https://www.codacy.com/app/vovka/video_quiz/file/2613079670/issues/source?bid=3205144&fileBranchId=3311714#l52)","created_at":"2016-05-22T13:51:46Z","updated_at":"2016-05-22T13:51:46Z","html_url":"https://github.com/superNazo/video_quiz/pull/80#discussion_r64150179","pull_request_url":"https://api.github.com/repos/superNazo/video_quiz/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/comments/64150179"},"html":{"href":"https://github.com/superNazo/video_quiz/pull/80#discussion_r64150179"},"pull_request":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/superNazo/video_quiz/pulls/80","id":70977541,"html_url":"https://github.com/superNazo/video_quiz/pull/80","diff_url":"https://github.com/superNazo/video_quiz/pull/80.diff","patch_url":"https://github.com/superNazo/video_quiz/pull/80.patch","issue_url":"https://api.github.com/repos/superNazo/video_quiz/issues/80","number":80,"state":"open","locked":false,"title":"Feature/cleanup","user":{"login":"YUzhva","id":5191620,"avatar_url":"https://avatars.githubusercontent.com/u/5191620?v=3","gravatar_id":"","url":"https://api.github.com/users/YUzhva","html_url":"https://github.com/YUzhva","followers_url":"https://api.github.com/users/YUzhva/followers","following_url":"https://api.github.com/users/YUzhva/following{/other_user}","gists_url":"https://api.github.com/users/YUzhva/gists{/gist_id}","starred_url":"https://api.github.com/users/YUzhva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YUzhva/subscriptions","organizations_url":"https://api.github.com/users/YUzhva/orgs","repos_url":"https://api.github.com/users/YUzhva/repos","events_url":"https://api.github.com/users/YUzhva/events{/privacy}","received_events_url":"https://api.github.com/users/YUzhva/received_events","type":"User","site_admin":false},"body":"[Link to JIRA ticket](https://ssu-jira.softserveinc.com/browse/LR-)\r\n\r\n### Author.\r\n\r\n- [ ] I have added link to this PR to the JIRA\r\n- [ ] I have logged time in JIRA.\r\n\r\n### Reviewers.\r\n\r\n- [ ] @reviewer1\r\n- [ ] @reviewer2\r\n- [ ] @vovka\r\n\r\n### Issue summary.\r\n\r\n*Short description of you feature or bug.*\r\n\r\n### Fix summary. \r\n\r\n_Short description of how you implemented a feature or fixed a bug. And why._\r\n\r\n### Testing approach.\r\n\r\n_Please describe your testing approach here._\r\n* _What cases do your tests cover?_\r\n* _Did you cover all of the edge cases?_\r\n* _What kinds of tests did you write?_\r\n  * _unit tests?_\r\n  * _controller tests?_\r\n  * _integration tests?_\r\n* _What was your rationale for choosing one kind of test over another for testing each case?_\r\n","created_at":"2016-05-22T13:48:48Z","updated_at":"2016-05-22T13:51:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"365169a798852b50f91eb7abe1ede5fecc6b94f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/superNazo/video_quiz/pulls/80/commits","review_comments_url":"https://api.github.com/repos/superNazo/video_quiz/pulls/80/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/80/comments","statuses_url":"https://api.github.com/repos/superNazo/video_quiz/statuses/9f1d527f59221946f8aefa95e6cff6f1da23b58d","head":{"label":"superNazo:feature/cleanup","ref":"feature/cleanup","sha":"9f1d527f59221946f8aefa95e6cff6f1da23b58d","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-22T13:50:00Z","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":306,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"superNazo:master","ref":"master","sha":"5176a8b68c965f9a9926e115e608313301429859","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-22T13:50:00Z","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":306,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/80"},"html":{"href":"https://github.com/superNazo/video_quiz/pull/80"},"issue":{"href":"https://api.github.com/repos/superNazo/video_quiz/issues/80"},"comments":{"href":"https://api.github.com/repos/superNazo/video_quiz/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/superNazo/video_quiz/pulls/80/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/80/commits"},"statuses":{"href":"https://api.github.com/repos/superNazo/video_quiz/statuses/9f1d527f59221946f8aefa95e6cff6f1da23b58d"}}}}
{"actor":{"display_login":"vovka"}}