{"action":"created","comment":{"url":"https://api.github.com/repos/ahastudio/CodingLife/pulls/comments/48449304","id":48449304,"diff_hunk":"@@ -0,0 +1,53 @@\n+require 'test_helper'\n+\n+class CommentsControllerTest < ActionDispatch::IntegrationTest\n+  setup do\n+    @post = posts(:one)\n+    @comment = comments(:one)\n+  end\n+\n+  test \"should get index\" do\n+    get comments_url(post_id: @post)\n+    assert_response :success\n+  end\n+\n+  test \"should get new\" do\n+    get new_comment_url(post_id: @post)\n+    assert_response :success\n+  end\n+\n+  test \"should create comment\" do\n+    assert_difference('Comment.count') do\n+      post comments_url(post_id: @post), params: {\n+        comment: { body: @comment.body }\n+      }\n+    end\n+\n+    assert_redirected_to comment_path(Comment.last)\n+  end\n+\n+  test \"should show comment\" do\n+    get comment_url(@comment)\n+    assert_response :success\n+  end\n+\n+  test \"should get edit\" do\n+    get edit_comment_url(@comment)\n+    assert_response :success\n+  end\n+\n+  test \"should update comment\" do\n+    patch comment_url(@comment), params: {\n+      comment: { body: @comment.body }\n+    }\n+    assert_redirected_to comment_path(@comment)\n+  end\n+\n+  test \"should destroy comment\" do","path":"20151222/rails-5.0.0.beta1-demo/test/controllers/comments_controller_test.rb","position":46,"original_position":46,"commit_id":"e66c0da6583d3ed88be96de879c0d253cfe91ba5","original_commit_id":"e66c0da6583d3ed88be96de879c0d253cfe91ba5","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2015-12-26T19:43:52Z","updated_at":"2015-12-26T19:43:52Z","html_url":"https://github.com/ahastudio/CodingLife/pull/2#discussion_r48449304","pull_request_url":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ahastudio/CodingLife/pulls/comments/48449304"},"html":{"href":"https://github.com/ahastudio/CodingLife/pull/2#discussion_r48449304"},"pull_request":{"href":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2","id":54511858,"html_url":"https://github.com/ahastudio/CodingLife/pull/2","diff_url":"https://github.com/ahastudio/CodingLife/pull/2.diff","patch_url":"https://github.com/ahastudio/CodingLife/pull/2.patch","issue_url":"https://api.github.com/repos/ahastudio/CodingLife/issues/2","number":2,"state":"open","locked":false,"title":"Hound 테스트 - Comments Scaffold 추가","user":{"login":"ahastudio","id":36392,"avatar_url":"https://avatars.githubusercontent.com/u/36392?v=3","gravatar_id":"","url":"https://api.github.com/users/ahastudio","html_url":"https://github.com/ahastudio","followers_url":"https://api.github.com/users/ahastudio/followers","following_url":"https://api.github.com/users/ahastudio/following{/other_user}","gists_url":"https://api.github.com/users/ahastudio/gists{/gist_id}","starred_url":"https://api.github.com/users/ahastudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahastudio/subscriptions","organizations_url":"https://api.github.com/users/ahastudio/orgs","repos_url":"https://api.github.com/users/ahastudio/repos","events_url":"https://api.github.com/users/ahastudio/events{/privacy}","received_events_url":"https://api.github.com/users/ahastudio/received_events","type":"User","site_admin":false},"body":"http://houndci.com/\r\n\r\nhttps://github.com/thoughtbot/hound","created_at":"2015-12-23T22:23:21Z","updated_at":"2015-12-26T19:43:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd2b0cd53b1403cf3d4461d354d4191f167fc6d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ahastudio/CodingLife/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ahastudio/CodingLife/issues/2/comments","statuses_url":"https://api.github.com/repos/ahastudio/CodingLife/statuses/e66c0da6583d3ed88be96de879c0d253cfe91ba5","head":{"label":"ahastudio:test-hound","ref":"test-hound","sha":"e66c0da6583d3ed88be96de879c0d253cfe91ba5","user":{"login":"ahastudio","id":36392,"avatar_url":"https://avatars.githubusercontent.com/u/36392?v=3","gravatar_id":"","url":"https://api.github.com/users/ahastudio","html_url":"https://github.com/ahastudio","followers_url":"https://api.github.com/users/ahastudio/followers","following_url":"https://api.github.com/users/ahastudio/following{/other_user}","gists_url":"https://api.github.com/users/ahastudio/gists{/gist_id}","starred_url":"https://api.github.com/users/ahastudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahastudio/subscriptions","organizations_url":"https://api.github.com/users/ahastudio/orgs","repos_url":"https://api.github.com/users/ahastudio/repos","events_url":"https://api.github.com/users/ahastudio/events{/privacy}","received_events_url":"https://api.github.com/users/ahastudio/received_events","type":"User","site_admin":false},"repo":{"id":19508919,"name":"CodingLife","full_name":"ahastudio/CodingLife","owner":{"login":"ahastudio","id":36392,"avatar_url":"https://avatars.githubusercontent.com/u/36392?v=3","gravatar_id":"","url":"https://api.github.com/users/ahastudio","html_url":"https://github.com/ahastudio","followers_url":"https://api.github.com/users/ahastudio/followers","following_url":"https://api.github.com/users/ahastudio/following{/other_user}","gists_url":"https://api.github.com/users/ahastudio/gists{/gist_id}","starred_url":"https://api.github.com/users/ahastudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahastudio/subscriptions","organizations_url":"https://api.github.com/users/ahastudio/orgs","repos_url":"https://api.github.com/users/ahastudio/repos","events_url":"https://api.github.com/users/ahastudio/events{/privacy}","received_events_url":"https://api.github.com/users/ahastudio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahastudio/CodingLife","description":"Coding Life","fork":false,"url":"https://api.github.com/repos/ahastudio/CodingLife","forks_url":"https://api.github.com/repos/ahastudio/CodingLife/forks","keys_url":"https://api.github.com/repos/ahastudio/CodingLife/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahastudio/CodingLife/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahastudio/CodingLife/teams","hooks_url":"https://api.github.com/repos/ahastudio/CodingLife/hooks","issue_events_url":"https://api.github.com/repos/ahastudio/CodingLife/issues/events{/number}","events_url":"https://api.github.com/repos/ahastudio/CodingLife/events","assignees_url":"https://api.github.com/repos/ahastudio/CodingLife/assignees{/user}","branches_url":"https://api.github.com/repos/ahastudio/CodingLife/branches{/branch}","tags_url":"https://api.github.com/repos/ahastudio/CodingLife/tags","blobs_url":"https://api.github.com/repos/ahastudio/CodingLife/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahastudio/CodingLife/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahastudio/CodingLife/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahastudio/CodingLife/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahastudio/CodingLife/statuses/{sha}","languages_url":"https://api.github.com/repos/ahastudio/CodingLife/languages","stargazers_url":"https://api.github.com/repos/ahastudio/CodingLife/stargazers","contributors_url":"https://api.github.com/repos/ahastudio/CodingLife/contributors","subscribers_url":"https://api.github.com/repos/ahastudio/CodingLife/subscribers","subscription_url":"https://api.github.com/repos/ahastudio/CodingLife/subscription","commits_url":"https://api.github.com/repos/ahastudio/CodingLife/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahastudio/CodingLife/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahastudio/CodingLife/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahastudio/CodingLife/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahastudio/CodingLife/contents/{+path}","compare_url":"https://api.github.com/repos/ahastudio/CodingLife/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahastudio/CodingLife/merges","archive_url":"https://api.github.com/repos/ahastudio/CodingLife/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahastudio/CodingLife/downloads","issues_url":"https://api.github.com/repos/ahastudio/CodingLife/issues{/number}","pulls_url":"https://api.github.com/repos/ahastudio/CodingLife/pulls{/number}","milestones_url":"https://api.github.com/repos/ahastudio/CodingLife/milestones{/number}","notifications_url":"https://api.github.com/repos/ahastudio/CodingLife/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahastudio/CodingLife/labels{/name}","releases_url":"https://api.github.com/repos/ahastudio/CodingLife/releases{/id}","created_at":"2014-05-06T20:07:00Z","updated_at":"2015-12-22T14:32:54Z","pushed_at":"2015-12-26T19:43:48Z","git_url":"git://github.com/ahastudio/CodingLife.git","ssh_url":"git@github.com:ahastudio/CodingLife.git","clone_url":"https://github.com/ahastudio/CodingLife.git","svn_url":"https://github.com/ahastudio/CodingLife","homepage":"http://j.mp/1lvVLEb","size":1220,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":12,"default_branch":"master"}},"base":{"label":"ahastudio:master","ref":"master","sha":"fe5233b0a73ecbeb7dde6fe647c1cc663aec5a1d","user":{"login":"ahastudio","id":36392,"avatar_url":"https://avatars.githubusercontent.com/u/36392?v=3","gravatar_id":"","url":"https://api.github.com/users/ahastudio","html_url":"https://github.com/ahastudio","followers_url":"https://api.github.com/users/ahastudio/followers","following_url":"https://api.github.com/users/ahastudio/following{/other_user}","gists_url":"https://api.github.com/users/ahastudio/gists{/gist_id}","starred_url":"https://api.github.com/users/ahastudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahastudio/subscriptions","organizations_url":"https://api.github.com/users/ahastudio/orgs","repos_url":"https://api.github.com/users/ahastudio/repos","events_url":"https://api.github.com/users/ahastudio/events{/privacy}","received_events_url":"https://api.github.com/users/ahastudio/received_events","type":"User","site_admin":false},"repo":{"id":19508919,"name":"CodingLife","full_name":"ahastudio/CodingLife","owner":{"login":"ahastudio","id":36392,"avatar_url":"https://avatars.githubusercontent.com/u/36392?v=3","gravatar_id":"","url":"https://api.github.com/users/ahastudio","html_url":"https://github.com/ahastudio","followers_url":"https://api.github.com/users/ahastudio/followers","following_url":"https://api.github.com/users/ahastudio/following{/other_user}","gists_url":"https://api.github.com/users/ahastudio/gists{/gist_id}","starred_url":"https://api.github.com/users/ahastudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahastudio/subscriptions","organizations_url":"https://api.github.com/users/ahastudio/orgs","repos_url":"https://api.github.com/users/ahastudio/repos","events_url":"https://api.github.com/users/ahastudio/events{/privacy}","received_events_url":"https://api.github.com/users/ahastudio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ahastudio/CodingLife","description":"Coding Life","fork":false,"url":"https://api.github.com/repos/ahastudio/CodingLife","forks_url":"https://api.github.com/repos/ahastudio/CodingLife/forks","keys_url":"https://api.github.com/repos/ahastudio/CodingLife/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ahastudio/CodingLife/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ahastudio/CodingLife/teams","hooks_url":"https://api.github.com/repos/ahastudio/CodingLife/hooks","issue_events_url":"https://api.github.com/repos/ahastudio/CodingLife/issues/events{/number}","events_url":"https://api.github.com/repos/ahastudio/CodingLife/events","assignees_url":"https://api.github.com/repos/ahastudio/CodingLife/assignees{/user}","branches_url":"https://api.github.com/repos/ahastudio/CodingLife/branches{/branch}","tags_url":"https://api.github.com/repos/ahastudio/CodingLife/tags","blobs_url":"https://api.github.com/repos/ahastudio/CodingLife/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ahastudio/CodingLife/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ahastudio/CodingLife/git/refs{/sha}","trees_url":"https://api.github.com/repos/ahastudio/CodingLife/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ahastudio/CodingLife/statuses/{sha}","languages_url":"https://api.github.com/repos/ahastudio/CodingLife/languages","stargazers_url":"https://api.github.com/repos/ahastudio/CodingLife/stargazers","contributors_url":"https://api.github.com/repos/ahastudio/CodingLife/contributors","subscribers_url":"https://api.github.com/repos/ahastudio/CodingLife/subscribers","subscription_url":"https://api.github.com/repos/ahastudio/CodingLife/subscription","commits_url":"https://api.github.com/repos/ahastudio/CodingLife/commits{/sha}","git_commits_url":"https://api.github.com/repos/ahastudio/CodingLife/git/commits{/sha}","comments_url":"https://api.github.com/repos/ahastudio/CodingLife/comments{/number}","issue_comment_url":"https://api.github.com/repos/ahastudio/CodingLife/issues/comments{/number}","contents_url":"https://api.github.com/repos/ahastudio/CodingLife/contents/{+path}","compare_url":"https://api.github.com/repos/ahastudio/CodingLife/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ahastudio/CodingLife/merges","archive_url":"https://api.github.com/repos/ahastudio/CodingLife/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ahastudio/CodingLife/downloads","issues_url":"https://api.github.com/repos/ahastudio/CodingLife/issues{/number}","pulls_url":"https://api.github.com/repos/ahastudio/CodingLife/pulls{/number}","milestones_url":"https://api.github.com/repos/ahastudio/CodingLife/milestones{/number}","notifications_url":"https://api.github.com/repos/ahastudio/CodingLife/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ahastudio/CodingLife/labels{/name}","releases_url":"https://api.github.com/repos/ahastudio/CodingLife/releases{/id}","created_at":"2014-05-06T20:07:00Z","updated_at":"2015-12-22T14:32:54Z","pushed_at":"2015-12-26T19:43:48Z","git_url":"git://github.com/ahastudio/CodingLife.git","ssh_url":"git@github.com:ahastudio/CodingLife.git","clone_url":"https://github.com/ahastudio/CodingLife.git","svn_url":"https://github.com/ahastudio/CodingLife","homepage":"http://j.mp/1lvVLEb","size":1220,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2"},"html":{"href":"https://github.com/ahastudio/CodingLife/pull/2"},"issue":{"href":"https://api.github.com/repos/ahastudio/CodingLife/issues/2"},"comments":{"href":"https://api.github.com/repos/ahastudio/CodingLife/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ahastudio/CodingLife/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ahastudio/CodingLife/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ahastudio/CodingLife/statuses/e66c0da6583d3ed88be96de879c0d253cfe91ba5"}}}}