{"action":"created","comment":{"url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/comments/54835029","id":54835029,"diff_hunk":"@@ -0,0 +1,47 @@\n+require \"rails_helper\"\n+\n+RSpec.feature \"user can adjust quantity of items in cart\" do\n+  scenario \"user sees adjusted quantity in cart\" do\n+    candy = create(:candy)\n+\n+    visit candies_path\n+\n+    click_button \"Add to Cart\"\n+\n+    visit cart_path\n+\n+    expect(page).to have_content \"Total items: 1\"\n+    expect(page).to have_content \"Total Price: $0.08\"\n+\n+    click_button \"+ 1\"\n+\n+    expect(page).to have_content \"Total items: 2\"\n+    expect(page).to have_content \"Total Price: $0.16\"\n+\n+    click_button \"- 1\"\n+    expect(current_path).to eq cart_path\n+\n+    expect(page).to have_content \"Total items: 1\"\n+    expect(page).to have_content \"Total Price: $0.08\"\n+  end\n+\n+  scenario \"user sees error message\" do\n+    candy = create(:candy)","path":"spec/features/visitor_can_adjust_quantity_of_cart_items_spec.rb","position":29,"original_position":29,"commit_id":"9d5939a986e80815a07e5ae1609800f558a6d60b","original_commit_id":"9d5939a986e80815a07e5ae1609800f558a6d60b","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":"Useless assignment to variable - `candy`.","created_at":"2016-03-03T04:28:46Z","updated_at":"2016-03-03T04:28:46Z","html_url":"https://github.com/chadellison/custo_candy_co/pull/36#discussion_r54835029","pull_request_url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/comments/54835029"},"html":{"href":"https://github.com/chadellison/custo_candy_co/pull/36#discussion_r54835029"},"pull_request":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/36","id":61508953,"html_url":"https://github.com/chadellison/custo_candy_co/pull/36","diff_url":"https://github.com/chadellison/custo_candy_co/pull/36.diff","patch_url":"https://github.com/chadellison/custo_candy_co/pull/36.patch","issue_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues/36","number":36,"state":"open","locked":false,"title":"add adjust quantity functionality in cart","user":{"login":"chadellison","id":13648884,"avatar_url":"https://avatars.githubusercontent.com/u/13648884?v=3","gravatar_id":"","url":"https://api.github.com/users/chadellison","html_url":"https://github.com/chadellison","followers_url":"https://api.github.com/users/chadellison/followers","following_url":"https://api.github.com/users/chadellison/following{/other_user}","gists_url":"https://api.github.com/users/chadellison/gists{/gist_id}","starred_url":"https://api.github.com/users/chadellison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadellison/subscriptions","organizations_url":"https://api.github.com/users/chadellison/orgs","repos_url":"https://api.github.com/users/chadellison/repos","events_url":"https://api.github.com/users/chadellison/events{/privacy}","received_events_url":"https://api.github.com/users/chadellison/received_events","type":"User","site_admin":false},"body":"add plus 1 button and minus 1 button\r\nsad path for 0 items","created_at":"2016-03-03T04:22:26Z","updated_at":"2016-03-03T04:28:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4efd9b89b050cff64eb58b142757f19ec21640ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/36/commits","review_comments_url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/36/comments","review_comment_url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues/36/comments","statuses_url":"https://api.github.com/repos/chadellison/custo_candy_co/statuses/9d5939a986e80815a07e5ae1609800f558a6d60b","head":{"label":"chadellison:user_can_adjust_quantity_of_items_in_cart","ref":"user_can_adjust_quantity_of_items_in_cart","sha":"9d5939a986e80815a07e5ae1609800f558a6d60b","user":{"login":"chadellison","id":13648884,"avatar_url":"https://avatars.githubusercontent.com/u/13648884?v=3","gravatar_id":"","url":"https://api.github.com/users/chadellison","html_url":"https://github.com/chadellison","followers_url":"https://api.github.com/users/chadellison/followers","following_url":"https://api.github.com/users/chadellison/following{/other_user}","gists_url":"https://api.github.com/users/chadellison/gists{/gist_id}","starred_url":"https://api.github.com/users/chadellison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadellison/subscriptions","organizations_url":"https://api.github.com/users/chadellison/orgs","repos_url":"https://api.github.com/users/chadellison/repos","events_url":"https://api.github.com/users/chadellison/events{/privacy}","received_events_url":"https://api.github.com/users/chadellison/received_events","type":"User","site_admin":false},"repo":{"id":52826603,"name":"custo_candy_co","full_name":"chadellison/custo_candy_co","owner":{"login":"chadellison","id":13648884,"avatar_url":"https://avatars.githubusercontent.com/u/13648884?v=3","gravatar_id":"","url":"https://api.github.com/users/chadellison","html_url":"https://github.com/chadellison","followers_url":"https://api.github.com/users/chadellison/followers","following_url":"https://api.github.com/users/chadellison/following{/other_user}","gists_url":"https://api.github.com/users/chadellison/gists{/gist_id}","starred_url":"https://api.github.com/users/chadellison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadellison/subscriptions","organizations_url":"https://api.github.com/users/chadellison/orgs","repos_url":"https://api.github.com/users/chadellison/repos","events_url":"https://api.github.com/users/chadellison/events{/privacy}","received_events_url":"https://api.github.com/users/chadellison/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chadellison/custo_candy_co","description":null,"fork":false,"url":"https://api.github.com/repos/chadellison/custo_candy_co","forks_url":"https://api.github.com/repos/chadellison/custo_candy_co/forks","keys_url":"https://api.github.com/repos/chadellison/custo_candy_co/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chadellison/custo_candy_co/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chadellison/custo_candy_co/teams","hooks_url":"https://api.github.com/repos/chadellison/custo_candy_co/hooks","issue_events_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues/events{/number}","events_url":"https://api.github.com/repos/chadellison/custo_candy_co/events","assignees_url":"https://api.github.com/repos/chadellison/custo_candy_co/assignees{/user}","branches_url":"https://api.github.com/repos/chadellison/custo_candy_co/branches{/branch}","tags_url":"https://api.github.com/repos/chadellison/custo_candy_co/tags","blobs_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/refs{/sha}","trees_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chadellison/custo_candy_co/statuses/{sha}","languages_url":"https://api.github.com/repos/chadellison/custo_candy_co/languages","stargazers_url":"https://api.github.com/repos/chadellison/custo_candy_co/stargazers","contributors_url":"https://api.github.com/repos/chadellison/custo_candy_co/contributors","subscribers_url":"https://api.github.com/repos/chadellison/custo_candy_co/subscribers","subscription_url":"https://api.github.com/repos/chadellison/custo_candy_co/subscription","commits_url":"https://api.github.com/repos/chadellison/custo_candy_co/commits{/sha}","git_commits_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/commits{/sha}","comments_url":"https://api.github.com/repos/chadellison/custo_candy_co/comments{/number}","issue_comment_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues/comments{/number}","contents_url":"https://api.github.com/repos/chadellison/custo_candy_co/contents/{+path}","compare_url":"https://api.github.com/repos/chadellison/custo_candy_co/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chadellison/custo_candy_co/merges","archive_url":"https://api.github.com/repos/chadellison/custo_candy_co/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chadellison/custo_candy_co/downloads","issues_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues{/number}","pulls_url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls{/number}","milestones_url":"https://api.github.com/repos/chadellison/custo_candy_co/milestones{/number}","notifications_url":"https://api.github.com/repos/chadellison/custo_candy_co/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chadellison/custo_candy_co/labels{/name}","releases_url":"https://api.github.com/repos/chadellison/custo_candy_co/releases{/id}","deployments_url":"https://api.github.com/repos/chadellison/custo_candy_co/deployments","created_at":"2016-02-29T21:37:46Z","updated_at":"2016-02-29T21:38:09Z","pushed_at":"2016-03-03T04:28:43Z","git_url":"git://github.com/chadellison/custo_candy_co.git","ssh_url":"git@github.com:chadellison/custo_candy_co.git","clone_url":"https://github.com/chadellison/custo_candy_co.git","svn_url":"https://github.com/chadellison/custo_candy_co","homepage":null,"size":94,"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":"chadellison:master","ref":"master","sha":"223c8c0045806dc435487989798f63db1d387221","user":{"login":"chadellison","id":13648884,"avatar_url":"https://avatars.githubusercontent.com/u/13648884?v=3","gravatar_id":"","url":"https://api.github.com/users/chadellison","html_url":"https://github.com/chadellison","followers_url":"https://api.github.com/users/chadellison/followers","following_url":"https://api.github.com/users/chadellison/following{/other_user}","gists_url":"https://api.github.com/users/chadellison/gists{/gist_id}","starred_url":"https://api.github.com/users/chadellison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadellison/subscriptions","organizations_url":"https://api.github.com/users/chadellison/orgs","repos_url":"https://api.github.com/users/chadellison/repos","events_url":"https://api.github.com/users/chadellison/events{/privacy}","received_events_url":"https://api.github.com/users/chadellison/received_events","type":"User","site_admin":false},"repo":{"id":52826603,"name":"custo_candy_co","full_name":"chadellison/custo_candy_co","owner":{"login":"chadellison","id":13648884,"avatar_url":"https://avatars.githubusercontent.com/u/13648884?v=3","gravatar_id":"","url":"https://api.github.com/users/chadellison","html_url":"https://github.com/chadellison","followers_url":"https://api.github.com/users/chadellison/followers","following_url":"https://api.github.com/users/chadellison/following{/other_user}","gists_url":"https://api.github.com/users/chadellison/gists{/gist_id}","starred_url":"https://api.github.com/users/chadellison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadellison/subscriptions","organizations_url":"https://api.github.com/users/chadellison/orgs","repos_url":"https://api.github.com/users/chadellison/repos","events_url":"https://api.github.com/users/chadellison/events{/privacy}","received_events_url":"https://api.github.com/users/chadellison/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chadellison/custo_candy_co","description":null,"fork":false,"url":"https://api.github.com/repos/chadellison/custo_candy_co","forks_url":"https://api.github.com/repos/chadellison/custo_candy_co/forks","keys_url":"https://api.github.com/repos/chadellison/custo_candy_co/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chadellison/custo_candy_co/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chadellison/custo_candy_co/teams","hooks_url":"https://api.github.com/repos/chadellison/custo_candy_co/hooks","issue_events_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues/events{/number}","events_url":"https://api.github.com/repos/chadellison/custo_candy_co/events","assignees_url":"https://api.github.com/repos/chadellison/custo_candy_co/assignees{/user}","branches_url":"https://api.github.com/repos/chadellison/custo_candy_co/branches{/branch}","tags_url":"https://api.github.com/repos/chadellison/custo_candy_co/tags","blobs_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/refs{/sha}","trees_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chadellison/custo_candy_co/statuses/{sha}","languages_url":"https://api.github.com/repos/chadellison/custo_candy_co/languages","stargazers_url":"https://api.github.com/repos/chadellison/custo_candy_co/stargazers","contributors_url":"https://api.github.com/repos/chadellison/custo_candy_co/contributors","subscribers_url":"https://api.github.com/repos/chadellison/custo_candy_co/subscribers","subscription_url":"https://api.github.com/repos/chadellison/custo_candy_co/subscription","commits_url":"https://api.github.com/repos/chadellison/custo_candy_co/commits{/sha}","git_commits_url":"https://api.github.com/repos/chadellison/custo_candy_co/git/commits{/sha}","comments_url":"https://api.github.com/repos/chadellison/custo_candy_co/comments{/number}","issue_comment_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues/comments{/number}","contents_url":"https://api.github.com/repos/chadellison/custo_candy_co/contents/{+path}","compare_url":"https://api.github.com/repos/chadellison/custo_candy_co/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chadellison/custo_candy_co/merges","archive_url":"https://api.github.com/repos/chadellison/custo_candy_co/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chadellison/custo_candy_co/downloads","issues_url":"https://api.github.com/repos/chadellison/custo_candy_co/issues{/number}","pulls_url":"https://api.github.com/repos/chadellison/custo_candy_co/pulls{/number}","milestones_url":"https://api.github.com/repos/chadellison/custo_candy_co/milestones{/number}","notifications_url":"https://api.github.com/repos/chadellison/custo_candy_co/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chadellison/custo_candy_co/labels{/name}","releases_url":"https://api.github.com/repos/chadellison/custo_candy_co/releases{/id}","deployments_url":"https://api.github.com/repos/chadellison/custo_candy_co/deployments","created_at":"2016-02-29T21:37:46Z","updated_at":"2016-02-29T21:38:09Z","pushed_at":"2016-03-03T04:28:43Z","git_url":"git://github.com/chadellison/custo_candy_co.git","ssh_url":"git@github.com:chadellison/custo_candy_co.git","clone_url":"https://github.com/chadellison/custo_candy_co.git","svn_url":"https://github.com/chadellison/custo_candy_co","homepage":null,"size":94,"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/chadellison/custo_candy_co/pulls/36"},"html":{"href":"https://github.com/chadellison/custo_candy_co/pull/36"},"issue":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/issues/36"},"comments":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/chadellison/custo_candy_co/statuses/9d5939a986e80815a07e5ae1609800f558a6d60b"}}}}