{"action":"created","comment":{"url":"https://api.github.com/repos/akintner/scoopful/pulls/comments/94712374","pull_request_review_id":15245933,"id":94712374,"diff_hunk":"@@ -0,0 +1,53 @@\n+require 'rails_helper'\n+\n+RSpec.feature do\n+  before do\n+    @category = create(:category_with_items)\n+    @item1 = @category.items.first\n+  end\n+\n+  context 'visitor' do\n+    scenario 'deletes only item in cart' do\n+      visit items_path\n+\n+      click_button(\"Add to Cart\", match: :first)\n+\n+      click_on \"View Cart\"\n+\n+      click_on \"Remove\"\n+\n+      expect(page).to have_content \"Successfully removed #{@item1.name} from your cart.\"\n+      expect(page).to have_link @item1.name, items_path \n+      expect(page).to_not have_content @item1.description\n+      expect(page).to_not have_content @item1.price_per_unit\n+      expect(page).to have_content \"Total Price: 0\"\n+    end\n+\n+    scenario 'deletes multiple items from cart' do\n+      visit items_path\n+\n+      click_button(\"Add to Cart\", match: :first)\n+      click_button(\"Add to Cart\", match: :first)\n+\n+      click_on \"View Cart\"\n+\n+      click_on \"Remove\"\n+\n+      expect(page).to have_content \"Total Price: 0\"","path":"spec/features/carts/visitor_deletes_item_from_cart_spec.rb","position":36,"original_position":36,"commit_id":"55d706a11030f1a2c9f394d2086ed5a99e5e455c","original_commit_id":"55d706a11030f1a2c9f394d2086ed5a99e5e455c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2017-01-05T04:29:27Z","updated_at":"2017-01-05T04:29:27Z","html_url":"https://github.com/akintner/scoopful/pull/52#discussion_r94712374","pull_request_url":"https://api.github.com/repos/akintner/scoopful/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/comments/94712374"},"html":{"href":"https://github.com/akintner/scoopful/pull/52#discussion_r94712374"},"pull_request":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/akintner/scoopful/pulls/52","id":100233002,"html_url":"https://github.com/akintner/scoopful/pull/52","diff_url":"https://github.com/akintner/scoopful/pull/52.diff","patch_url":"https://github.com/akintner/scoopful/pull/52.patch","issue_url":"https://api.github.com/repos/akintner/scoopful/issues/52","number":52,"state":"open","locked":false,"title":"Kh dev cart delete","user":{"login":"kheppenstall","id":16868275,"avatar_url":"https://avatars.githubusercontent.com/u/16868275?v=3","gravatar_id":"","url":"https://api.github.com/users/kheppenstall","html_url":"https://github.com/kheppenstall","followers_url":"https://api.github.com/users/kheppenstall/followers","following_url":"https://api.github.com/users/kheppenstall/following{/other_user}","gists_url":"https://api.github.com/users/kheppenstall/gists{/gist_id}","starred_url":"https://api.github.com/users/kheppenstall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kheppenstall/subscriptions","organizations_url":"https://api.github.com/users/kheppenstall/orgs","repos_url":"https://api.github.com/users/kheppenstall/repos","events_url":"https://api.github.com/users/kheppenstall/events{/privacy}","received_events_url":"https://api.github.com/users/kheppenstall/received_events","type":"User","site_admin":false},"body":"-Delete functionality for a cart that deletes all items of a type by clicking the remove item\r\n-Flash message appears with a link to go back to the item just deleted\r\n-Remove method in the cart PORO\r\n\r\nCloses #19 \r\n\r\nReady to review\r\n@tmikeschu @akintner @wlffann ","created_at":"2017-01-05T04:29:16Z","updated_at":"2017-01-05T04:29:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32cf0d67ccbff99b81a07c9d5ce8373c8fbb2daa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/akintner/scoopful/pulls/52/commits","review_comments_url":"https://api.github.com/repos/akintner/scoopful/pulls/52/comments","review_comment_url":"https://api.github.com/repos/akintner/scoopful/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akintner/scoopful/issues/52/comments","statuses_url":"https://api.github.com/repos/akintner/scoopful/statuses/55d706a11030f1a2c9f394d2086ed5a99e5e455c","head":{"label":"akintner:kh-dev-cart-delete","ref":"kh-dev-cart-delete","sha":"55d706a11030f1a2c9f394d2086ed5a99e5e455c","user":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"repo":{"id":77953639,"name":"scoopful","full_name":"akintner/scoopful","owner":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akintner/scoopful","description":"online cooking store with recipes for which we'll ship you as many of the ingredients as you need","fork":false,"url":"https://api.github.com/repos/akintner/scoopful","forks_url":"https://api.github.com/repos/akintner/scoopful/forks","keys_url":"https://api.github.com/repos/akintner/scoopful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akintner/scoopful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akintner/scoopful/teams","hooks_url":"https://api.github.com/repos/akintner/scoopful/hooks","issue_events_url":"https://api.github.com/repos/akintner/scoopful/issues/events{/number}","events_url":"https://api.github.com/repos/akintner/scoopful/events","assignees_url":"https://api.github.com/repos/akintner/scoopful/assignees{/user}","branches_url":"https://api.github.com/repos/akintner/scoopful/branches{/branch}","tags_url":"https://api.github.com/repos/akintner/scoopful/tags","blobs_url":"https://api.github.com/repos/akintner/scoopful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akintner/scoopful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akintner/scoopful/git/refs{/sha}","trees_url":"https://api.github.com/repos/akintner/scoopful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akintner/scoopful/statuses/{sha}","languages_url":"https://api.github.com/repos/akintner/scoopful/languages","stargazers_url":"https://api.github.com/repos/akintner/scoopful/stargazers","contributors_url":"https://api.github.com/repos/akintner/scoopful/contributors","subscribers_url":"https://api.github.com/repos/akintner/scoopful/subscribers","subscription_url":"https://api.github.com/repos/akintner/scoopful/subscription","commits_url":"https://api.github.com/repos/akintner/scoopful/commits{/sha}","git_commits_url":"https://api.github.com/repos/akintner/scoopful/git/commits{/sha}","comments_url":"https://api.github.com/repos/akintner/scoopful/comments{/number}","issue_comment_url":"https://api.github.com/repos/akintner/scoopful/issues/comments{/number}","contents_url":"https://api.github.com/repos/akintner/scoopful/contents/{+path}","compare_url":"https://api.github.com/repos/akintner/scoopful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akintner/scoopful/merges","archive_url":"https://api.github.com/repos/akintner/scoopful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akintner/scoopful/downloads","issues_url":"https://api.github.com/repos/akintner/scoopful/issues{/number}","pulls_url":"https://api.github.com/repos/akintner/scoopful/pulls{/number}","milestones_url":"https://api.github.com/repos/akintner/scoopful/milestones{/number}","notifications_url":"https://api.github.com/repos/akintner/scoopful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akintner/scoopful/labels{/name}","releases_url":"https://api.github.com/repos/akintner/scoopful/releases{/id}","deployments_url":"https://api.github.com/repos/akintner/scoopful/deployments","created_at":"2017-01-03T21:10:13Z","updated_at":"2017-01-03T23:01:33Z","pushed_at":"2017-01-05T04:29:16Z","git_url":"git://github.com/akintner/scoopful.git","ssh_url":"git@github.com:akintner/scoopful.git","clone_url":"https://github.com/akintner/scoopful.git","svn_url":"https://github.com/akintner/scoopful","homepage":null,"size":11119,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"akintner:master","ref":"master","sha":"988c780b66197e6cef7cb7df173ed28168294244","user":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"repo":{"id":77953639,"name":"scoopful","full_name":"akintner/scoopful","owner":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akintner/scoopful","description":"online cooking store with recipes for which we'll ship you as many of the ingredients as you need","fork":false,"url":"https://api.github.com/repos/akintner/scoopful","forks_url":"https://api.github.com/repos/akintner/scoopful/forks","keys_url":"https://api.github.com/repos/akintner/scoopful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akintner/scoopful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akintner/scoopful/teams","hooks_url":"https://api.github.com/repos/akintner/scoopful/hooks","issue_events_url":"https://api.github.com/repos/akintner/scoopful/issues/events{/number}","events_url":"https://api.github.com/repos/akintner/scoopful/events","assignees_url":"https://api.github.com/repos/akintner/scoopful/assignees{/user}","branches_url":"https://api.github.com/repos/akintner/scoopful/branches{/branch}","tags_url":"https://api.github.com/repos/akintner/scoopful/tags","blobs_url":"https://api.github.com/repos/akintner/scoopful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akintner/scoopful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akintner/scoopful/git/refs{/sha}","trees_url":"https://api.github.com/repos/akintner/scoopful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akintner/scoopful/statuses/{sha}","languages_url":"https://api.github.com/repos/akintner/scoopful/languages","stargazers_url":"https://api.github.com/repos/akintner/scoopful/stargazers","contributors_url":"https://api.github.com/repos/akintner/scoopful/contributors","subscribers_url":"https://api.github.com/repos/akintner/scoopful/subscribers","subscription_url":"https://api.github.com/repos/akintner/scoopful/subscription","commits_url":"https://api.github.com/repos/akintner/scoopful/commits{/sha}","git_commits_url":"https://api.github.com/repos/akintner/scoopful/git/commits{/sha}","comments_url":"https://api.github.com/repos/akintner/scoopful/comments{/number}","issue_comment_url":"https://api.github.com/repos/akintner/scoopful/issues/comments{/number}","contents_url":"https://api.github.com/repos/akintner/scoopful/contents/{+path}","compare_url":"https://api.github.com/repos/akintner/scoopful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akintner/scoopful/merges","archive_url":"https://api.github.com/repos/akintner/scoopful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akintner/scoopful/downloads","issues_url":"https://api.github.com/repos/akintner/scoopful/issues{/number}","pulls_url":"https://api.github.com/repos/akintner/scoopful/pulls{/number}","milestones_url":"https://api.github.com/repos/akintner/scoopful/milestones{/number}","notifications_url":"https://api.github.com/repos/akintner/scoopful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akintner/scoopful/labels{/name}","releases_url":"https://api.github.com/repos/akintner/scoopful/releases{/id}","deployments_url":"https://api.github.com/repos/akintner/scoopful/deployments","created_at":"2017-01-03T21:10:13Z","updated_at":"2017-01-03T23:01:33Z","pushed_at":"2017-01-05T04:29:16Z","git_url":"git://github.com/akintner/scoopful.git","ssh_url":"git@github.com:akintner/scoopful.git","clone_url":"https://github.com/akintner/scoopful.git","svn_url":"https://github.com/akintner/scoopful","homepage":null,"size":11119,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/52"},"html":{"href":"https://github.com/akintner/scoopful/pull/52"},"issue":{"href":"https://api.github.com/repos/akintner/scoopful/issues/52"},"comments":{"href":"https://api.github.com/repos/akintner/scoopful/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/akintner/scoopful/statuses/55d706a11030f1a2c9f394d2086ed5a99e5e455c"}}}}
{"actor":{"display_login":"houndci-bot"}}