{"action":"created","comment":{"url":"https://api.github.com/repos/MSathieu/RForum-API/pulls/comments/94107511","pull_request_review_id":14637858,"id":94107511,"diff_hunk":"@@ -9,30 +9,29 @@ class TopicsControllerTest < ActionDispatch::IntegrationTest\n     topic = topics(:topic)\n     get v1_topic_path(topic)\n     assert_response :success\n-    topic_json = JSON.parse(@response.body)\n+    topic_json = JSON.parse(@response.body)['data']\n     assert_equal topic.id, topic_json['id']\n-    assert_equal topic.name, topic_json['name']\n+    assert_equal topic.name, topic_json['attributes']['name']\n   end\n   test 'can create a topic' do\n     forum = forums(:forum)\n     post v1_topics_path,\n-         params: { forum_id: forum.id, name: 'test', token: 'example' }\n-    assert_response :success\n-    topic = Topic.find_by(name: 'test')\n-    get v1_topic_path(topic)\n-    assert_response :success\n+         params: { topic: { forum_id: forum.id, name: 'test' } }, headers: { 'Authorization' => 'Token example' }\n+    assert_response :created\n+    assert topic = Topic.find_by(name: 'test')\n+    assert_equal @response.headers['Location'], v1_topic_url(topic)\n   end\n   test 'can update a topic' do\n     topic = topics(:topic)\n     old_name = topic.name\n-    put v1_topic_path(topic), params: { name: 'test', token: 'example' }\n+    put v1_topic_path(topic), params: { topic: { name: 'test' } }, headers: { 'Authorization' => 'Token example' }","path":"test/controllers/topics_controller_test.rb","position":27,"original_position":27,"commit_id":"708113a6a62686b1bcc257e12a0cd05b2d03afbe","original_commit_id":"708113a6a62686b1bcc257e12a0cd05b2d03afbe","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [114/80]","created_at":"2016-12-29T07:23:44Z","updated_at":"2016-12-29T07:23:44Z","html_url":"https://github.com/MSathieu/RForum-API/pull/10#discussion_r94107511","pull_request_url":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/MSathieu/RForum-API/pulls/comments/94107511"},"html":{"href":"https://github.com/MSathieu/RForum-API/pull/10#discussion_r94107511"},"pull_request":{"href":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10","id":99245514,"html_url":"https://github.com/MSathieu/RForum-API/pull/10","diff_url":"https://github.com/MSathieu/RForum-API/pull/10.diff","patch_url":"https://github.com/MSathieu/RForum-API/pull/10.patch","issue_url":"https://api.github.com/repos/MSathieu/RForum-API/issues/10","number":10,"state":"open","locked":false,"title":"Fix tests","user":{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false},"body":"Closes #9 ","created_at":"2016-12-23T14:01:30Z","updated_at":"2016-12-29T07:23:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c7be4a6b7f3d0572676bae86e3e3154825f7c05","assignee":{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false},"assignees":[{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/MSathieu/RForum-API/milestones/1","html_url":"https://github.com/MSathieu/RForum-API/milestone/1","labels_url":"https://api.github.com/repos/MSathieu/RForum-API/milestones/1/labels","id":2213590,"number":1,"title":"0.1.0","description":"","creator":{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-12-23T13:34:03Z","updated_at":"2016-12-23T14:01:30Z","due_on":"2017-01-10T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10/commits","review_comments_url":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10/comments","review_comment_url":"https://api.github.com/repos/MSathieu/RForum-API/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MSathieu/RForum-API/issues/10/comments","statuses_url":"https://api.github.com/repos/MSathieu/RForum-API/statuses/708113a6a62686b1bcc257e12a0cd05b2d03afbe","head":{"label":"MSathieu:add-tests","ref":"add-tests","sha":"708113a6a62686b1bcc257e12a0cd05b2d03afbe","user":{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false},"repo":{"id":66558295,"name":"RForum-API","full_name":"MSathieu/RForum-API","owner":{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MSathieu/RForum-API","description":"A Rails forum API","fork":false,"url":"https://api.github.com/repos/MSathieu/RForum-API","forks_url":"https://api.github.com/repos/MSathieu/RForum-API/forks","keys_url":"https://api.github.com/repos/MSathieu/RForum-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MSathieu/RForum-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MSathieu/RForum-API/teams","hooks_url":"https://api.github.com/repos/MSathieu/RForum-API/hooks","issue_events_url":"https://api.github.com/repos/MSathieu/RForum-API/issues/events{/number}","events_url":"https://api.github.com/repos/MSathieu/RForum-API/events","assignees_url":"https://api.github.com/repos/MSathieu/RForum-API/assignees{/user}","branches_url":"https://api.github.com/repos/MSathieu/RForum-API/branches{/branch}","tags_url":"https://api.github.com/repos/MSathieu/RForum-API/tags","blobs_url":"https://api.github.com/repos/MSathieu/RForum-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MSathieu/RForum-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MSathieu/RForum-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/MSathieu/RForum-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MSathieu/RForum-API/statuses/{sha}","languages_url":"https://api.github.com/repos/MSathieu/RForum-API/languages","stargazers_url":"https://api.github.com/repos/MSathieu/RForum-API/stargazers","contributors_url":"https://api.github.com/repos/MSathieu/RForum-API/contributors","subscribers_url":"https://api.github.com/repos/MSathieu/RForum-API/subscribers","subscription_url":"https://api.github.com/repos/MSathieu/RForum-API/subscription","commits_url":"https://api.github.com/repos/MSathieu/RForum-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/MSathieu/RForum-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/MSathieu/RForum-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/MSathieu/RForum-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/MSathieu/RForum-API/contents/{+path}","compare_url":"https://api.github.com/repos/MSathieu/RForum-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MSathieu/RForum-API/merges","archive_url":"https://api.github.com/repos/MSathieu/RForum-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MSathieu/RForum-API/downloads","issues_url":"https://api.github.com/repos/MSathieu/RForum-API/issues{/number}","pulls_url":"https://api.github.com/repos/MSathieu/RForum-API/pulls{/number}","milestones_url":"https://api.github.com/repos/MSathieu/RForum-API/milestones{/number}","notifications_url":"https://api.github.com/repos/MSathieu/RForum-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MSathieu/RForum-API/labels{/name}","releases_url":"https://api.github.com/repos/MSathieu/RForum-API/releases{/id}","deployments_url":"https://api.github.com/repos/MSathieu/RForum-API/deployments","created_at":"2016-08-25T13:03:06Z","updated_at":"2016-12-18T08:36:00Z","pushed_at":"2016-12-29T07:23:38Z","git_url":"git://github.com/MSathieu/RForum-API.git","ssh_url":"git@github.com:MSathieu/RForum-API.git","clone_url":"https://github.com/MSathieu/RForum-API.git","svn_url":"https://github.com/MSathieu/RForum-API","homepage":"","size":502,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"MSathieu:master","ref":"master","sha":"ccc2695f15f37d0454bc75752adbf7827d61e0c2","user":{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false},"repo":{"id":66558295,"name":"RForum-API","full_name":"MSathieu/RForum-API","owner":{"login":"MSathieu","id":18145111,"avatar_url":"https://avatars.githubusercontent.com/u/18145111?v=3","gravatar_id":"","url":"https://api.github.com/users/MSathieu","html_url":"https://github.com/MSathieu","followers_url":"https://api.github.com/users/MSathieu/followers","following_url":"https://api.github.com/users/MSathieu/following{/other_user}","gists_url":"https://api.github.com/users/MSathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/MSathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSathieu/subscriptions","organizations_url":"https://api.github.com/users/MSathieu/orgs","repos_url":"https://api.github.com/users/MSathieu/repos","events_url":"https://api.github.com/users/MSathieu/events{/privacy}","received_events_url":"https://api.github.com/users/MSathieu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MSathieu/RForum-API","description":"A Rails forum API","fork":false,"url":"https://api.github.com/repos/MSathieu/RForum-API","forks_url":"https://api.github.com/repos/MSathieu/RForum-API/forks","keys_url":"https://api.github.com/repos/MSathieu/RForum-API/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MSathieu/RForum-API/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MSathieu/RForum-API/teams","hooks_url":"https://api.github.com/repos/MSathieu/RForum-API/hooks","issue_events_url":"https://api.github.com/repos/MSathieu/RForum-API/issues/events{/number}","events_url":"https://api.github.com/repos/MSathieu/RForum-API/events","assignees_url":"https://api.github.com/repos/MSathieu/RForum-API/assignees{/user}","branches_url":"https://api.github.com/repos/MSathieu/RForum-API/branches{/branch}","tags_url":"https://api.github.com/repos/MSathieu/RForum-API/tags","blobs_url":"https://api.github.com/repos/MSathieu/RForum-API/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MSathieu/RForum-API/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MSathieu/RForum-API/git/refs{/sha}","trees_url":"https://api.github.com/repos/MSathieu/RForum-API/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MSathieu/RForum-API/statuses/{sha}","languages_url":"https://api.github.com/repos/MSathieu/RForum-API/languages","stargazers_url":"https://api.github.com/repos/MSathieu/RForum-API/stargazers","contributors_url":"https://api.github.com/repos/MSathieu/RForum-API/contributors","subscribers_url":"https://api.github.com/repos/MSathieu/RForum-API/subscribers","subscription_url":"https://api.github.com/repos/MSathieu/RForum-API/subscription","commits_url":"https://api.github.com/repos/MSathieu/RForum-API/commits{/sha}","git_commits_url":"https://api.github.com/repos/MSathieu/RForum-API/git/commits{/sha}","comments_url":"https://api.github.com/repos/MSathieu/RForum-API/comments{/number}","issue_comment_url":"https://api.github.com/repos/MSathieu/RForum-API/issues/comments{/number}","contents_url":"https://api.github.com/repos/MSathieu/RForum-API/contents/{+path}","compare_url":"https://api.github.com/repos/MSathieu/RForum-API/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MSathieu/RForum-API/merges","archive_url":"https://api.github.com/repos/MSathieu/RForum-API/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MSathieu/RForum-API/downloads","issues_url":"https://api.github.com/repos/MSathieu/RForum-API/issues{/number}","pulls_url":"https://api.github.com/repos/MSathieu/RForum-API/pulls{/number}","milestones_url":"https://api.github.com/repos/MSathieu/RForum-API/milestones{/number}","notifications_url":"https://api.github.com/repos/MSathieu/RForum-API/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MSathieu/RForum-API/labels{/name}","releases_url":"https://api.github.com/repos/MSathieu/RForum-API/releases{/id}","deployments_url":"https://api.github.com/repos/MSathieu/RForum-API/deployments","created_at":"2016-08-25T13:03:06Z","updated_at":"2016-12-18T08:36:00Z","pushed_at":"2016-12-29T07:23:38Z","git_url":"git://github.com/MSathieu/RForum-API.git","ssh_url":"git@github.com:MSathieu/RForum-API.git","clone_url":"https://github.com/MSathieu/RForum-API.git","svn_url":"https://github.com/MSathieu/RForum-API","homepage":"","size":502,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10"},"html":{"href":"https://github.com/MSathieu/RForum-API/pull/10"},"issue":{"href":"https://api.github.com/repos/MSathieu/RForum-API/issues/10"},"comments":{"href":"https://api.github.com/repos/MSathieu/RForum-API/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/MSathieu/RForum-API/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MSathieu/RForum-API/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/MSathieu/RForum-API/statuses/708113a6a62686b1bcc257e12a0cd05b2d03afbe"}}}}
{"actor":{"display_login":"houndci-bot"}}