{"action":"created","comment":{"url":"https://api.github.com/repos/bm-sms/daimon-news/pulls/comments/93161011","pull_request_review_id":13682662,"id":93161011,"diff_hunk":"@@ -636,4 +636,72 @@ class EditorTest < ActionDispatch::IntegrationTest\n       assert_equal(expected, names)\n     end\n   end\n+\n+  sub_test_case \"PickupPost\" do\n+    setup do\n+      create(:post, :whatever, site: @site, title: \"Ruby\")\n+      create(:post, :whatever, site: @site, title: \"Python\")\n+    end\n+\n+    test \"create, edit, destory\" do\n+      click_on(\"ピックアップ記事\")\n+      click_on(\"New Pickup Post\")\n+\n+      select(\"Ruby\", from: \"pickup_post_post_id\")\n+\n+      click_on(\"登録する\")\n+\n+      assert(page.has_css?(\"td\", text: \"Ruby\"))\n+\n+      within(:row, \"Ruby\") do\n+        click_on(\"Edit\")\n+      end\n+\n+      select(\"Python\", from: \"pickup_post_post_id\")\n+\n+      click_on(\"更新する\")\n+\n+      assert(page.has_css?(\"td\", text: \"Python\"))\n+\n+      within(:row, \"Python\") do\n+        click_on(\"Destroy\")\n+      end\n+\n+      assert_equal(\"/editor/pickup_posts\", page.current_path)\n+      assert_not(page.has_css?(\"td\", text: \"Python\"))\n+    end\n+  end\n+\n+  sub_test_case \"PickupPostSort\" do\n+    setup do\n+      @pickup_posts = []\n+      [\"Ruby\", \"Python\", \"PHP\", \"C++\", \"JavaScript\"].each_with_index do |name, index|","path":"test/integration/editor_test.rb","position":43,"original_position":43,"commit_id":"84a2cb25b859d0de16c5d6d131506ccea3ec9793","original_commit_id":"84a2cb25b859d0de16c5d6d131506ccea3ec9793","user":{"login":"tricknotes","id":290782,"avatar_url":"https://avatars.githubusercontent.com/u/290782?v=3","gravatar_id":"","url":"https://api.github.com/users/tricknotes","html_url":"https://github.com/tricknotes","followers_url":"https://api.github.com/users/tricknotes/followers","following_url":"https://api.github.com/users/tricknotes/following{/other_user}","gists_url":"https://api.github.com/users/tricknotes/gists{/gist_id}","starred_url":"https://api.github.com/users/tricknotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tricknotes/subscriptions","organizations_url":"https://api.github.com/users/tricknotes/orgs","repos_url":"https://api.github.com/users/tricknotes/repos","events_url":"https://api.github.com/users/tricknotes/events{/privacy}","received_events_url":"https://api.github.com/users/tricknotes/received_events","type":"User","site_admin":false},"body":"Can you use `map.with_index` instead of `each_with_index` ?","created_at":"2016-12-20T02:20:24Z","updated_at":"2016-12-20T02:20:24Z","html_url":"https://github.com/bm-sms/daimon-news/pull/655#discussion_r93161011","pull_request_url":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655","_links":{"self":{"href":"https://api.github.com/repos/bm-sms/daimon-news/pulls/comments/93161011"},"html":{"href":"https://github.com/bm-sms/daimon-news/pull/655#discussion_r93161011"},"pull_request":{"href":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655"}}},"pull_request":{"url":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655","id":94729465,"html_url":"https://github.com/bm-sms/daimon-news/pull/655","diff_url":"https://github.com/bm-sms/daimon-news/pull/655.diff","patch_url":"https://github.com/bm-sms/daimon-news/pull/655.patch","issue_url":"https://api.github.com/repos/bm-sms/daimon-news/issues/655","number":655,"state":"open","locked":false,"title":"Pickup Posts","user":{"login":"ryota-sasabe","id":14937777,"avatar_url":"https://avatars.githubusercontent.com/u/14937777?v=3","gravatar_id":"","url":"https://api.github.com/users/ryota-sasabe","html_url":"https://github.com/ryota-sasabe","followers_url":"https://api.github.com/users/ryota-sasabe/followers","following_url":"https://api.github.com/users/ryota-sasabe/following{/other_user}","gists_url":"https://api.github.com/users/ryota-sasabe/gists{/gist_id}","starred_url":"https://api.github.com/users/ryota-sasabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryota-sasabe/subscriptions","organizations_url":"https://api.github.com/users/ryota-sasabe/orgs","repos_url":"https://api.github.com/users/ryota-sasabe/repos","events_url":"https://api.github.com/users/ryota-sasabe/events{/privacy}","received_events_url":"https://api.github.com/users/ryota-sasabe/received_events","type":"User","site_admin":false},"body":"ref https://github.com/bm-sms/daimon-news-misc/issues/175","created_at":"2016-11-22T01:06:25Z","updated_at":"2016-12-20T02:20:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a15e9cb19bede8c71c22d4ee29d48b95d714ffe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655/commits","review_comments_url":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655/comments","review_comment_url":"https://api.github.com/repos/bm-sms/daimon-news/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bm-sms/daimon-news/issues/655/comments","statuses_url":"https://api.github.com/repos/bm-sms/daimon-news/statuses/84a2cb25b859d0de16c5d6d131506ccea3ec9793","head":{"label":"bm-sms:pickup_posts","ref":"pickup_posts","sha":"84a2cb25b859d0de16c5d6d131506ccea3ec9793","user":{"login":"bm-sms","id":11305323,"avatar_url":"https://avatars.githubusercontent.com/u/11305323?v=3","gravatar_id":"","url":"https://api.github.com/users/bm-sms","html_url":"https://github.com/bm-sms","followers_url":"https://api.github.com/users/bm-sms/followers","following_url":"https://api.github.com/users/bm-sms/following{/other_user}","gists_url":"https://api.github.com/users/bm-sms/gists{/gist_id}","starred_url":"https://api.github.com/users/bm-sms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm-sms/subscriptions","organizations_url":"https://api.github.com/users/bm-sms/orgs","repos_url":"https://api.github.com/users/bm-sms/repos","events_url":"https://api.github.com/users/bm-sms/events{/privacy}","received_events_url":"https://api.github.com/users/bm-sms/received_events","type":"Organization","site_admin":false},"repo":{"id":46255953,"name":"daimon-news","full_name":"bm-sms/daimon-news","owner":{"login":"bm-sms","id":11305323,"avatar_url":"https://avatars.githubusercontent.com/u/11305323?v=3","gravatar_id":"","url":"https://api.github.com/users/bm-sms","html_url":"https://github.com/bm-sms","followers_url":"https://api.github.com/users/bm-sms/followers","following_url":"https://api.github.com/users/bm-sms/following{/other_user}","gists_url":"https://api.github.com/users/bm-sms/gists{/gist_id}","starred_url":"https://api.github.com/users/bm-sms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm-sms/subscriptions","organizations_url":"https://api.github.com/users/bm-sms/orgs","repos_url":"https://api.github.com/users/bm-sms/repos","events_url":"https://api.github.com/users/bm-sms/events{/privacy}","received_events_url":"https://api.github.com/users/bm-sms/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bm-sms/daimon-news","description":null,"fork":false,"url":"https://api.github.com/repos/bm-sms/daimon-news","forks_url":"https://api.github.com/repos/bm-sms/daimon-news/forks","keys_url":"https://api.github.com/repos/bm-sms/daimon-news/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bm-sms/daimon-news/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bm-sms/daimon-news/teams","hooks_url":"https://api.github.com/repos/bm-sms/daimon-news/hooks","issue_events_url":"https://api.github.com/repos/bm-sms/daimon-news/issues/events{/number}","events_url":"https://api.github.com/repos/bm-sms/daimon-news/events","assignees_url":"https://api.github.com/repos/bm-sms/daimon-news/assignees{/user}","branches_url":"https://api.github.com/repos/bm-sms/daimon-news/branches{/branch}","tags_url":"https://api.github.com/repos/bm-sms/daimon-news/tags","blobs_url":"https://api.github.com/repos/bm-sms/daimon-news/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bm-sms/daimon-news/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bm-sms/daimon-news/git/refs{/sha}","trees_url":"https://api.github.com/repos/bm-sms/daimon-news/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bm-sms/daimon-news/statuses/{sha}","languages_url":"https://api.github.com/repos/bm-sms/daimon-news/languages","stargazers_url":"https://api.github.com/repos/bm-sms/daimon-news/stargazers","contributors_url":"https://api.github.com/repos/bm-sms/daimon-news/contributors","subscribers_url":"https://api.github.com/repos/bm-sms/daimon-news/subscribers","subscription_url":"https://api.github.com/repos/bm-sms/daimon-news/subscription","commits_url":"https://api.github.com/repos/bm-sms/daimon-news/commits{/sha}","git_commits_url":"https://api.github.com/repos/bm-sms/daimon-news/git/commits{/sha}","comments_url":"https://api.github.com/repos/bm-sms/daimon-news/comments{/number}","issue_comment_url":"https://api.github.com/repos/bm-sms/daimon-news/issues/comments{/number}","contents_url":"https://api.github.com/repos/bm-sms/daimon-news/contents/{+path}","compare_url":"https://api.github.com/repos/bm-sms/daimon-news/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bm-sms/daimon-news/merges","archive_url":"https://api.github.com/repos/bm-sms/daimon-news/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bm-sms/daimon-news/downloads","issues_url":"https://api.github.com/repos/bm-sms/daimon-news/issues{/number}","pulls_url":"https://api.github.com/repos/bm-sms/daimon-news/pulls{/number}","milestones_url":"https://api.github.com/repos/bm-sms/daimon-news/milestones{/number}","notifications_url":"https://api.github.com/repos/bm-sms/daimon-news/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bm-sms/daimon-news/labels{/name}","releases_url":"https://api.github.com/repos/bm-sms/daimon-news/releases{/id}","deployments_url":"https://api.github.com/repos/bm-sms/daimon-news/deployments","created_at":"2015-11-16T06:20:35Z","updated_at":"2016-11-30T13:53:36Z","pushed_at":"2016-12-19T09:32:31Z","git_url":"git://github.com/bm-sms/daimon-news.git","ssh_url":"git@github.com:bm-sms/daimon-news.git","clone_url":"https://github.com/bm-sms/daimon-news.git","svn_url":"https://github.com/bm-sms/daimon-news","homepage":"","size":1563,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":7,"default_branch":"master"}},"base":{"label":"bm-sms:master","ref":"master","sha":"06f2bdd7767a5a7e365c0c461245cedc40f54379","user":{"login":"bm-sms","id":11305323,"avatar_url":"https://avatars.githubusercontent.com/u/11305323?v=3","gravatar_id":"","url":"https://api.github.com/users/bm-sms","html_url":"https://github.com/bm-sms","followers_url":"https://api.github.com/users/bm-sms/followers","following_url":"https://api.github.com/users/bm-sms/following{/other_user}","gists_url":"https://api.github.com/users/bm-sms/gists{/gist_id}","starred_url":"https://api.github.com/users/bm-sms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm-sms/subscriptions","organizations_url":"https://api.github.com/users/bm-sms/orgs","repos_url":"https://api.github.com/users/bm-sms/repos","events_url":"https://api.github.com/users/bm-sms/events{/privacy}","received_events_url":"https://api.github.com/users/bm-sms/received_events","type":"Organization","site_admin":false},"repo":{"id":46255953,"name":"daimon-news","full_name":"bm-sms/daimon-news","owner":{"login":"bm-sms","id":11305323,"avatar_url":"https://avatars.githubusercontent.com/u/11305323?v=3","gravatar_id":"","url":"https://api.github.com/users/bm-sms","html_url":"https://github.com/bm-sms","followers_url":"https://api.github.com/users/bm-sms/followers","following_url":"https://api.github.com/users/bm-sms/following{/other_user}","gists_url":"https://api.github.com/users/bm-sms/gists{/gist_id}","starred_url":"https://api.github.com/users/bm-sms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bm-sms/subscriptions","organizations_url":"https://api.github.com/users/bm-sms/orgs","repos_url":"https://api.github.com/users/bm-sms/repos","events_url":"https://api.github.com/users/bm-sms/events{/privacy}","received_events_url":"https://api.github.com/users/bm-sms/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bm-sms/daimon-news","description":null,"fork":false,"url":"https://api.github.com/repos/bm-sms/daimon-news","forks_url":"https://api.github.com/repos/bm-sms/daimon-news/forks","keys_url":"https://api.github.com/repos/bm-sms/daimon-news/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bm-sms/daimon-news/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bm-sms/daimon-news/teams","hooks_url":"https://api.github.com/repos/bm-sms/daimon-news/hooks","issue_events_url":"https://api.github.com/repos/bm-sms/daimon-news/issues/events{/number}","events_url":"https://api.github.com/repos/bm-sms/daimon-news/events","assignees_url":"https://api.github.com/repos/bm-sms/daimon-news/assignees{/user}","branches_url":"https://api.github.com/repos/bm-sms/daimon-news/branches{/branch}","tags_url":"https://api.github.com/repos/bm-sms/daimon-news/tags","blobs_url":"https://api.github.com/repos/bm-sms/daimon-news/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bm-sms/daimon-news/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bm-sms/daimon-news/git/refs{/sha}","trees_url":"https://api.github.com/repos/bm-sms/daimon-news/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bm-sms/daimon-news/statuses/{sha}","languages_url":"https://api.github.com/repos/bm-sms/daimon-news/languages","stargazers_url":"https://api.github.com/repos/bm-sms/daimon-news/stargazers","contributors_url":"https://api.github.com/repos/bm-sms/daimon-news/contributors","subscribers_url":"https://api.github.com/repos/bm-sms/daimon-news/subscribers","subscription_url":"https://api.github.com/repos/bm-sms/daimon-news/subscription","commits_url":"https://api.github.com/repos/bm-sms/daimon-news/commits{/sha}","git_commits_url":"https://api.github.com/repos/bm-sms/daimon-news/git/commits{/sha}","comments_url":"https://api.github.com/repos/bm-sms/daimon-news/comments{/number}","issue_comment_url":"https://api.github.com/repos/bm-sms/daimon-news/issues/comments{/number}","contents_url":"https://api.github.com/repos/bm-sms/daimon-news/contents/{+path}","compare_url":"https://api.github.com/repos/bm-sms/daimon-news/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bm-sms/daimon-news/merges","archive_url":"https://api.github.com/repos/bm-sms/daimon-news/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bm-sms/daimon-news/downloads","issues_url":"https://api.github.com/repos/bm-sms/daimon-news/issues{/number}","pulls_url":"https://api.github.com/repos/bm-sms/daimon-news/pulls{/number}","milestones_url":"https://api.github.com/repos/bm-sms/daimon-news/milestones{/number}","notifications_url":"https://api.github.com/repos/bm-sms/daimon-news/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bm-sms/daimon-news/labels{/name}","releases_url":"https://api.github.com/repos/bm-sms/daimon-news/releases{/id}","deployments_url":"https://api.github.com/repos/bm-sms/daimon-news/deployments","created_at":"2015-11-16T06:20:35Z","updated_at":"2016-11-30T13:53:36Z","pushed_at":"2016-12-19T09:32:31Z","git_url":"git://github.com/bm-sms/daimon-news.git","ssh_url":"git@github.com:bm-sms/daimon-news.git","clone_url":"https://github.com/bm-sms/daimon-news.git","svn_url":"https://github.com/bm-sms/daimon-news","homepage":"","size":1563,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655"},"html":{"href":"https://github.com/bm-sms/daimon-news/pull/655"},"issue":{"href":"https://api.github.com/repos/bm-sms/daimon-news/issues/655"},"comments":{"href":"https://api.github.com/repos/bm-sms/daimon-news/issues/655/comments"},"review_comments":{"href":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655/comments"},"review_comment":{"href":"https://api.github.com/repos/bm-sms/daimon-news/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bm-sms/daimon-news/pulls/655/commits"},"statuses":{"href":"https://api.github.com/repos/bm-sms/daimon-news/statuses/84a2cb25b859d0de16c5d6d131506ccea3ec9793"}}}}
{"actor":{"display_login":"tricknotes"}}