{"action":"created","issue":{"url":"https://api.github.com/repos/r-ume/chatspace/issues/12","repository_url":"https://api.github.com/repos/r-ume/chatspace","labels_url":"https://api.github.com/repos/r-ume/chatspace/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/r-ume/chatspace/issues/12/comments","events_url":"https://api.github.com/repos/r-ume/chatspace/issues/12/events","html_url":"https://github.com/r-ume/chatspace/pull/12","id":248312286,"number":12,"title":"モデルのRspecテスト","user":{"login":"r-ume","id":22656143,"avatar_url":"https://avatars3.githubusercontent.com/u/22656143?v=4","gravatar_id":"","url":"https://api.github.com/users/r-ume","html_url":"https://github.com/r-ume","followers_url":"https://api.github.com/users/r-ume/followers","following_url":"https://api.github.com/users/r-ume/following{/other_user}","gists_url":"https://api.github.com/users/r-ume/gists{/gist_id}","starred_url":"https://api.github.com/users/r-ume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-ume/subscriptions","organizations_url":"https://api.github.com/users/r-ume/orgs","repos_url":"https://api.github.com/users/r-ume/repos","events_url":"https://api.github.com/users/r-ume/events{/privacy}","received_events_url":"https://api.github.com/users/r-ume/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-07T05:39:49Z","updated_at":"2017-08-10T08:27:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/r-ume/chatspace/pulls/12","html_url":"https://github.com/r-ume/chatspace/pull/12","diff_url":"https://github.com/r-ume/chatspace/pull/12.diff","patch_url":"https://github.com/r-ume/chatspace/pull/12.patch"},"body":"## WHY\r\n- Rspecのモデルテスト\r\n- 実際にアプリで確認しなくとも、予想していた動きをするかどうかの確認\r\n\r\n## WHAT\r\n- Annotate gemで、、モデルやモデルのspecファイルにカラムを書いた\r\n- FactoryGirlのgemで、UserとMessageモデルの中に必要なカラムを書いたテストデータを作成した。\r\n- そのFactoryGirlのテストデータを使い、rspecテストで、カラムが足りない時は失敗し、必要なカラムがあるときは、成功するテストを書いた。\r\n\r\n## RESULT\r\n![2017-08-07 14 37 47](https://user-images.githubusercontent.com/22656143/29013425-03b10996-7b7e-11e7-88ca-edfb70ac4d85.png)\r\n"},"comment":{"url":"https://api.github.com/repos/r-ume/chatspace/issues/comments/321486480","html_url":"https://github.com/r-ume/chatspace/pull/12#issuecomment-321486480","issue_url":"https://api.github.com/repos/r-ume/chatspace/issues/12","id":321486480,"user":{"login":"r-ume","id":22656143,"avatar_url":"https://avatars3.githubusercontent.com/u/22656143?v=4","gravatar_id":"","url":"https://api.github.com/users/r-ume","html_url":"https://github.com/r-ume","followers_url":"https://api.github.com/users/r-ume/followers","following_url":"https://api.github.com/users/r-ume/following{/other_user}","gists_url":"https://api.github.com/users/r-ume/gists{/gist_id}","starred_url":"https://api.github.com/users/r-ume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-ume/subscriptions","organizations_url":"https://api.github.com/users/r-ume/orgs","repos_url":"https://api.github.com/users/r-ume/repos","events_url":"https://api.github.com/users/r-ume/events{/privacy}","received_events_url":"https://api.github.com/users/r-ume/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T08:27:55Z","updated_at":"2017-08-10T08:27:55Z","body":"レビューありがとー！マージするわ！"}}
{"actor":{"display_login":"r-ume"}}