{"action":"created","comment":{"url":"https://api.github.com/repos/amcrawford/slota-shop/pulls/comments/44494569","id":44494569,"diff_hunk":"@@ -0,0 +1,36 @@\n+require 'test_helper'\n+\n+class VisitorCanEditCartTest < ActionDispatch::IntegrationTest\n+  test \"visitor can remove an item from his or her cart\" do\n+    category_1 = Oil.create(name: \"Lard\")\n+    category_2 = Oil.create(name: \"Coconut Oil\")\n+\n+    item_1 = Chip.create(name: \"Slotachips\", price: 20, description: \"Super yummy\", oil_id: category_1.id)\n+    item_2 = Chip.create(name: \"Trader Joe's BBQ\", price: 15, description: \"I'd trade slota for these!\", oil_id: category_2.id)\n+    item_3 = Chip.create(name: \"Dang Coconut\", price: 17, description: \"Dang, these are good\", oil_id: category_2.id)\n+    item_4 = Chip.create(name: \"Lard Yummies\", price: 19, description: \"Chock Full of Lard\", oil_id: category_1.id)\n+\n+    visit chips_path\n+\n+    within(\"#slotachips\") do\n+      click_button \"Add to Cart\"\n+    end\n+\n+    visit cart_chips_path\n+\n+    within('#slotachips') do\n+      click_link \"Remove\"\n+    end\n+\n+    assert_equal cart_chips_path, current_path\n+\n+    assert page.has_content?(\"Successfully removed Slotachips from your cart.\")\n+\n+    within('.chips') do\n+      refute page.has_content?(\"Slotachips\")\n+    end\n+\n+    click_link \"Slotachips\"\n+    assert_equal '/chips/slotachips', current_path","path":"test/integration/visitor_can_edit_cart_test.rb","position":34,"original_position":34,"commit_id":"3764daf7b7071de088509a006043d7ec18424399","original_commit_id":"3764daf7b7071de088509a006043d7ec18424399","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-11-11T02:09:10Z","updated_at":"2015-11-11T02:09:10Z","html_url":"https://github.com/amcrawford/slota-shop/pull/35#discussion_r44494569","pull_request_url":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/amcrawford/slota-shop/pulls/comments/44494569"},"html":{"href":"https://github.com/amcrawford/slota-shop/pull/35#discussion_r44494569"},"pull_request":{"href":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35","id":50339806,"html_url":"https://github.com/amcrawford/slota-shop/pull/35","diff_url":"https://github.com/amcrawford/slota-shop/pull/35.diff","patch_url":"https://github.com/amcrawford/slota-shop/pull/35.patch","issue_url":"https://api.github.com/repos/amcrawford/slota-shop/issues/35","number":35,"state":"open","locked":false,"title":"Closes #12 removing an item from your cart","user":{"login":"amcrawford","id":11097011,"avatar_url":"https://avatars.githubusercontent.com/u/11097011?v=3","gravatar_id":"","url":"https://api.github.com/users/amcrawford","html_url":"https://github.com/amcrawford","followers_url":"https://api.github.com/users/amcrawford/followers","following_url":"https://api.github.com/users/amcrawford/following{/other_user}","gists_url":"https://api.github.com/users/amcrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/amcrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcrawford/subscriptions","organizations_url":"https://api.github.com/users/amcrawford/orgs","repos_url":"https://api.github.com/users/amcrawford/repos","events_url":"https://api.github.com/users/amcrawford/events{/privacy}","received_events_url":"https://api.github.com/users/amcrawford/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-11T02:09:05Z","updated_at":"2015-11-11T02:09:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"471875efb68209e1e00665b7bf73e9e608575ceb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35/commits","review_comments_url":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35/comments","review_comment_url":"https://api.github.com/repos/amcrawford/slota-shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amcrawford/slota-shop/issues/35/comments","statuses_url":"https://api.github.com/repos/amcrawford/slota-shop/statuses/3764daf7b7071de088509a006043d7ec18424399","head":{"label":"amcrawford:12-Removing-an-item-from-your-cart","ref":"12-Removing-an-item-from-your-cart","sha":"3764daf7b7071de088509a006043d7ec18424399","user":{"login":"amcrawford","id":11097011,"avatar_url":"https://avatars.githubusercontent.com/u/11097011?v=3","gravatar_id":"","url":"https://api.github.com/users/amcrawford","html_url":"https://github.com/amcrawford","followers_url":"https://api.github.com/users/amcrawford/followers","following_url":"https://api.github.com/users/amcrawford/following{/other_user}","gists_url":"https://api.github.com/users/amcrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/amcrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcrawford/subscriptions","organizations_url":"https://api.github.com/users/amcrawford/orgs","repos_url":"https://api.github.com/users/amcrawford/repos","events_url":"https://api.github.com/users/amcrawford/events{/privacy}","received_events_url":"https://api.github.com/users/amcrawford/received_events","type":"User","site_admin":false},"repo":{"id":45855371,"name":"slota-shop","full_name":"amcrawford/slota-shop","owner":{"login":"amcrawford","id":11097011,"avatar_url":"https://avatars.githubusercontent.com/u/11097011?v=3","gravatar_id":"","url":"https://api.github.com/users/amcrawford","html_url":"https://github.com/amcrawford","followers_url":"https://api.github.com/users/amcrawford/followers","following_url":"https://api.github.com/users/amcrawford/following{/other_user}","gists_url":"https://api.github.com/users/amcrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/amcrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcrawford/subscriptions","organizations_url":"https://api.github.com/users/amcrawford/orgs","repos_url":"https://api.github.com/users/amcrawford/repos","events_url":"https://api.github.com/users/amcrawford/events{/privacy}","received_events_url":"https://api.github.com/users/amcrawford/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amcrawford/slota-shop","description":"","fork":false,"url":"https://api.github.com/repos/amcrawford/slota-shop","forks_url":"https://api.github.com/repos/amcrawford/slota-shop/forks","keys_url":"https://api.github.com/repos/amcrawford/slota-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amcrawford/slota-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amcrawford/slota-shop/teams","hooks_url":"https://api.github.com/repos/amcrawford/slota-shop/hooks","issue_events_url":"https://api.github.com/repos/amcrawford/slota-shop/issues/events{/number}","events_url":"https://api.github.com/repos/amcrawford/slota-shop/events","assignees_url":"https://api.github.com/repos/amcrawford/slota-shop/assignees{/user}","branches_url":"https://api.github.com/repos/amcrawford/slota-shop/branches{/branch}","tags_url":"https://api.github.com/repos/amcrawford/slota-shop/tags","blobs_url":"https://api.github.com/repos/amcrawford/slota-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amcrawford/slota-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amcrawford/slota-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/amcrawford/slota-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amcrawford/slota-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/amcrawford/slota-shop/languages","stargazers_url":"https://api.github.com/repos/amcrawford/slota-shop/stargazers","contributors_url":"https://api.github.com/repos/amcrawford/slota-shop/contributors","subscribers_url":"https://api.github.com/repos/amcrawford/slota-shop/subscribers","subscription_url":"https://api.github.com/repos/amcrawford/slota-shop/subscription","commits_url":"https://api.github.com/repos/amcrawford/slota-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/amcrawford/slota-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/amcrawford/slota-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/amcrawford/slota-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/amcrawford/slota-shop/contents/{+path}","compare_url":"https://api.github.com/repos/amcrawford/slota-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amcrawford/slota-shop/merges","archive_url":"https://api.github.com/repos/amcrawford/slota-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amcrawford/slota-shop/downloads","issues_url":"https://api.github.com/repos/amcrawford/slota-shop/issues{/number}","pulls_url":"https://api.github.com/repos/amcrawford/slota-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/amcrawford/slota-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/amcrawford/slota-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amcrawford/slota-shop/labels{/name}","releases_url":"https://api.github.com/repos/amcrawford/slota-shop/releases{/id}","created_at":"2015-11-09T17:42:58Z","updated_at":"2015-11-09T17:43:36Z","pushed_at":"2015-11-11T02:09:08Z","git_url":"git://github.com/amcrawford/slota-shop.git","ssh_url":"git@github.com:amcrawford/slota-shop.git","clone_url":"https://github.com/amcrawford/slota-shop.git","svn_url":"https://github.com/amcrawford/slota-shop","homepage":null,"size":0,"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":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"amcrawford:master","ref":"master","sha":"ad460bffb389d9201df1a531f7921087f88df886","user":{"login":"amcrawford","id":11097011,"avatar_url":"https://avatars.githubusercontent.com/u/11097011?v=3","gravatar_id":"","url":"https://api.github.com/users/amcrawford","html_url":"https://github.com/amcrawford","followers_url":"https://api.github.com/users/amcrawford/followers","following_url":"https://api.github.com/users/amcrawford/following{/other_user}","gists_url":"https://api.github.com/users/amcrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/amcrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcrawford/subscriptions","organizations_url":"https://api.github.com/users/amcrawford/orgs","repos_url":"https://api.github.com/users/amcrawford/repos","events_url":"https://api.github.com/users/amcrawford/events{/privacy}","received_events_url":"https://api.github.com/users/amcrawford/received_events","type":"User","site_admin":false},"repo":{"id":45855371,"name":"slota-shop","full_name":"amcrawford/slota-shop","owner":{"login":"amcrawford","id":11097011,"avatar_url":"https://avatars.githubusercontent.com/u/11097011?v=3","gravatar_id":"","url":"https://api.github.com/users/amcrawford","html_url":"https://github.com/amcrawford","followers_url":"https://api.github.com/users/amcrawford/followers","following_url":"https://api.github.com/users/amcrawford/following{/other_user}","gists_url":"https://api.github.com/users/amcrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/amcrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcrawford/subscriptions","organizations_url":"https://api.github.com/users/amcrawford/orgs","repos_url":"https://api.github.com/users/amcrawford/repos","events_url":"https://api.github.com/users/amcrawford/events{/privacy}","received_events_url":"https://api.github.com/users/amcrawford/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amcrawford/slota-shop","description":"","fork":false,"url":"https://api.github.com/repos/amcrawford/slota-shop","forks_url":"https://api.github.com/repos/amcrawford/slota-shop/forks","keys_url":"https://api.github.com/repos/amcrawford/slota-shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amcrawford/slota-shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amcrawford/slota-shop/teams","hooks_url":"https://api.github.com/repos/amcrawford/slota-shop/hooks","issue_events_url":"https://api.github.com/repos/amcrawford/slota-shop/issues/events{/number}","events_url":"https://api.github.com/repos/amcrawford/slota-shop/events","assignees_url":"https://api.github.com/repos/amcrawford/slota-shop/assignees{/user}","branches_url":"https://api.github.com/repos/amcrawford/slota-shop/branches{/branch}","tags_url":"https://api.github.com/repos/amcrawford/slota-shop/tags","blobs_url":"https://api.github.com/repos/amcrawford/slota-shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amcrawford/slota-shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amcrawford/slota-shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/amcrawford/slota-shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amcrawford/slota-shop/statuses/{sha}","languages_url":"https://api.github.com/repos/amcrawford/slota-shop/languages","stargazers_url":"https://api.github.com/repos/amcrawford/slota-shop/stargazers","contributors_url":"https://api.github.com/repos/amcrawford/slota-shop/contributors","subscribers_url":"https://api.github.com/repos/amcrawford/slota-shop/subscribers","subscription_url":"https://api.github.com/repos/amcrawford/slota-shop/subscription","commits_url":"https://api.github.com/repos/amcrawford/slota-shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/amcrawford/slota-shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/amcrawford/slota-shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/amcrawford/slota-shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/amcrawford/slota-shop/contents/{+path}","compare_url":"https://api.github.com/repos/amcrawford/slota-shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amcrawford/slota-shop/merges","archive_url":"https://api.github.com/repos/amcrawford/slota-shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amcrawford/slota-shop/downloads","issues_url":"https://api.github.com/repos/amcrawford/slota-shop/issues{/number}","pulls_url":"https://api.github.com/repos/amcrawford/slota-shop/pulls{/number}","milestones_url":"https://api.github.com/repos/amcrawford/slota-shop/milestones{/number}","notifications_url":"https://api.github.com/repos/amcrawford/slota-shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amcrawford/slota-shop/labels{/name}","releases_url":"https://api.github.com/repos/amcrawford/slota-shop/releases{/id}","created_at":"2015-11-09T17:42:58Z","updated_at":"2015-11-09T17:43:36Z","pushed_at":"2015-11-11T02:09:08Z","git_url":"git://github.com/amcrawford/slota-shop.git","ssh_url":"git@github.com:amcrawford/slota-shop.git","clone_url":"https://github.com/amcrawford/slota-shop.git","svn_url":"https://github.com/amcrawford/slota-shop","homepage":null,"size":0,"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":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35"},"html":{"href":"https://github.com/amcrawford/slota-shop/pull/35"},"issue":{"href":"https://api.github.com/repos/amcrawford/slota-shop/issues/35"},"comments":{"href":"https://api.github.com/repos/amcrawford/slota-shop/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/amcrawford/slota-shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amcrawford/slota-shop/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/amcrawford/slota-shop/statuses/3764daf7b7071de088509a006043d7ec18424399"}}}}