{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments/70298283","id":70298283,"diff_hunk":"@@ -0,0 +1,34 @@\n+module PageObjects\n+  module Images\n+    class ShowPage < PageObjects::Document\n+      path :image\n+\n+      collection :tag_elements, locator: '.image-tags', item_locator: '.image-tag'\n+\n+      def has_url?(url)\n+        node.find(\"img[src='#{url}']\").present?\n+      end\n+\n+      def tags\n+        tag_elements.map { |tag| tag.text }\n+      end\n+\n+      def delete\n+        node.click_on 'Delete'\n+        yield node.driver.browser.switch_to.alert\n+      end\n+\n+      def delete_and_confirm!\n+        node.click_on 'Delete'\n+        alert = node.driver.browser.switch_to.alert\n+        alert.accept\n+        window.change_to(IndexPage)\n+      end","path":"test/page_objects/images/show_page.rb","position":26,"original_position":26,"commit_id":"729a9e3afa99a49ebc6f9a17672235a94da57773","original_commit_id":"729a9e3afa99a49ebc6f9a17672235a94da57773","user":{"login":"rmacklin","id":1863540,"avatar_url":"https://avatars.githubusercontent.com/u/1863540?v=3","gravatar_id":"","url":"https://api.github.com/users/rmacklin","html_url":"https://github.com/rmacklin","followers_url":"https://api.github.com/users/rmacklin/followers","following_url":"https://api.github.com/users/rmacklin/following{/other_user}","gists_url":"https://api.github.com/users/rmacklin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmacklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmacklin/subscriptions","organizations_url":"https://api.github.com/users/rmacklin/orgs","repos_url":"https://api.github.com/users/rmacklin/repos","events_url":"https://api.github.com/users/rmacklin/events{/privacy}","received_events_url":"https://api.github.com/users/rmacklin/received_events","type":"User","site_admin":false},"body":"These methods are duplicated. You could DRY them","created_at":"2016-07-11T17:14:59Z","updated_at":"2016-07-11T17:14:59Z","html_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/44#discussion_r70298283","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments/70298283"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/44#discussion_r70298283"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44","id":76475364,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/44","diff_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/44.diff","patch_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/44.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/44","number":44,"state":"open","locked":false,"title":"Add a show page for each image","user":{"login":"lightbright","id":6063967,"avatar_url":"https://avatars.githubusercontent.com/u/6063967?v=3","gravatar_id":"","url":"https://api.github.com/users/lightbright","html_url":"https://github.com/lightbright","followers_url":"https://api.github.com/users/lightbright/followers","following_url":"https://api.github.com/users/lightbright/following{/other_user}","gists_url":"https://api.github.com/users/lightbright/gists{/gist_id}","starred_url":"https://api.github.com/users/lightbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightbright/subscriptions","organizations_url":"https://api.github.com/users/lightbright/orgs","repos_url":"https://api.github.com/users/lightbright/repos","events_url":"https://api.github.com/users/lightbright/events{/privacy}","received_events_url":"https://api.github.com/users/lightbright/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-06T18:04:18Z","updated_at":"2016-07-11T17:14:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fc8eb98b8d83663912a4ce9c07e02dc2429054e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/44/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/729a9e3afa99a49ebc6f9a17672235a94da57773","head":{"label":"AppFolioOnboarding:ShowPage","ref":"ShowPage","sha":"729a9e3afa99a49ebc6f9a17672235a94da57773","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.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":61061791,"name":"image-sharer-lightbright","full_name":"AppFolioOnboarding/image-sharer-lightbright","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.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-lightbright","description":"image-sharer-lightbright created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/deployments","created_at":"2016-06-13T18:55:47Z","updated_at":"2016-06-13T18:55:53Z","pushed_at":"2016-07-11T16:59:10Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lightbright.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lightbright.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"5810e7d3c6c6206456234dff0da98f320c685362","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.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":61061791,"name":"image-sharer-lightbright","full_name":"AppFolioOnboarding/image-sharer-lightbright","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.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-lightbright","description":"image-sharer-lightbright created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/deployments","created_at":"2016-06-13T18:55:47Z","updated_at":"2016-06-13T18:55:53Z","pushed_at":"2016-07-11T16:59:10Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lightbright.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lightbright.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lightbright","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lightbright/pull/44"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/44"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lightbright/statuses/729a9e3afa99a49ebc6f9a17672235a94da57773"}}}}
{"actor":{"display_login":"rmacklin"}}