{"action":"created","comment":{"url":"https://api.github.com/repos/yuuuking/protospace/pulls/comments/71991483","id":71991483,"diff_hunk":"@@ -0,0 +1,88 @@\n+require 'rails_helper'\n+\n+describe Prototype do\n+\n+  describe 'associations' do\n+    it 'with user' do\n+      user = create(:user)\n+      prototype = create(:prototype, user: user)\n+      expect(prototype.user).to eq user\n+    end\n+\n+    describe 'with comments' do\n+      let(:comments_count) { 3 }\n+      let!(:prototype) { create(:prototype, :with_comments, comments_count: comments_count) }\n+      it 'deletes the comments when prototype is deleted' do\n+        expect{ prototype.destroy }.to change(Comment, :count).by(-1 * comments_count)\n+      end\n+    end\n+\n+    describe 'with likes' do\n+      let(:likes_count) { 3 }\n+      let!(:prototype) { create(:prototype, :with_likes, likes_count: likes_count) }\n+      it 'deletes the likes when Prototype is deleted' do\n+        expect{ prototype.destroy }.to change(Like, :count).by(-1 * likes_count)\n+      end\n+    end\n+\n+    describe 'with captured_images' do","path":"spec/models/prototype_spec.rb","position":28,"original_position":28,"commit_id":"9f0054f848c3c91367c1814f21b5d602a54c562a","original_commit_id":"b06412383525720a7ff58b513b15e503095e1420","user":{"login":"yuuuking","id":18096211,"avatar_url":"https://avatars.githubusercontent.com/u/18096211?v=3","gravatar_id":"","url":"https://api.github.com/users/yuuuking","html_url":"https://github.com/yuuuking","followers_url":"https://api.github.com/users/yuuuking/followers","following_url":"https://api.github.com/users/yuuuking/following{/other_user}","gists_url":"https://api.github.com/users/yuuuking/gists{/gist_id}","starred_url":"https://api.github.com/users/yuuuking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuuuking/subscriptions","organizations_url":"https://api.github.com/users/yuuuking/orgs","repos_url":"https://api.github.com/users/yuuuking/repos","events_url":"https://api.github.com/users/yuuuking/events{/privacy}","received_events_url":"https://api.github.com/users/yuuuking/received_events","type":"User","site_admin":false},"body":"修正しました","created_at":"2016-07-24T16:38:38Z","updated_at":"2016-07-24T16:38:38Z","html_url":"https://github.com/yuuuking/protospace/pull/18#discussion_r71991483","pull_request_url":"https://api.github.com/repos/yuuuking/protospace/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/yuuuking/protospace/pulls/comments/71991483"},"html":{"href":"https://github.com/yuuuking/protospace/pull/18#discussion_r71991483"},"pull_request":{"href":"https://api.github.com/repos/yuuuking/protospace/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/yuuuking/protospace/pulls/18","id":78572430,"html_url":"https://github.com/yuuuking/protospace/pull/18","diff_url":"https://github.com/yuuuking/protospace/pull/18.diff","patch_url":"https://github.com/yuuuking/protospace/pull/18.patch","issue_url":"https://api.github.com/repos/yuuuking/protospace/issues/18","number":18,"state":"open","locked":false,"title":"Test model","user":{"login":"yuuuking","id":18096211,"avatar_url":"https://avatars.githubusercontent.com/u/18096211?v=3","gravatar_id":"","url":"https://api.github.com/users/yuuuking","html_url":"https://github.com/yuuuking","followers_url":"https://api.github.com/users/yuuuking/followers","following_url":"https://api.github.com/users/yuuuking/following{/other_user}","gists_url":"https://api.github.com/users/yuuuking/gists{/gist_id}","starred_url":"https://api.github.com/users/yuuuking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuuuking/subscriptions","organizations_url":"https://api.github.com/users/yuuuking/orgs","repos_url":"https://api.github.com/users/yuuuking/repos","events_url":"https://api.github.com/users/yuuuking/events{/privacy}","received_events_url":"https://api.github.com/users/yuuuking/received_events","type":"User","site_admin":false},"body":"# WHAT \r\n\r\n- User、Prototype、CapturedImageモデルのテスト\r\n\r\n# WHY\r\n\r\n- 動作の確認を行うため\r\n\r\n# DEADLINE\r\n\r\n- 7/24(日)","created_at":"2016-07-23T13:39:15Z","updated_at":"2016-07-24T16:38:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f4f309a80bfdfdcea070a1ed453e0d1d72cc3a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yuuuking/protospace/pulls/18/commits","review_comments_url":"https://api.github.com/repos/yuuuking/protospace/pulls/18/comments","review_comment_url":"https://api.github.com/repos/yuuuking/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuuuking/protospace/issues/18/comments","statuses_url":"https://api.github.com/repos/yuuuking/protospace/statuses/9f0054f848c3c91367c1814f21b5d602a54c562a","head":{"label":"yuuuking:test_model","ref":"test_model","sha":"9f0054f848c3c91367c1814f21b5d602a54c562a","user":{"login":"yuuuking","id":18096211,"avatar_url":"https://avatars.githubusercontent.com/u/18096211?v=3","gravatar_id":"","url":"https://api.github.com/users/yuuuking","html_url":"https://github.com/yuuuking","followers_url":"https://api.github.com/users/yuuuking/followers","following_url":"https://api.github.com/users/yuuuking/following{/other_user}","gists_url":"https://api.github.com/users/yuuuking/gists{/gist_id}","starred_url":"https://api.github.com/users/yuuuking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuuuking/subscriptions","organizations_url":"https://api.github.com/users/yuuuking/orgs","repos_url":"https://api.github.com/users/yuuuking/repos","events_url":"https://api.github.com/users/yuuuking/events{/privacy}","received_events_url":"https://api.github.com/users/yuuuking/received_events","type":"User","site_admin":false},"repo":{"id":58660121,"name":"protospace","full_name":"yuuuking/protospace","owner":{"login":"yuuuking","id":18096211,"avatar_url":"https://avatars.githubusercontent.com/u/18096211?v=3","gravatar_id":"","url":"https://api.github.com/users/yuuuking","html_url":"https://github.com/yuuuking","followers_url":"https://api.github.com/users/yuuuking/followers","following_url":"https://api.github.com/users/yuuuking/following{/other_user}","gists_url":"https://api.github.com/users/yuuuking/gists{/gist_id}","starred_url":"https://api.github.com/users/yuuuking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuuuking/subscriptions","organizations_url":"https://api.github.com/users/yuuuking/orgs","repos_url":"https://api.github.com/users/yuuuking/repos","events_url":"https://api.github.com/users/yuuuking/events{/privacy}","received_events_url":"https://api.github.com/users/yuuuking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuuuking/protospace","description":"研修アプリ","fork":false,"url":"https://api.github.com/repos/yuuuking/protospace","forks_url":"https://api.github.com/repos/yuuuking/protospace/forks","keys_url":"https://api.github.com/repos/yuuuking/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuuuking/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuuuking/protospace/teams","hooks_url":"https://api.github.com/repos/yuuuking/protospace/hooks","issue_events_url":"https://api.github.com/repos/yuuuking/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/yuuuking/protospace/events","assignees_url":"https://api.github.com/repos/yuuuking/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/yuuuking/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/yuuuking/protospace/tags","blobs_url":"https://api.github.com/repos/yuuuking/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuuuking/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuuuking/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuuuking/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuuuking/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/yuuuking/protospace/languages","stargazers_url":"https://api.github.com/repos/yuuuking/protospace/stargazers","contributors_url":"https://api.github.com/repos/yuuuking/protospace/contributors","subscribers_url":"https://api.github.com/repos/yuuuking/protospace/subscribers","subscription_url":"https://api.github.com/repos/yuuuking/protospace/subscription","commits_url":"https://api.github.com/repos/yuuuking/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuuuking/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuuuking/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuuuking/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuuuking/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/yuuuking/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuuuking/protospace/merges","archive_url":"https://api.github.com/repos/yuuuking/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuuuking/protospace/downloads","issues_url":"https://api.github.com/repos/yuuuking/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/yuuuking/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/yuuuking/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/yuuuking/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuuuking/protospace/labels{/name}","releases_url":"https://api.github.com/repos/yuuuking/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/yuuuking/protospace/deployments","created_at":"2016-05-12T16:54:38Z","updated_at":"2016-05-24T20:08:33Z","pushed_at":"2016-07-24T16:38:07Z","git_url":"git://github.com/yuuuking/protospace.git","ssh_url":"git@github.com:yuuuking/protospace.git","clone_url":"https://github.com/yuuuking/protospace.git","svn_url":"https://github.com/yuuuking/protospace","homepage":"","size":635,"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":"yuuuking:master","ref":"master","sha":"276d2479255dc64021a7de95572955f181dda010","user":{"login":"yuuuking","id":18096211,"avatar_url":"https://avatars.githubusercontent.com/u/18096211?v=3","gravatar_id":"","url":"https://api.github.com/users/yuuuking","html_url":"https://github.com/yuuuking","followers_url":"https://api.github.com/users/yuuuking/followers","following_url":"https://api.github.com/users/yuuuking/following{/other_user}","gists_url":"https://api.github.com/users/yuuuking/gists{/gist_id}","starred_url":"https://api.github.com/users/yuuuking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuuuking/subscriptions","organizations_url":"https://api.github.com/users/yuuuking/orgs","repos_url":"https://api.github.com/users/yuuuking/repos","events_url":"https://api.github.com/users/yuuuking/events{/privacy}","received_events_url":"https://api.github.com/users/yuuuking/received_events","type":"User","site_admin":false},"repo":{"id":58660121,"name":"protospace","full_name":"yuuuking/protospace","owner":{"login":"yuuuking","id":18096211,"avatar_url":"https://avatars.githubusercontent.com/u/18096211?v=3","gravatar_id":"","url":"https://api.github.com/users/yuuuking","html_url":"https://github.com/yuuuking","followers_url":"https://api.github.com/users/yuuuking/followers","following_url":"https://api.github.com/users/yuuuking/following{/other_user}","gists_url":"https://api.github.com/users/yuuuking/gists{/gist_id}","starred_url":"https://api.github.com/users/yuuuking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuuuking/subscriptions","organizations_url":"https://api.github.com/users/yuuuking/orgs","repos_url":"https://api.github.com/users/yuuuking/repos","events_url":"https://api.github.com/users/yuuuking/events{/privacy}","received_events_url":"https://api.github.com/users/yuuuking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuuuking/protospace","description":"研修アプリ","fork":false,"url":"https://api.github.com/repos/yuuuking/protospace","forks_url":"https://api.github.com/repos/yuuuking/protospace/forks","keys_url":"https://api.github.com/repos/yuuuking/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuuuking/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuuuking/protospace/teams","hooks_url":"https://api.github.com/repos/yuuuking/protospace/hooks","issue_events_url":"https://api.github.com/repos/yuuuking/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/yuuuking/protospace/events","assignees_url":"https://api.github.com/repos/yuuuking/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/yuuuking/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/yuuuking/protospace/tags","blobs_url":"https://api.github.com/repos/yuuuking/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuuuking/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuuuking/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuuuking/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuuuking/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/yuuuking/protospace/languages","stargazers_url":"https://api.github.com/repos/yuuuking/protospace/stargazers","contributors_url":"https://api.github.com/repos/yuuuking/protospace/contributors","subscribers_url":"https://api.github.com/repos/yuuuking/protospace/subscribers","subscription_url":"https://api.github.com/repos/yuuuking/protospace/subscription","commits_url":"https://api.github.com/repos/yuuuking/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuuuking/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuuuking/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuuuking/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuuuking/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/yuuuking/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuuuking/protospace/merges","archive_url":"https://api.github.com/repos/yuuuking/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuuuking/protospace/downloads","issues_url":"https://api.github.com/repos/yuuuking/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/yuuuking/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/yuuuking/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/yuuuking/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuuuking/protospace/labels{/name}","releases_url":"https://api.github.com/repos/yuuuking/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/yuuuking/protospace/deployments","created_at":"2016-05-12T16:54:38Z","updated_at":"2016-05-24T20:08:33Z","pushed_at":"2016-07-24T16:38:07Z","git_url":"git://github.com/yuuuking/protospace.git","ssh_url":"git@github.com:yuuuking/protospace.git","clone_url":"https://github.com/yuuuking/protospace.git","svn_url":"https://github.com/yuuuking/protospace","homepage":"","size":635,"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/yuuuking/protospace/pulls/18"},"html":{"href":"https://github.com/yuuuking/protospace/pull/18"},"issue":{"href":"https://api.github.com/repos/yuuuking/protospace/issues/18"},"comments":{"href":"https://api.github.com/repos/yuuuking/protospace/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/yuuuking/protospace/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/yuuuking/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuuuking/protospace/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/yuuuking/protospace/statuses/9f0054f848c3c91367c1814f21b5d602a54c562a"}}}}
{"actor":{"display_login":"yuuuking"}}