{"action":"created","comment":{"url":"https://api.github.com/repos/valadzko/qnapp/pulls/comments/74493523","id":74493523,"diff_hunk":"@@ -0,0 +1,9 @@\n+require 'rails_helper'\n+\n+RSpec.describe Answer, type: :model do\n+\n+  it { should validate_presence_of :body }\n+  it { should belong_to :question }\n+  it { should belong_to(:question).dependent(:destroy) }","path":"spec/models/answer_spec.rb","position":7,"original_position":7,"commit_id":"a1276c855609c1c87f50da366b75038e8106b62f","original_commit_id":"a1276c855609c1c87f50da366b75038e8106b62f","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"Этот тест уже включает в себя предыдущий, т.к. сразу тестирует и наличие ассоциации и ее опцию, так что не надо дублировать тесты","created_at":"2016-08-11T20:07:03Z","updated_at":"2016-08-11T20:07:03Z","html_url":"https://github.com/valadzko/qnapp/pull/1#discussion_r74493523","pull_request_url":"https://api.github.com/repos/valadzko/qnapp/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/valadzko/qnapp/pulls/comments/74493523"},"html":{"href":"https://github.com/valadzko/qnapp/pull/1#discussion_r74493523"},"pull_request":{"href":"https://api.github.com/repos/valadzko/qnapp/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/valadzko/qnapp/pulls/1","id":80991968,"html_url":"https://github.com/valadzko/qnapp/pull/1","diff_url":"https://github.com/valadzko/qnapp/pull/1.diff","patch_url":"https://github.com/valadzko/qnapp/pull/1.patch","issue_url":"https://api.github.com/repos/valadzko/qnapp/issues/1","number":1,"state":"open","locked":false,"title":"Tests for Question and Answer models","user":{"login":"valadzko","id":12141346,"avatar_url":"https://avatars.githubusercontent.com/u/12141346?v=3","gravatar_id":"","url":"https://api.github.com/users/valadzko","html_url":"https://github.com/valadzko","followers_url":"https://api.github.com/users/valadzko/followers","following_url":"https://api.github.com/users/valadzko/following{/other_user}","gists_url":"https://api.github.com/users/valadzko/gists{/gist_id}","starred_url":"https://api.github.com/users/valadzko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valadzko/subscriptions","organizations_url":"https://api.github.com/users/valadzko/orgs","repos_url":"https://api.github.com/users/valadzko/repos","events_url":"https://api.github.com/users/valadzko/events{/privacy}","received_events_url":"https://api.github.com/users/valadzko/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-11T16:52:28Z","updated_at":"2016-08-11T20:07:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"093fd31f770e81977e720ade827ca87aee7f0786","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/valadzko/qnapp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/valadzko/qnapp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/valadzko/qnapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valadzko/qnapp/issues/1/comments","statuses_url":"https://api.github.com/repos/valadzko/qnapp/statuses/a1276c855609c1c87f50da366b75038e8106b62f","head":{"label":"valadzko:qa-models","ref":"qa-models","sha":"a1276c855609c1c87f50da366b75038e8106b62f","user":{"login":"valadzko","id":12141346,"avatar_url":"https://avatars.githubusercontent.com/u/12141346?v=3","gravatar_id":"","url":"https://api.github.com/users/valadzko","html_url":"https://github.com/valadzko","followers_url":"https://api.github.com/users/valadzko/followers","following_url":"https://api.github.com/users/valadzko/following{/other_user}","gists_url":"https://api.github.com/users/valadzko/gists{/gist_id}","starred_url":"https://api.github.com/users/valadzko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valadzko/subscriptions","organizations_url":"https://api.github.com/users/valadzko/orgs","repos_url":"https://api.github.com/users/valadzko/repos","events_url":"https://api.github.com/users/valadzko/events{/privacy}","received_events_url":"https://api.github.com/users/valadzko/received_events","type":"User","site_admin":false},"repo":{"id":65312019,"name":"qnapp","full_name":"valadzko/qnapp","owner":{"login":"valadzko","id":12141346,"avatar_url":"https://avatars.githubusercontent.com/u/12141346?v=3","gravatar_id":"","url":"https://api.github.com/users/valadzko","html_url":"https://github.com/valadzko","followers_url":"https://api.github.com/users/valadzko/followers","following_url":"https://api.github.com/users/valadzko/following{/other_user}","gists_url":"https://api.github.com/users/valadzko/gists{/gist_id}","starred_url":"https://api.github.com/users/valadzko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valadzko/subscriptions","organizations_url":"https://api.github.com/users/valadzko/orgs","repos_url":"https://api.github.com/users/valadzko/repos","events_url":"https://api.github.com/users/valadzko/events{/privacy}","received_events_url":"https://api.github.com/users/valadzko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valadzko/qnapp","description":null,"fork":false,"url":"https://api.github.com/repos/valadzko/qnapp","forks_url":"https://api.github.com/repos/valadzko/qnapp/forks","keys_url":"https://api.github.com/repos/valadzko/qnapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valadzko/qnapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valadzko/qnapp/teams","hooks_url":"https://api.github.com/repos/valadzko/qnapp/hooks","issue_events_url":"https://api.github.com/repos/valadzko/qnapp/issues/events{/number}","events_url":"https://api.github.com/repos/valadzko/qnapp/events","assignees_url":"https://api.github.com/repos/valadzko/qnapp/assignees{/user}","branches_url":"https://api.github.com/repos/valadzko/qnapp/branches{/branch}","tags_url":"https://api.github.com/repos/valadzko/qnapp/tags","blobs_url":"https://api.github.com/repos/valadzko/qnapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valadzko/qnapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valadzko/qnapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/valadzko/qnapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valadzko/qnapp/statuses/{sha}","languages_url":"https://api.github.com/repos/valadzko/qnapp/languages","stargazers_url":"https://api.github.com/repos/valadzko/qnapp/stargazers","contributors_url":"https://api.github.com/repos/valadzko/qnapp/contributors","subscribers_url":"https://api.github.com/repos/valadzko/qnapp/subscribers","subscription_url":"https://api.github.com/repos/valadzko/qnapp/subscription","commits_url":"https://api.github.com/repos/valadzko/qnapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/valadzko/qnapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/valadzko/qnapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/valadzko/qnapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/valadzko/qnapp/contents/{+path}","compare_url":"https://api.github.com/repos/valadzko/qnapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valadzko/qnapp/merges","archive_url":"https://api.github.com/repos/valadzko/qnapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valadzko/qnapp/downloads","issues_url":"https://api.github.com/repos/valadzko/qnapp/issues{/number}","pulls_url":"https://api.github.com/repos/valadzko/qnapp/pulls{/number}","milestones_url":"https://api.github.com/repos/valadzko/qnapp/milestones{/number}","notifications_url":"https://api.github.com/repos/valadzko/qnapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valadzko/qnapp/labels{/name}","releases_url":"https://api.github.com/repos/valadzko/qnapp/releases{/id}","deployments_url":"https://api.github.com/repos/valadzko/qnapp/deployments","created_at":"2016-08-09T16:48:37Z","updated_at":"2016-08-09T16:50:12Z","pushed_at":"2016-08-11T18:07:36Z","git_url":"git://github.com/valadzko/qnapp.git","ssh_url":"git@github.com:valadzko/qnapp.git","clone_url":"https://github.com/valadzko/qnapp.git","svn_url":"https://github.com/valadzko/qnapp","homepage":null,"size":28,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"valadzko:master","ref":"master","sha":"4a8ca7d8c4e38b0065369fbdfc989646d9503831","user":{"login":"valadzko","id":12141346,"avatar_url":"https://avatars.githubusercontent.com/u/12141346?v=3","gravatar_id":"","url":"https://api.github.com/users/valadzko","html_url":"https://github.com/valadzko","followers_url":"https://api.github.com/users/valadzko/followers","following_url":"https://api.github.com/users/valadzko/following{/other_user}","gists_url":"https://api.github.com/users/valadzko/gists{/gist_id}","starred_url":"https://api.github.com/users/valadzko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valadzko/subscriptions","organizations_url":"https://api.github.com/users/valadzko/orgs","repos_url":"https://api.github.com/users/valadzko/repos","events_url":"https://api.github.com/users/valadzko/events{/privacy}","received_events_url":"https://api.github.com/users/valadzko/received_events","type":"User","site_admin":false},"repo":{"id":65312019,"name":"qnapp","full_name":"valadzko/qnapp","owner":{"login":"valadzko","id":12141346,"avatar_url":"https://avatars.githubusercontent.com/u/12141346?v=3","gravatar_id":"","url":"https://api.github.com/users/valadzko","html_url":"https://github.com/valadzko","followers_url":"https://api.github.com/users/valadzko/followers","following_url":"https://api.github.com/users/valadzko/following{/other_user}","gists_url":"https://api.github.com/users/valadzko/gists{/gist_id}","starred_url":"https://api.github.com/users/valadzko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valadzko/subscriptions","organizations_url":"https://api.github.com/users/valadzko/orgs","repos_url":"https://api.github.com/users/valadzko/repos","events_url":"https://api.github.com/users/valadzko/events{/privacy}","received_events_url":"https://api.github.com/users/valadzko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valadzko/qnapp","description":null,"fork":false,"url":"https://api.github.com/repos/valadzko/qnapp","forks_url":"https://api.github.com/repos/valadzko/qnapp/forks","keys_url":"https://api.github.com/repos/valadzko/qnapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valadzko/qnapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valadzko/qnapp/teams","hooks_url":"https://api.github.com/repos/valadzko/qnapp/hooks","issue_events_url":"https://api.github.com/repos/valadzko/qnapp/issues/events{/number}","events_url":"https://api.github.com/repos/valadzko/qnapp/events","assignees_url":"https://api.github.com/repos/valadzko/qnapp/assignees{/user}","branches_url":"https://api.github.com/repos/valadzko/qnapp/branches{/branch}","tags_url":"https://api.github.com/repos/valadzko/qnapp/tags","blobs_url":"https://api.github.com/repos/valadzko/qnapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valadzko/qnapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valadzko/qnapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/valadzko/qnapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valadzko/qnapp/statuses/{sha}","languages_url":"https://api.github.com/repos/valadzko/qnapp/languages","stargazers_url":"https://api.github.com/repos/valadzko/qnapp/stargazers","contributors_url":"https://api.github.com/repos/valadzko/qnapp/contributors","subscribers_url":"https://api.github.com/repos/valadzko/qnapp/subscribers","subscription_url":"https://api.github.com/repos/valadzko/qnapp/subscription","commits_url":"https://api.github.com/repos/valadzko/qnapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/valadzko/qnapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/valadzko/qnapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/valadzko/qnapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/valadzko/qnapp/contents/{+path}","compare_url":"https://api.github.com/repos/valadzko/qnapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valadzko/qnapp/merges","archive_url":"https://api.github.com/repos/valadzko/qnapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valadzko/qnapp/downloads","issues_url":"https://api.github.com/repos/valadzko/qnapp/issues{/number}","pulls_url":"https://api.github.com/repos/valadzko/qnapp/pulls{/number}","milestones_url":"https://api.github.com/repos/valadzko/qnapp/milestones{/number}","notifications_url":"https://api.github.com/repos/valadzko/qnapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valadzko/qnapp/labels{/name}","releases_url":"https://api.github.com/repos/valadzko/qnapp/releases{/id}","deployments_url":"https://api.github.com/repos/valadzko/qnapp/deployments","created_at":"2016-08-09T16:48:37Z","updated_at":"2016-08-09T16:50:12Z","pushed_at":"2016-08-11T18:07:36Z","git_url":"git://github.com/valadzko/qnapp.git","ssh_url":"git@github.com:valadzko/qnapp.git","clone_url":"https://github.com/valadzko/qnapp.git","svn_url":"https://github.com/valadzko/qnapp","homepage":null,"size":28,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/valadzko/qnapp/pulls/1"},"html":{"href":"https://github.com/valadzko/qnapp/pull/1"},"issue":{"href":"https://api.github.com/repos/valadzko/qnapp/issues/1"},"comments":{"href":"https://api.github.com/repos/valadzko/qnapp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/valadzko/qnapp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/valadzko/qnapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valadzko/qnapp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/valadzko/qnapp/statuses/a1276c855609c1c87f50da366b75038e8106b62f"}}}}
{"actor":{"display_login":"vkurennov"}}