{"action":"created","comment":{"url":"https://api.github.com/repos/tsumichan/todo-app/pulls/comments/200975922","pull_request_review_id":135385761,"id":200975922,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDk3NTkyMg==","diff_hunk":"@@ -50,16 +50,28 @@\n   context '既存のタスクを削除する' do\n     let!(:task) { create(:task) }\n     it '削除する' do\n-      visit '/tasks'\n+      visit tasks_path\n       click_link I18n.t('view.task.link_text.delete')\n       expect(Task.exists?(title: title)).not_to be true\n       expect(page).not_to have_content title\n     end\n \n     it '削除完了のフラッシュメッセージが表示される' do\n-      visit '/tasks'\n+      visit tasks_path\n       click_link I18n.t('view.task.link_text.delete')\n       expect(page).to have_content I18n.t('view.task.message.deleted')\n     end\n   end\n+\n+  context 'タスクが作成日時の降順で表示される' do\n+    let! (:new_task) { create(:task, created_at: '2020-01-01') }\n+    let! (:old_task) { create(:task, created_at: '2000-01-01') }\n+\n+    it 'タスクを降順でソートする' do\n+      visit tasks_path\n+      expect(page.all('tr')[1]).to have_link('編集', href: edit_task_path(new_task.id))\n+      expect(page.all('tr')[2]).to have_link('編集', href: edit_task_path(old_task.id))\n+","path":"spec/features/tasks_spec.rb","position":45,"original_position":45,"commit_id":"6aa4c136fe0f4f0f0a031bd1d1911fbf1a44ac30","original_commit_id":"6aa4c136fe0f4f0f0a031bd1d1911fbf1a44ac30","user":{"login":"shiro16","id":6191072,"node_id":"MDQ6VXNlcjYxOTEwNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/6191072?v=4","gravatar_id":"","url":"https://api.github.com/users/shiro16","html_url":"https://github.com/shiro16","followers_url":"https://api.github.com/users/shiro16/followers","following_url":"https://api.github.com/users/shiro16/following{/other_user}","gists_url":"https://api.github.com/users/shiro16/gists{/gist_id}","starred_url":"https://api.github.com/users/shiro16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiro16/subscriptions","organizations_url":"https://api.github.com/users/shiro16/orgs","repos_url":"https://api.github.com/users/shiro16/repos","events_url":"https://api.github.com/users/shiro16/events{/privacy}","received_events_url":"https://api.github.com/users/shiro16/received_events","type":"User","site_admin":false},"body":"すごく細かいけど謎の改行が","created_at":"2018-07-09T11:59:16Z","updated_at":"2018-07-09T11:59:16Z","html_url":"https://github.com/tsumichan/todo-app/pull/25#discussion_r200975922","pull_request_url":"https://api.github.com/repos/tsumichan/todo-app/pulls/25","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/tsumichan/todo-app/pulls/comments/200975922"},"html":{"href":"https://github.com/tsumichan/todo-app/pull/25#discussion_r200975922"},"pull_request":{"href":"https://api.github.com/repos/tsumichan/todo-app/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/tsumichan/todo-app/pulls/25","id":200037589,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMDM3NTg5","html_url":"https://github.com/tsumichan/todo-app/pull/25","diff_url":"https://github.com/tsumichan/todo-app/pull/25.diff","patch_url":"https://github.com/tsumichan/todo-app/pull/25.patch","issue_url":"https://api.github.com/repos/tsumichan/todo-app/issues/25","number":25,"state":"open","locked":false,"title":"タスク一覧を作成日時順に並び替える","user":{"login":"tsumichan","id":14156156,"node_id":"MDQ6VXNlcjE0MTU2MTU2","avatar_url":"https://avatars0.githubusercontent.com/u/14156156?v=4","gravatar_id":"","url":"https://api.github.com/users/tsumichan","html_url":"https://github.com/tsumichan","followers_url":"https://api.github.com/users/tsumichan/followers","following_url":"https://api.github.com/users/tsumichan/following{/other_user}","gists_url":"https://api.github.com/users/tsumichan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsumichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsumichan/subscriptions","organizations_url":"https://api.github.com/users/tsumichan/orgs","repos_url":"https://api.github.com/users/tsumichan/repos","events_url":"https://api.github.com/users/tsumichan/events{/privacy}","received_events_url":"https://api.github.com/users/tsumichan/received_events","type":"User","site_admin":false},"body":"## 何をやったか\r\nタスク一覧を作成日時順（上から新しい順）に並び替えました（[ステップ11](https://github.com/everyleaf/el-training/blob/master/docs/el-training.md#%E3%82%B9%E3%83%86%E3%83%83%E3%83%9711-%E3%82%BF%E3%82%B9%E3%82%AF%E4%B8%80%E8%A6%A7%E3%82%92%E4%BD%9C%E6%88%90%E6%97%A5%E6%99%82%E3%81%AE%E9%A0%86%E7%95%AA%E3%81%A7%E4%B8%A6%E3%81%B3%E6%9B%BF%E3%81%88%E3%82%88%E3%81%86)）\r\n\r\n## レビューポイント\r\n\r\n- 余計なインデント、スペースがないか\r\n- タスク一覧を作成日時順に並び替える処理が正しく書けているかどうか\r\n- 無駄な記述の仕方をしていないか\r\n\r\n## レビュアー\r\n@shiro16 さん、 @june29 さんどちらかは必須\r\n\r\nその他どなたでもお願いします :pray:\r\n","created_at":"2018-07-09T09:17:10Z","updated_at":"2018-07-09T11:59:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb5088a5e48d1fb221c6f590b9be446e9bf499f5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":971117622,"node_id":"MDU6TGFiZWw5NzExMTc2MjI=","url":"https://api.github.com/repos/tsumichan/todo-app/labels/In%20Review","name":"In Review","color":"ffcccf","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/tsumichan/todo-app/pulls/25/commits","review_comments_url":"https://api.github.com/repos/tsumichan/todo-app/pulls/25/comments","review_comment_url":"https://api.github.com/repos/tsumichan/todo-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tsumichan/todo-app/issues/25/comments","statuses_url":"https://api.github.com/repos/tsumichan/todo-app/statuses/6aa4c136fe0f4f0f0a031bd1d1911fbf1a44ac30","head":{"label":"tsumichan:sort-task","ref":"sort-task","sha":"6aa4c136fe0f4f0f0a031bd1d1911fbf1a44ac30","user":{"login":"tsumichan","id":14156156,"node_id":"MDQ6VXNlcjE0MTU2MTU2","avatar_url":"https://avatars0.githubusercontent.com/u/14156156?v=4","gravatar_id":"","url":"https://api.github.com/users/tsumichan","html_url":"https://github.com/tsumichan","followers_url":"https://api.github.com/users/tsumichan/followers","following_url":"https://api.github.com/users/tsumichan/following{/other_user}","gists_url":"https://api.github.com/users/tsumichan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsumichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsumichan/subscriptions","organizations_url":"https://api.github.com/users/tsumichan/orgs","repos_url":"https://api.github.com/users/tsumichan/repos","events_url":"https://api.github.com/users/tsumichan/events{/privacy}","received_events_url":"https://api.github.com/users/tsumichan/received_events","type":"User","site_admin":false},"repo":{"id":137708257,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MDgyNTc=","name":"todo-app","full_name":"tsumichan/todo-app","owner":{"login":"tsumichan","id":14156156,"node_id":"MDQ6VXNlcjE0MTU2MTU2","avatar_url":"https://avatars0.githubusercontent.com/u/14156156?v=4","gravatar_id":"","url":"https://api.github.com/users/tsumichan","html_url":"https://github.com/tsumichan","followers_url":"https://api.github.com/users/tsumichan/followers","following_url":"https://api.github.com/users/tsumichan/following{/other_user}","gists_url":"https://api.github.com/users/tsumichan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsumichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsumichan/subscriptions","organizations_url":"https://api.github.com/users/tsumichan/orgs","repos_url":"https://api.github.com/users/tsumichan/repos","events_url":"https://api.github.com/users/tsumichan/events{/privacy}","received_events_url":"https://api.github.com/users/tsumichan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tsumichan/todo-app","description":null,"fork":false,"url":"https://api.github.com/repos/tsumichan/todo-app","forks_url":"https://api.github.com/repos/tsumichan/todo-app/forks","keys_url":"https://api.github.com/repos/tsumichan/todo-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsumichan/todo-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsumichan/todo-app/teams","hooks_url":"https://api.github.com/repos/tsumichan/todo-app/hooks","issue_events_url":"https://api.github.com/repos/tsumichan/todo-app/issues/events{/number}","events_url":"https://api.github.com/repos/tsumichan/todo-app/events","assignees_url":"https://api.github.com/repos/tsumichan/todo-app/assignees{/user}","branches_url":"https://api.github.com/repos/tsumichan/todo-app/branches{/branch}","tags_url":"https://api.github.com/repos/tsumichan/todo-app/tags","blobs_url":"https://api.github.com/repos/tsumichan/todo-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsumichan/todo-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsumichan/todo-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsumichan/todo-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsumichan/todo-app/statuses/{sha}","languages_url":"https://api.github.com/repos/tsumichan/todo-app/languages","stargazers_url":"https://api.github.com/repos/tsumichan/todo-app/stargazers","contributors_url":"https://api.github.com/repos/tsumichan/todo-app/contributors","subscribers_url":"https://api.github.com/repos/tsumichan/todo-app/subscribers","subscription_url":"https://api.github.com/repos/tsumichan/todo-app/subscription","commits_url":"https://api.github.com/repos/tsumichan/todo-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsumichan/todo-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsumichan/todo-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsumichan/todo-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsumichan/todo-app/contents/{+path}","compare_url":"https://api.github.com/repos/tsumichan/todo-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsumichan/todo-app/merges","archive_url":"https://api.github.com/repos/tsumichan/todo-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsumichan/todo-app/downloads","issues_url":"https://api.github.com/repos/tsumichan/todo-app/issues{/number}","pulls_url":"https://api.github.com/repos/tsumichan/todo-app/pulls{/number}","milestones_url":"https://api.github.com/repos/tsumichan/todo-app/milestones{/number}","notifications_url":"https://api.github.com/repos/tsumichan/todo-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsumichan/todo-app/labels{/name}","releases_url":"https://api.github.com/repos/tsumichan/todo-app/releases{/id}","deployments_url":"https://api.github.com/repos/tsumichan/todo-app/deployments","created_at":"2018-06-18T04:01:26Z","updated_at":"2018-07-09T05:11:18Z","pushed_at":"2018-07-09T09:36:27Z","git_url":"git://github.com/tsumichan/todo-app.git","ssh_url":"git@github.com:tsumichan/todo-app.git","clone_url":"https://github.com/tsumichan/todo-app.git","svn_url":"https://github.com/tsumichan/todo-app","homepage":null,"size":41520,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"tsumichan:master","ref":"master","sha":"f26c36b3d58a0f1890d52193b745436edfa12e1a","user":{"login":"tsumichan","id":14156156,"node_id":"MDQ6VXNlcjE0MTU2MTU2","avatar_url":"https://avatars0.githubusercontent.com/u/14156156?v=4","gravatar_id":"","url":"https://api.github.com/users/tsumichan","html_url":"https://github.com/tsumichan","followers_url":"https://api.github.com/users/tsumichan/followers","following_url":"https://api.github.com/users/tsumichan/following{/other_user}","gists_url":"https://api.github.com/users/tsumichan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsumichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsumichan/subscriptions","organizations_url":"https://api.github.com/users/tsumichan/orgs","repos_url":"https://api.github.com/users/tsumichan/repos","events_url":"https://api.github.com/users/tsumichan/events{/privacy}","received_events_url":"https://api.github.com/users/tsumichan/received_events","type":"User","site_admin":false},"repo":{"id":137708257,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MDgyNTc=","name":"todo-app","full_name":"tsumichan/todo-app","owner":{"login":"tsumichan","id":14156156,"node_id":"MDQ6VXNlcjE0MTU2MTU2","avatar_url":"https://avatars0.githubusercontent.com/u/14156156?v=4","gravatar_id":"","url":"https://api.github.com/users/tsumichan","html_url":"https://github.com/tsumichan","followers_url":"https://api.github.com/users/tsumichan/followers","following_url":"https://api.github.com/users/tsumichan/following{/other_user}","gists_url":"https://api.github.com/users/tsumichan/gists{/gist_id}","starred_url":"https://api.github.com/users/tsumichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsumichan/subscriptions","organizations_url":"https://api.github.com/users/tsumichan/orgs","repos_url":"https://api.github.com/users/tsumichan/repos","events_url":"https://api.github.com/users/tsumichan/events{/privacy}","received_events_url":"https://api.github.com/users/tsumichan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tsumichan/todo-app","description":null,"fork":false,"url":"https://api.github.com/repos/tsumichan/todo-app","forks_url":"https://api.github.com/repos/tsumichan/todo-app/forks","keys_url":"https://api.github.com/repos/tsumichan/todo-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsumichan/todo-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsumichan/todo-app/teams","hooks_url":"https://api.github.com/repos/tsumichan/todo-app/hooks","issue_events_url":"https://api.github.com/repos/tsumichan/todo-app/issues/events{/number}","events_url":"https://api.github.com/repos/tsumichan/todo-app/events","assignees_url":"https://api.github.com/repos/tsumichan/todo-app/assignees{/user}","branches_url":"https://api.github.com/repos/tsumichan/todo-app/branches{/branch}","tags_url":"https://api.github.com/repos/tsumichan/todo-app/tags","blobs_url":"https://api.github.com/repos/tsumichan/todo-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsumichan/todo-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsumichan/todo-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsumichan/todo-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsumichan/todo-app/statuses/{sha}","languages_url":"https://api.github.com/repos/tsumichan/todo-app/languages","stargazers_url":"https://api.github.com/repos/tsumichan/todo-app/stargazers","contributors_url":"https://api.github.com/repos/tsumichan/todo-app/contributors","subscribers_url":"https://api.github.com/repos/tsumichan/todo-app/subscribers","subscription_url":"https://api.github.com/repos/tsumichan/todo-app/subscription","commits_url":"https://api.github.com/repos/tsumichan/todo-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsumichan/todo-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsumichan/todo-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsumichan/todo-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsumichan/todo-app/contents/{+path}","compare_url":"https://api.github.com/repos/tsumichan/todo-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsumichan/todo-app/merges","archive_url":"https://api.github.com/repos/tsumichan/todo-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsumichan/todo-app/downloads","issues_url":"https://api.github.com/repos/tsumichan/todo-app/issues{/number}","pulls_url":"https://api.github.com/repos/tsumichan/todo-app/pulls{/number}","milestones_url":"https://api.github.com/repos/tsumichan/todo-app/milestones{/number}","notifications_url":"https://api.github.com/repos/tsumichan/todo-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsumichan/todo-app/labels{/name}","releases_url":"https://api.github.com/repos/tsumichan/todo-app/releases{/id}","deployments_url":"https://api.github.com/repos/tsumichan/todo-app/deployments","created_at":"2018-06-18T04:01:26Z","updated_at":"2018-07-09T05:11:18Z","pushed_at":"2018-07-09T09:36:27Z","git_url":"git://github.com/tsumichan/todo-app.git","ssh_url":"git@github.com:tsumichan/todo-app.git","clone_url":"https://github.com/tsumichan/todo-app.git","svn_url":"https://github.com/tsumichan/todo-app","homepage":null,"size":41520,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tsumichan/todo-app/pulls/25"},"html":{"href":"https://github.com/tsumichan/todo-app/pull/25"},"issue":{"href":"https://api.github.com/repos/tsumichan/todo-app/issues/25"},"comments":{"href":"https://api.github.com/repos/tsumichan/todo-app/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/tsumichan/todo-app/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/tsumichan/todo-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tsumichan/todo-app/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/tsumichan/todo-app/statuses/6aa4c136fe0f4f0f0a031bd1d1911fbf1a44ac30"}},"author_association":"OWNER"}}
{"actor":{"display_login":"shiro16"}}