{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments/73767316","id":73767316,"diff_hunk":"@@ -5,14 +5,25 @@ class ImagesControllerTest < ActionDispatch::IntegrationTest\n     get new_image_path\n     assert_response :success\n     assert_select 'form[action=?]', images_path\n+    assert_select 'input#image_tag_list'\n   end\n \n   test 'should be able to create a valid image' do\n     assert_difference 'Image.count' do\n-      post images_path, params: { image: { link: 'http://www.w3schools.com/css/trolltunga.jpg' } }\n+      post images_path, params: { image: { link: 'http://www.w3schools.com/css/trolltunga.jpg',\n+                                           tag_list: '' } }\n     end\n     assert_equal 'Image created successfully.', flash[:notice]\n-    assert_redirected_to Image.last\n+    assert_redirected_to images_path\n+  end\n+\n+  test 'should be able to create a valid image with tags' do\n+    assert_difference 'Image.count' do\n+      post images_path, params: { image: { link: 'http://www.w3schools.com/css/trolltunga.jpg',\n+                                           tag_list: 'tag1,tag2' } }\n+    end\n+    assert_equal 'Image created successfully.', flash[:notice]\n+    assert_redirected_to images_path\n   end\n \n   test 'should not be able to create an invalid image' do","path":"test/controllers/images_controller_test.rb","position":27,"original_position":27,"commit_id":"4332095f9b12a5a3a88d529829e52b648fbbf8d3","original_commit_id":"361ecce11edf7f55d585d48b0622551b225adbad","user":{"login":"lsq921224","id":2294091,"avatar_url":"https://avatars.githubusercontent.com/u/2294091?v=3","gravatar_id":"","url":"https://api.github.com/users/lsq921224","html_url":"https://github.com/lsq921224","followers_url":"https://api.github.com/users/lsq921224/followers","following_url":"https://api.github.com/users/lsq921224/following{/other_user}","gists_url":"https://api.github.com/users/lsq921224/gists{/gist_id}","starred_url":"https://api.github.com/users/lsq921224/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsq921224/subscriptions","organizations_url":"https://api.github.com/users/lsq921224/orgs","repos_url":"https://api.github.com/users/lsq921224/repos","events_url":"https://api.github.com/users/lsq921224/events{/privacy}","received_events_url":"https://api.github.com/users/lsq921224/received_events","type":"User","site_admin":false},"body":"Yes, I added it to all of them. XD","created_at":"2016-08-05T22:16:42Z","updated_at":"2016-08-05T22:16:42Z","html_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/30#discussion_r73767316","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments/73767316"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/30#discussion_r73767316"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30","id":80168099,"html_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/30","diff_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/30.diff","patch_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/30.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/30","number":30,"state":"open","locked":false,"title":"Image tags","user":{"login":"lsq921224","id":2294091,"avatar_url":"https://avatars.githubusercontent.com/u/2294091?v=3","gravatar_id":"","url":"https://api.github.com/users/lsq921224","html_url":"https://github.com/lsq921224","followers_url":"https://api.github.com/users/lsq921224/followers","following_url":"https://api.github.com/users/lsq921224/following{/other_user}","gists_url":"https://api.github.com/users/lsq921224/gists{/gist_id}","starred_url":"https://api.github.com/users/lsq921224/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsq921224/subscriptions","organizations_url":"https://api.github.com/users/lsq921224/orgs","repos_url":"https://api.github.com/users/lsq921224/repos","events_url":"https://api.github.com/users/lsq921224/events{/privacy}","received_events_url":"https://api.github.com/users/lsq921224/received_events","type":"User","site_admin":false},"body":"Closes #7 \r\n","created_at":"2016-08-04T23:46:27Z","updated_at":"2016-08-05T22:16:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b4fe9b901618e9e9c1336011885e5c5d06b4c44","assignee":{"login":"shfung","id":5659729,"avatar_url":"https://avatars.githubusercontent.com/u/5659729?v=3","gravatar_id":"","url":"https://api.github.com/users/shfung","html_url":"https://github.com/shfung","followers_url":"https://api.github.com/users/shfung/followers","following_url":"https://api.github.com/users/shfung/following{/other_user}","gists_url":"https://api.github.com/users/shfung/gists{/gist_id}","starred_url":"https://api.github.com/users/shfung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shfung/subscriptions","organizations_url":"https://api.github.com/users/shfung/orgs","repos_url":"https://api.github.com/users/shfung/repos","events_url":"https://api.github.com/users/shfung/events{/privacy}","received_events_url":"https://api.github.com/users/shfung/received_events","type":"User","site_admin":false},"assignees":[{"login":"shfung","id":5659729,"avatar_url":"https://avatars.githubusercontent.com/u/5659729?v=3","gravatar_id":"","url":"https://api.github.com/users/shfung","html_url":"https://github.com/shfung","followers_url":"https://api.github.com/users/shfung/followers","following_url":"https://api.github.com/users/shfung/following{/other_user}","gists_url":"https://api.github.com/users/shfung/gists{/gist_id}","starred_url":"https://api.github.com/users/shfung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shfung/subscriptions","organizations_url":"https://api.github.com/users/shfung/orgs","repos_url":"https://api.github.com/users/shfung/repos","events_url":"https://api.github.com/users/shfung/events{/privacy}","received_events_url":"https://api.github.com/users/shfung/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/30/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/4332095f9b12a5a3a88d529829e52b648fbbf8d3","head":{"label":"AppFolioOnboarding:image_tags","ref":"image_tags","sha":"4332095f9b12a5a3a88d529829e52b648fbbf8d3","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":63720294,"name":"image-sharer-lsq921224","full_name":"AppFolioOnboarding/image-sharer-lsq921224","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-lsq921224","description":"image-sharer-lsq921224 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/deployments","created_at":"2016-07-19T18:59:02Z","updated_at":"2016-07-19T18:59:35Z","pushed_at":"2016-08-05T22:13:45Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lsq921224.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224","homepage":null,"size":99,"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":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"5a5933c80686e43caf2c75bdd62daa0697e15a9f","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":63720294,"name":"image-sharer-lsq921224","full_name":"AppFolioOnboarding/image-sharer-lsq921224","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-lsq921224","description":"image-sharer-lsq921224 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224","forks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/deployments","created_at":"2016-07-19T18:59:02Z","updated_at":"2016-07-19T18:59:35Z","pushed_at":"2016-08-05T22:13:45Z","git_url":"git://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","ssh_url":"git@github.com:AppFolioOnboarding/image-sharer-lsq921224.git","clone_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224.git","svn_url":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224","homepage":null,"size":99,"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":13,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30"},"html":{"href":"https://github.com/AppFolioOnboarding/image-sharer-lsq921224/pull/30"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/30"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/image-sharer-lsq921224/statuses/4332095f9b12a5a3a88d529829e52b648fbbf8d3"}}}}
{"actor":{"display_login":"lsq921224"}}