{"action":"created","comment":{"url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/comments/126394478","pull_request_review_id":48873100,"id":126394478,"diff_hunk":"@@ -0,0 +1,11 @@\n+FactoryGirl.define do","path":"spec/factories/messages.rb","position":1,"original_position":1,"commit_id":"4a5d327ac1f2aca51d84c75d35d0befa2d163680","original_commit_id":"4a5d327ac1f2aca51d84c75d35d0befa2d163680","user":{"login":"yuta-gunji","id":29705494,"avatar_url":"https://avatars3.githubusercontent.com/u/29705494?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-gunji","html_url":"https://github.com/yuta-gunji","followers_url":"https://api.github.com/users/yuta-gunji/followers","following_url":"https://api.github.com/users/yuta-gunji/following{/other_user}","gists_url":"https://api.github.com/users/yuta-gunji/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-gunji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-gunji/subscriptions","organizations_url":"https://api.github.com/users/yuta-gunji/orgs","repos_url":"https://api.github.com/users/yuta-gunji/repos","events_url":"https://api.github.com/users/yuta-gunji/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-gunji/received_events","type":"User","site_admin":false},"body":"messageモデルにuserモデルとのアソシエーションが抜けていたので修正しました。\r\nuserモデルには、has_many :messages という記述が既にあります。","created_at":"2017-07-10T11:23:35Z","updated_at":"2017-07-10T11:23:35Z","html_url":"https://github.com/yuta-gunji/chat-space/pull/19#discussion_r126394478","pull_request_url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/comments/126394478"},"html":{"href":"https://github.com/yuta-gunji/chat-space/pull/19#discussion_r126394478"},"pull_request":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/19","id":129649761,"html_url":"https://github.com/yuta-gunji/chat-space/pull/19","diff_url":"https://github.com/yuta-gunji/chat-space/pull/19.diff","patch_url":"https://github.com/yuta-gunji/chat-space/pull/19.patch","issue_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues/19","number":19,"state":"open","locked":false,"title":"Message model test","user":{"login":"yuta-gunji","id":29705494,"avatar_url":"https://avatars3.githubusercontent.com/u/29705494?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-gunji","html_url":"https://github.com/yuta-gunji","followers_url":"https://api.github.com/users/yuta-gunji/followers","following_url":"https://api.github.com/users/yuta-gunji/following{/other_user}","gists_url":"https://api.github.com/users/yuta-gunji/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-gunji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-gunji/subscriptions","organizations_url":"https://api.github.com/users/yuta-gunji/orgs","repos_url":"https://api.github.com/users/yuta-gunji/repos","events_url":"https://api.github.com/users/yuta-gunji/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-gunji/received_events","type":"User","site_admin":false},"body":"# WHAT\nメッセージモデルをテストする。\n# WHY\nメッセージ送信機能が設計通りに動くことを確かめるため。","created_at":"2017-07-10T10:44:33Z","updated_at":"2017-07-10T11:23:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cb36f4c99661df898e556172c82925d21d49570","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/19/commits","review_comments_url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/19/comments","review_comment_url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues/19/comments","statuses_url":"https://api.github.com/repos/yuta-gunji/chat-space/statuses/4a5d327ac1f2aca51d84c75d35d0befa2d163680","head":{"label":"yuta-gunji:test_message_model","ref":"test_message_model","sha":"4a5d327ac1f2aca51d84c75d35d0befa2d163680","user":{"login":"yuta-gunji","id":29705494,"avatar_url":"https://avatars3.githubusercontent.com/u/29705494?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-gunji","html_url":"https://github.com/yuta-gunji","followers_url":"https://api.github.com/users/yuta-gunji/followers","following_url":"https://api.github.com/users/yuta-gunji/following{/other_user}","gists_url":"https://api.github.com/users/yuta-gunji/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-gunji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-gunji/subscriptions","organizations_url":"https://api.github.com/users/yuta-gunji/orgs","repos_url":"https://api.github.com/users/yuta-gunji/repos","events_url":"https://api.github.com/users/yuta-gunji/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-gunji/received_events","type":"User","site_admin":false},"repo":{"id":95527954,"name":"chat-space","full_name":"yuta-gunji/chat-space","owner":{"login":"yuta-gunji","id":29705494,"avatar_url":"https://avatars3.githubusercontent.com/u/29705494?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-gunji","html_url":"https://github.com/yuta-gunji","followers_url":"https://api.github.com/users/yuta-gunji/followers","following_url":"https://api.github.com/users/yuta-gunji/following{/other_user}","gists_url":"https://api.github.com/users/yuta-gunji/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-gunji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-gunji/subscriptions","organizations_url":"https://api.github.com/users/yuta-gunji/orgs","repos_url":"https://api.github.com/users/yuta-gunji/repos","events_url":"https://api.github.com/users/yuta-gunji/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-gunji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuta-gunji/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/yuta-gunji/chat-space","forks_url":"https://api.github.com/repos/yuta-gunji/chat-space/forks","keys_url":"https://api.github.com/repos/yuta-gunji/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuta-gunji/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuta-gunji/chat-space/teams","hooks_url":"https://api.github.com/repos/yuta-gunji/chat-space/hooks","issue_events_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/yuta-gunji/chat-space/events","assignees_url":"https://api.github.com/repos/yuta-gunji/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/yuta-gunji/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/yuta-gunji/chat-space/tags","blobs_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuta-gunji/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/yuta-gunji/chat-space/languages","stargazers_url":"https://api.github.com/repos/yuta-gunji/chat-space/stargazers","contributors_url":"https://api.github.com/repos/yuta-gunji/chat-space/contributors","subscribers_url":"https://api.github.com/repos/yuta-gunji/chat-space/subscribers","subscription_url":"https://api.github.com/repos/yuta-gunji/chat-space/subscription","commits_url":"https://api.github.com/repos/yuta-gunji/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuta-gunji/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuta-gunji/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/yuta-gunji/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuta-gunji/chat-space/merges","archive_url":"https://api.github.com/repos/yuta-gunji/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuta-gunji/chat-space/downloads","issues_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/yuta-gunji/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/yuta-gunji/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuta-gunji/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/yuta-gunji/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/yuta-gunji/chat-space/deployments","created_at":"2017-06-27T07:02:49Z","updated_at":"2017-06-27T07:02:58Z","pushed_at":"2017-07-10T10:44:33Z","git_url":"git://github.com/yuta-gunji/chat-space.git","ssh_url":"git@github.com:yuta-gunji/chat-space.git","clone_url":"https://github.com/yuta-gunji/chat-space.git","svn_url":"https://github.com/yuta-gunji/chat-space","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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":"yuta-gunji:master","ref":"master","sha":"01d879da5a8202e61e9dce5f3aa8132113c811ee","user":{"login":"yuta-gunji","id":29705494,"avatar_url":"https://avatars3.githubusercontent.com/u/29705494?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-gunji","html_url":"https://github.com/yuta-gunji","followers_url":"https://api.github.com/users/yuta-gunji/followers","following_url":"https://api.github.com/users/yuta-gunji/following{/other_user}","gists_url":"https://api.github.com/users/yuta-gunji/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-gunji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-gunji/subscriptions","organizations_url":"https://api.github.com/users/yuta-gunji/orgs","repos_url":"https://api.github.com/users/yuta-gunji/repos","events_url":"https://api.github.com/users/yuta-gunji/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-gunji/received_events","type":"User","site_admin":false},"repo":{"id":95527954,"name":"chat-space","full_name":"yuta-gunji/chat-space","owner":{"login":"yuta-gunji","id":29705494,"avatar_url":"https://avatars3.githubusercontent.com/u/29705494?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-gunji","html_url":"https://github.com/yuta-gunji","followers_url":"https://api.github.com/users/yuta-gunji/followers","following_url":"https://api.github.com/users/yuta-gunji/following{/other_user}","gists_url":"https://api.github.com/users/yuta-gunji/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-gunji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-gunji/subscriptions","organizations_url":"https://api.github.com/users/yuta-gunji/orgs","repos_url":"https://api.github.com/users/yuta-gunji/repos","events_url":"https://api.github.com/users/yuta-gunji/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-gunji/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuta-gunji/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/yuta-gunji/chat-space","forks_url":"https://api.github.com/repos/yuta-gunji/chat-space/forks","keys_url":"https://api.github.com/repos/yuta-gunji/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuta-gunji/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuta-gunji/chat-space/teams","hooks_url":"https://api.github.com/repos/yuta-gunji/chat-space/hooks","issue_events_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/yuta-gunji/chat-space/events","assignees_url":"https://api.github.com/repos/yuta-gunji/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/yuta-gunji/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/yuta-gunji/chat-space/tags","blobs_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuta-gunji/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/yuta-gunji/chat-space/languages","stargazers_url":"https://api.github.com/repos/yuta-gunji/chat-space/stargazers","contributors_url":"https://api.github.com/repos/yuta-gunji/chat-space/contributors","subscribers_url":"https://api.github.com/repos/yuta-gunji/chat-space/subscribers","subscription_url":"https://api.github.com/repos/yuta-gunji/chat-space/subscription","commits_url":"https://api.github.com/repos/yuta-gunji/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuta-gunji/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuta-gunji/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuta-gunji/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/yuta-gunji/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuta-gunji/chat-space/merges","archive_url":"https://api.github.com/repos/yuta-gunji/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuta-gunji/chat-space/downloads","issues_url":"https://api.github.com/repos/yuta-gunji/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/yuta-gunji/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/yuta-gunji/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/yuta-gunji/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuta-gunji/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/yuta-gunji/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/yuta-gunji/chat-space/deployments","created_at":"2017-06-27T07:02:49Z","updated_at":"2017-06-27T07:02:58Z","pushed_at":"2017-07-10T10:44:33Z","git_url":"git://github.com/yuta-gunji/chat-space.git","ssh_url":"git@github.com:yuta-gunji/chat-space.git","clone_url":"https://github.com/yuta-gunji/chat-space.git","svn_url":"https://github.com/yuta-gunji/chat-space","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":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/yuta-gunji/chat-space/pulls/19"},"html":{"href":"https://github.com/yuta-gunji/chat-space/pull/19"},"issue":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/issues/19"},"comments":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/yuta-gunji/chat-space/statuses/4a5d327ac1f2aca51d84c75d35d0befa2d163680"}}}}
{"actor":{"display_login":"yuta-gunji"}}