{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/comments/115092509","pull_request_review_id":36614965,"id":115092509,"diff_hunk":"@@ -29,6 +29,36 @@ class ImagesCrudTest < FlowTestCase\n     assert images_index_page.showing_image?(url: image_url, tags: tags)\n   end\n \n+  test 'edit an image' do\n+    cute_puppy_url = 'http://ghk.h-cdn.co/assets/16/09/980x490/landscape-1457107485-gettyimages-512366437.jpg'\n+    ugly_cat_url = 'http://www.ugly-cat.com/ugly-cats/uglycat041.jpg'\n+    Image.create!([\n+      { url: cute_puppy_url, tag_list: 'puppy, cute' },\n+      { url: ugly_cat_url, tag_list: 'cat, ugly' }\n+    ])\n+\n+    images_index_page = PageObjects::Images::IndexPage.visit\n+    assert_equal 2, images_index_page.images.count\n+    assert images_index_page.showing_image?(url: ugly_cat_url, tags: %w(cat ugly))\n+    assert images_index_page.showing_image?(url: cute_puppy_url, tags: %w(puppy cute))\n+\n+    image_to_edit = images_index_page.images.find do |image|\n+      image.url == cute_puppy_url\n+    end\n+    image_show_page = image_to_edit.view!\n+\n+    image_edit_page = image_show_page.edit\n+\n+    image_show_page = image_edit_page.update_image!(tags: 'adorable')\n+    assert_equal(\n+      'Thank you for updating the tag on the image.',\n+      image_show_page.flash_message(:success)","path":"test/flows/images_crud_test.rb","position":27,"original_position":27,"commit_id":"808cf51197ff1fcb92726755fb704acfb35432a5","original_commit_id":"808cf51197ff1fcb92726755fb704acfb35432a5","user":{"login":"wilsonyqm","id":9424989,"avatar_url":"https://avatars0.githubusercontent.com/u/9424989?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonyqm","html_url":"https://github.com/wilsonyqm","followers_url":"https://api.github.com/users/wilsonyqm/followers","following_url":"https://api.github.com/users/wilsonyqm/following{/other_user}","gists_url":"https://api.github.com/users/wilsonyqm/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonyqm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonyqm/subscriptions","organizations_url":"https://api.github.com/users/wilsonyqm/orgs","repos_url":"https://api.github.com/users/wilsonyqm/repos","events_url":"https://api.github.com/users/wilsonyqm/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonyqm/received_events","type":"User","site_admin":false},"body":"It would be better if you have some other assertions for the error case, it dose not have to be all of the error cases, one of them should be enough.","created_at":"2017-05-05T21:38:51Z","updated_at":"2017-05-05T21:38:51Z","html_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes/pull/37#discussion_r115092509","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/comments/115092509"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes/pull/37#discussion_r115092509"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37","id":118880303,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes/pull/37","diff_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes/pull/37.diff","patch_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes/pull/37.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/37","number":37,"state":"open","locked":false,"title":"Add ability to edit tags","user":{"login":"mathewbaltes","id":5892009,"avatar_url":"https://avatars1.githubusercontent.com/u/5892009?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewbaltes","html_url":"https://github.com/mathewbaltes","followers_url":"https://api.github.com/users/mathewbaltes/followers","following_url":"https://api.github.com/users/mathewbaltes/following{/other_user}","gists_url":"https://api.github.com/users/mathewbaltes/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewbaltes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewbaltes/subscriptions","organizations_url":"https://api.github.com/users/mathewbaltes/orgs","repos_url":"https://api.github.com/users/mathewbaltes/repos","events_url":"https://api.github.com/users/mathewbaltes/events{/privacy}","received_events_url":"https://api.github.com/users/mathewbaltes/received_events","type":"User","site_admin":false},"body":"Closes #14","created_at":"2017-05-04T00:12:21Z","updated_at":"2017-05-05T21:38:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2be4964361d0fc86a8a451ae5cecfebbe516ba8c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/37/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/statuses/808cf51197ff1fcb92726755fb704acfb35432a5","head":{"label":"AppFolioOnboarding:mb_issue14","ref":"mb_issue14","sha":"808cf51197ff1fcb92726755fb704acfb35432a5","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars2.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":85611583,"name":"image-sharer-mathewbaltes","full_name":"AppFolioOnboarding/image-sharer-mathewbaltes","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars2.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes","description":"image-sharer-mathewbaltes created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/deployments","created_at":"2017-03-20T18:24:47Z","updated_at":"2017-03-20T18:25:03Z","pushed_at":"2017-05-05T18:18:35Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-mathewbaltes.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-mathewbaltes.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes","homepage":null,"size":167,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"531dd570e47d767a723b841abb1904fd6e85954a","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars2.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":85611583,"name":"image-sharer-mathewbaltes","full_name":"AppFolioOnboarding/image-sharer-mathewbaltes","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars2.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes","description":"image-sharer-mathewbaltes created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/deployments","created_at":"2017-03-20T18:24:47Z","updated_at":"2017-03-20T18:25:03Z","pushed_at":"2017-05-05T18:18:35Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-mathewbaltes.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-mathewbaltes.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes","homepage":null,"size":167,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-mathewbaltes/pull/37"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/37"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-mathewbaltes/statuses/808cf51197ff1fcb92726755fb704acfb35432a5"}}}}
{"actor":{"display_login":"wilsonyqm"}}