{"action":"created","comment":{"url":"https://api.github.com/repos/swest2462/qna/pulls/comments/75205390","id":75205390,"diff_hunk":"@@ -0,0 +1,7 @@\n+require 'rails_helper'\n+\n+RSpec.describe Question, type: :model do\n+  it { should have_many(:answers).dependent(:destroy) }\n+  it { should validate_presence_of :title }\n+  it { should validate_presence_of :body }\n+end","path":"spec/models/question_spec.rb","position":7,"original_position":7,"commit_id":"cf47dfb258757054723e682b6c6d8266e5a8207e","original_commit_id":"cf47dfb258757054723e682b6c6d8266e5a8207e","user":{"login":"swest2462","id":7165443,"avatar_url":"https://avatars.githubusercontent.com/u/7165443?v=3","gravatar_id":"","url":"https://api.github.com/users/swest2462","html_url":"https://github.com/swest2462","followers_url":"https://api.github.com/users/swest2462/followers","following_url":"https://api.github.com/users/swest2462/following{/other_user}","gists_url":"https://api.github.com/users/swest2462/gists{/gist_id}","starred_url":"https://api.github.com/users/swest2462/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swest2462/subscriptions","organizations_url":"https://api.github.com/users/swest2462/orgs","repos_url":"https://api.github.com/users/swest2462/repos","events_url":"https://api.github.com/users/swest2462/events{/privacy}","received_events_url":"https://api.github.com/users/swest2462/received_events","type":"User","site_admin":false},"body":"так по заданию они не требуются ","created_at":"2016-08-17T20:56:07Z","updated_at":"2016-08-17T20:56:07Z","html_url":"https://github.com/swest2462/qna/pull/1#discussion_r75205390","pull_request_url":"https://api.github.com/repos/swest2462/qna/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/swest2462/qna/pulls/comments/75205390"},"html":{"href":"https://github.com/swest2462/qna/pull/1#discussion_r75205390"},"pull_request":{"href":"https://api.github.com/repos/swest2462/qna/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/swest2462/qna/pulls/1","id":81706442,"html_url":"https://github.com/swest2462/qna/pull/1","diff_url":"https://github.com/swest2462/qna/pull/1.diff","patch_url":"https://github.com/swest2462/qna/pull/1.patch","issue_url":"https://api.github.com/repos/swest2462/qna/issues/1","number":1,"state":"open","locked":false,"title":"added answer model and tests","user":{"login":"swest2462","id":7165443,"avatar_url":"https://avatars.githubusercontent.com/u/7165443?v=3","gravatar_id":"","url":"https://api.github.com/users/swest2462","html_url":"https://github.com/swest2462","followers_url":"https://api.github.com/users/swest2462/followers","following_url":"https://api.github.com/users/swest2462/following{/other_user}","gists_url":"https://api.github.com/users/swest2462/gists{/gist_id}","starred_url":"https://api.github.com/users/swest2462/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swest2462/subscriptions","organizations_url":"https://api.github.com/users/swest2462/orgs","repos_url":"https://api.github.com/users/swest2462/repos","events_url":"https://api.github.com/users/swest2462/events{/privacy}","received_events_url":"https://api.github.com/users/swest2462/received_events","type":"User","site_admin":false},"body":"прошу проверить","created_at":"2016-08-17T19:59:47Z","updated_at":"2016-08-17T20:56:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efd8f84f14a627237f8c59b7c5c814db8c6fb488","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/swest2462/qna/pulls/1/commits","review_comments_url":"https://api.github.com/repos/swest2462/qna/pulls/1/comments","review_comment_url":"https://api.github.com/repos/swest2462/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swest2462/qna/issues/1/comments","statuses_url":"https://api.github.com/repos/swest2462/qna/statuses/cf47dfb258757054723e682b6c6d8266e5a8207e","head":{"label":"swest2462:first_lesson","ref":"first_lesson","sha":"cf47dfb258757054723e682b6c6d8266e5a8207e","user":{"login":"swest2462","id":7165443,"avatar_url":"https://avatars.githubusercontent.com/u/7165443?v=3","gravatar_id":"","url":"https://api.github.com/users/swest2462","html_url":"https://github.com/swest2462","followers_url":"https://api.github.com/users/swest2462/followers","following_url":"https://api.github.com/users/swest2462/following{/other_user}","gists_url":"https://api.github.com/users/swest2462/gists{/gist_id}","starred_url":"https://api.github.com/users/swest2462/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swest2462/subscriptions","organizations_url":"https://api.github.com/users/swest2462/orgs","repos_url":"https://api.github.com/users/swest2462/repos","events_url":"https://api.github.com/users/swest2462/events{/privacy}","received_events_url":"https://api.github.com/users/swest2462/received_events","type":"User","site_admin":false},"repo":{"id":65662959,"name":"qna","full_name":"swest2462/qna","owner":{"login":"swest2462","id":7165443,"avatar_url":"https://avatars.githubusercontent.com/u/7165443?v=3","gravatar_id":"","url":"https://api.github.com/users/swest2462","html_url":"https://github.com/swest2462","followers_url":"https://api.github.com/users/swest2462/followers","following_url":"https://api.github.com/users/swest2462/following{/other_user}","gists_url":"https://api.github.com/users/swest2462/gists{/gist_id}","starred_url":"https://api.github.com/users/swest2462/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swest2462/subscriptions","organizations_url":"https://api.github.com/users/swest2462/orgs","repos_url":"https://api.github.com/users/swest2462/repos","events_url":"https://api.github.com/users/swest2462/events{/privacy}","received_events_url":"https://api.github.com/users/swest2462/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swest2462/qna","description":null,"fork":false,"url":"https://api.github.com/repos/swest2462/qna","forks_url":"https://api.github.com/repos/swest2462/qna/forks","keys_url":"https://api.github.com/repos/swest2462/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swest2462/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swest2462/qna/teams","hooks_url":"https://api.github.com/repos/swest2462/qna/hooks","issue_events_url":"https://api.github.com/repos/swest2462/qna/issues/events{/number}","events_url":"https://api.github.com/repos/swest2462/qna/events","assignees_url":"https://api.github.com/repos/swest2462/qna/assignees{/user}","branches_url":"https://api.github.com/repos/swest2462/qna/branches{/branch}","tags_url":"https://api.github.com/repos/swest2462/qna/tags","blobs_url":"https://api.github.com/repos/swest2462/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swest2462/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swest2462/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/swest2462/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swest2462/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/swest2462/qna/languages","stargazers_url":"https://api.github.com/repos/swest2462/qna/stargazers","contributors_url":"https://api.github.com/repos/swest2462/qna/contributors","subscribers_url":"https://api.github.com/repos/swest2462/qna/subscribers","subscription_url":"https://api.github.com/repos/swest2462/qna/subscription","commits_url":"https://api.github.com/repos/swest2462/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/swest2462/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/swest2462/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/swest2462/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/swest2462/qna/contents/{+path}","compare_url":"https://api.github.com/repos/swest2462/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swest2462/qna/merges","archive_url":"https://api.github.com/repos/swest2462/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swest2462/qna/downloads","issues_url":"https://api.github.com/repos/swest2462/qna/issues{/number}","pulls_url":"https://api.github.com/repos/swest2462/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/swest2462/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/swest2462/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swest2462/qna/labels{/name}","releases_url":"https://api.github.com/repos/swest2462/qna/releases{/id}","deployments_url":"https://api.github.com/repos/swest2462/qna/deployments","created_at":"2016-08-14T11:23:34Z","updated_at":"2016-08-17T19:35:43Z","pushed_at":"2016-08-17T20:49:29Z","git_url":"git://github.com/swest2462/qna.git","ssh_url":"git@github.com:swest2462/qna.git","clone_url":"https://github.com/swest2462/qna.git","svn_url":"https://github.com/swest2462/qna","homepage":null,"size":26,"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":"swest2462:master","ref":"master","sha":"51bc88d1bbcd9179101b71ae5dcf16cda2072a8f","user":{"login":"swest2462","id":7165443,"avatar_url":"https://avatars.githubusercontent.com/u/7165443?v=3","gravatar_id":"","url":"https://api.github.com/users/swest2462","html_url":"https://github.com/swest2462","followers_url":"https://api.github.com/users/swest2462/followers","following_url":"https://api.github.com/users/swest2462/following{/other_user}","gists_url":"https://api.github.com/users/swest2462/gists{/gist_id}","starred_url":"https://api.github.com/users/swest2462/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swest2462/subscriptions","organizations_url":"https://api.github.com/users/swest2462/orgs","repos_url":"https://api.github.com/users/swest2462/repos","events_url":"https://api.github.com/users/swest2462/events{/privacy}","received_events_url":"https://api.github.com/users/swest2462/received_events","type":"User","site_admin":false},"repo":{"id":65662959,"name":"qna","full_name":"swest2462/qna","owner":{"login":"swest2462","id":7165443,"avatar_url":"https://avatars.githubusercontent.com/u/7165443?v=3","gravatar_id":"","url":"https://api.github.com/users/swest2462","html_url":"https://github.com/swest2462","followers_url":"https://api.github.com/users/swest2462/followers","following_url":"https://api.github.com/users/swest2462/following{/other_user}","gists_url":"https://api.github.com/users/swest2462/gists{/gist_id}","starred_url":"https://api.github.com/users/swest2462/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swest2462/subscriptions","organizations_url":"https://api.github.com/users/swest2462/orgs","repos_url":"https://api.github.com/users/swest2462/repos","events_url":"https://api.github.com/users/swest2462/events{/privacy}","received_events_url":"https://api.github.com/users/swest2462/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swest2462/qna","description":null,"fork":false,"url":"https://api.github.com/repos/swest2462/qna","forks_url":"https://api.github.com/repos/swest2462/qna/forks","keys_url":"https://api.github.com/repos/swest2462/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swest2462/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swest2462/qna/teams","hooks_url":"https://api.github.com/repos/swest2462/qna/hooks","issue_events_url":"https://api.github.com/repos/swest2462/qna/issues/events{/number}","events_url":"https://api.github.com/repos/swest2462/qna/events","assignees_url":"https://api.github.com/repos/swest2462/qna/assignees{/user}","branches_url":"https://api.github.com/repos/swest2462/qna/branches{/branch}","tags_url":"https://api.github.com/repos/swest2462/qna/tags","blobs_url":"https://api.github.com/repos/swest2462/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swest2462/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swest2462/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/swest2462/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swest2462/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/swest2462/qna/languages","stargazers_url":"https://api.github.com/repos/swest2462/qna/stargazers","contributors_url":"https://api.github.com/repos/swest2462/qna/contributors","subscribers_url":"https://api.github.com/repos/swest2462/qna/subscribers","subscription_url":"https://api.github.com/repos/swest2462/qna/subscription","commits_url":"https://api.github.com/repos/swest2462/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/swest2462/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/swest2462/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/swest2462/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/swest2462/qna/contents/{+path}","compare_url":"https://api.github.com/repos/swest2462/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swest2462/qna/merges","archive_url":"https://api.github.com/repos/swest2462/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swest2462/qna/downloads","issues_url":"https://api.github.com/repos/swest2462/qna/issues{/number}","pulls_url":"https://api.github.com/repos/swest2462/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/swest2462/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/swest2462/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swest2462/qna/labels{/name}","releases_url":"https://api.github.com/repos/swest2462/qna/releases{/id}","deployments_url":"https://api.github.com/repos/swest2462/qna/deployments","created_at":"2016-08-14T11:23:34Z","updated_at":"2016-08-17T19:35:43Z","pushed_at":"2016-08-17T20:49:29Z","git_url":"git://github.com/swest2462/qna.git","ssh_url":"git@github.com:swest2462/qna.git","clone_url":"https://github.com/swest2462/qna.git","svn_url":"https://github.com/swest2462/qna","homepage":null,"size":26,"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/swest2462/qna/pulls/1"},"html":{"href":"https://github.com/swest2462/qna/pull/1"},"issue":{"href":"https://api.github.com/repos/swest2462/qna/issues/1"},"comments":{"href":"https://api.github.com/repos/swest2462/qna/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/swest2462/qna/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/swest2462/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swest2462/qna/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/swest2462/qna/statuses/cf47dfb258757054723e682b6c6d8266e5a8207e"}}}}
{"actor":{"display_login":"swest2462"}}