{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/comments/80988182","pull_request_review_id":1996653,"id":80988182,"diff_hunk":"@@ -0,0 +1,51 @@\n+require 'flow_test_helper'\n+\n+class ImagesShareTest < FlowTestCase\n+  test 'share an image from index page' 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+\n+    image_to_share = images_index_page.images.find do |image|\n+      image.url == cute_puppy_url\n+    end\n+\n+    share_image_page = image_to_share.share!\n+    message = 'Hello, World!'\n+    share_image_page = share_image_page\n+      .share_image!(recipient: 'invalid', message: message).as_a(PageObjects::Images::SharePage)\n+    assert_equal 'is invalid', share_image_page.recipient.error_message\n+    assert_equal 'invalid', share_image_page.recipient.value\n+    assert_equal message, share_image_page.message.text\n+\n+    recipient = 'test@test.com'","path":"test/flows/images_share_test.rb","position":27,"original_position":27,"commit_id":"776c6736a2e5580b2cee2ec1e54847c8ae84ea56","original_commit_id":"2dad03388459e32fd9dc0f4aaf31d96860817fda","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":"Just curious, what's the purpose of this variable?","created_at":"2016-09-28T18:38:42Z","updated_at":"2016-09-28T18:41:11Z","html_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12/pull/48#discussion_r80988182","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/comments/80988182"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12/pull/48#discussion_r80988182"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48","id":86069735,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12/pull/48","diff_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12/pull/48.diff","patch_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12/pull/48.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/48","number":48,"state":"open","locked":false,"title":"Ropes share image","user":{"login":"kkajla12","id":4977332,"avatar_url":"https://avatars.githubusercontent.com/u/4977332?v=3","gravatar_id":"","url":"https://api.github.com/users/kkajla12","html_url":"https://github.com/kkajla12","followers_url":"https://api.github.com/users/kkajla12/followers","following_url":"https://api.github.com/users/kkajla12/following{/other_user}","gists_url":"https://api.github.com/users/kkajla12/gists{/gist_id}","starred_url":"https://api.github.com/users/kkajla12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkajla12/subscriptions","organizations_url":"https://api.github.com/users/kkajla12/orgs","repos_url":"https://api.github.com/users/kkajla12/repos","events_url":"https://api.github.com/users/kkajla12/events{/privacy}","received_events_url":"https://api.github.com/users/kkajla12/received_events","type":"User","site_admin":false},"body":"First part of #10 (no modal)","created_at":"2016-09-20T22:44:01Z","updated_at":"2016-09-28T18:41:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6cb79eb8110e76d0ab6f133be596d7ad0b53332","assignee":{"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},"assignees":[{"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}],"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/48/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/statuses/776c6736a2e5580b2cee2ec1e54847c8ae84ea56","head":{"label":"AppFolioOnboarding:ropesShareImage","ref":"ropesShareImage","sha":"776c6736a2e5580b2cee2ec1e54847c8ae84ea56","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":65857516,"name":"image-sharer-kkajla12","full_name":"AppFolioOnboarding/image-sharer-kkajla12","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-kkajla12","description":"image-sharer-kkajla12 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/deployments","created_at":"2016-08-16T22:22:19Z","updated_at":"2016-08-16T22:22:40Z","pushed_at":"2016-09-28T16:21:17Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-kkajla12.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-kkajla12.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12","homepage":null,"size":1366,"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":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"10c0c9f08867fd5a460a49309e8b53dfc1ad58ae","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":65857516,"name":"image-sharer-kkajla12","full_name":"AppFolioOnboarding/image-sharer-kkajla12","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-kkajla12","description":"image-sharer-kkajla12 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/deployments","created_at":"2016-08-16T22:22:19Z","updated_at":"2016-08-16T22:22:40Z","pushed_at":"2016-09-28T16:21:17Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-kkajla12.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-kkajla12.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12","homepage":null,"size":1366,"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":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-kkajla12/pull/48"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/48"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-kkajla12/statuses/776c6736a2e5580b2cee2ec1e54847c8ae84ea56"}}}}
{"actor":{"display_login":"rmacklin"}}