{"action":"created","comment":{"url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments/44585198","id":44585198,"diff_hunk":"@@ -1,14 +1,77 @@\n require 'test_helper'\n \n class VisitorCanAddItemToCartAndViewCartTest < ActionDispatch::IntegrationTest\n-  test 'visitor can add item to cart' do\n-    skip\n+  test 'visitor can add item to cart from index' do\n+    Item.create(name: \"gnar possum\",\n+                description: \"a snowboard for shredding gnar pow\",\n+                price: 1000)\n+\n+    visit items_path\n+    assert page.has_content?(\"Cart: 0\")\n+    click_link \"Add To Cart\"\n+\n+    assert page.has_content?(\"You now have 1 gnar possum in your cart.\")\n+    assert page.has_content?(\"Cart: 1\")\n+\n+    click_link \"Add To Cart\"\n+    assert page.has_content?(\"You now have 2 gnar possums in your cart.\")\n+    assert page.has_content?(\"Cart: 2\")\n+\n+  end\n+\n+  test 'visitor can add item to cart from show page' do\n+     Item.create(name: \"gnar possum\",\n+                 description: \"a snowboard for shredding gnar pow\",\n+                 price: 1000)\n     visit items_path\n+    click_link \"View Item\"","path":"test/integration/visitor_can_add_item_to_cart_and_view_cart_test.rb","position":29,"original_position":29,"commit_id":"ddafcf2658e3dd0c8c59bfd747fdec0eed471854","original_commit_id":"ddafcf2658e3dd0c8c59bfd747fdec0eed471854","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":"Inconsistent indentation detected.","created_at":"2015-11-11T20:57:54Z","updated_at":"2015-11-11T20:57:54Z","html_url":"https://github.com/MattRooney/GnarPow/pull/17#discussion_r44585198","pull_request_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments/44585198"},"html":{"href":"https://github.com/MattRooney/GnarPow/pull/17#discussion_r44585198"},"pull_request":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/17","id":50435233,"html_url":"https://github.com/MattRooney/GnarPow/pull/17","diff_url":"https://github.com/MattRooney/GnarPow/pull/17.diff","patch_url":"https://github.com/MattRooney/GnarPow/pull/17.patch","issue_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/17","number":17,"state":"open","locked":false,"title":"closes #5 adding items to a cart","user":{"login":"matt-stj","id":5952473,"avatar_url":"https://avatars.githubusercontent.com/u/5952473?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-stj","html_url":"https://github.com/matt-stj","followers_url":"https://api.github.com/users/matt-stj/followers","following_url":"https://api.github.com/users/matt-stj/following{/other_user}","gists_url":"https://api.github.com/users/matt-stj/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-stj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-stj/subscriptions","organizations_url":"https://api.github.com/users/matt-stj/orgs","repos_url":"https://api.github.com/users/matt-stj/repos","events_url":"https://api.github.com/users/matt-stj/events{/privacy}","received_events_url":"https://api.github.com/users/matt-stj/received_events","type":"User","site_admin":false},"body":"looks good?","created_at":"2015-11-11T20:57:46Z","updated_at":"2015-11-11T20:57:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"389a02d0096d7655b90c840edce11177b060d7ca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/17/commits","review_comments_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/17/comments","review_comment_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/17/comments","statuses_url":"https://api.github.com/repos/MattRooney/GnarPow/statuses/ddafcf2658e3dd0c8c59bfd747fdec0eed471854","head":{"label":"MattRooney:5-Adding-items-to-a-cart","ref":"5-Adding-items-to-a-cart","sha":"ddafcf2658e3dd0c8c59bfd747fdec0eed471854","user":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"repo":{"id":45856045,"name":"GnarPow","full_name":"MattRooney/GnarPow","owner":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MattRooney/GnarPow","description":"","fork":false,"url":"https://api.github.com/repos/MattRooney/GnarPow","forks_url":"https://api.github.com/repos/MattRooney/GnarPow/forks","keys_url":"https://api.github.com/repos/MattRooney/GnarPow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MattRooney/GnarPow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MattRooney/GnarPow/teams","hooks_url":"https://api.github.com/repos/MattRooney/GnarPow/hooks","issue_events_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/events{/number}","events_url":"https://api.github.com/repos/MattRooney/GnarPow/events","assignees_url":"https://api.github.com/repos/MattRooney/GnarPow/assignees{/user}","branches_url":"https://api.github.com/repos/MattRooney/GnarPow/branches{/branch}","tags_url":"https://api.github.com/repos/MattRooney/GnarPow/tags","blobs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MattRooney/GnarPow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/refs{/sha}","trees_url":"https://api.github.com/repos/MattRooney/GnarPow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MattRooney/GnarPow/statuses/{sha}","languages_url":"https://api.github.com/repos/MattRooney/GnarPow/languages","stargazers_url":"https://api.github.com/repos/MattRooney/GnarPow/stargazers","contributors_url":"https://api.github.com/repos/MattRooney/GnarPow/contributors","subscribers_url":"https://api.github.com/repos/MattRooney/GnarPow/subscribers","subscription_url":"https://api.github.com/repos/MattRooney/GnarPow/subscription","commits_url":"https://api.github.com/repos/MattRooney/GnarPow/commits{/sha}","git_commits_url":"https://api.github.com/repos/MattRooney/GnarPow/git/commits{/sha}","comments_url":"https://api.github.com/repos/MattRooney/GnarPow/comments{/number}","issue_comment_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/comments{/number}","contents_url":"https://api.github.com/repos/MattRooney/GnarPow/contents/{+path}","compare_url":"https://api.github.com/repos/MattRooney/GnarPow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MattRooney/GnarPow/merges","archive_url":"https://api.github.com/repos/MattRooney/GnarPow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MattRooney/GnarPow/downloads","issues_url":"https://api.github.com/repos/MattRooney/GnarPow/issues{/number}","pulls_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls{/number}","milestones_url":"https://api.github.com/repos/MattRooney/GnarPow/milestones{/number}","notifications_url":"https://api.github.com/repos/MattRooney/GnarPow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MattRooney/GnarPow/labels{/name}","releases_url":"https://api.github.com/repos/MattRooney/GnarPow/releases{/id}","created_at":"2015-11-09T17:55:11Z","updated_at":"2015-11-10T20:33:50Z","pushed_at":"2015-11-11T20:57:47Z","git_url":"git://github.com/MattRooney/GnarPow.git","ssh_url":"git@github.com:MattRooney/GnarPow.git","clone_url":"https://github.com/MattRooney/GnarPow.git","svn_url":"https://github.com/MattRooney/GnarPow","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"MattRooney:master","ref":"master","sha":"6f6a6b8307667d623a2f6346d56777e3db4283f4","user":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"repo":{"id":45856045,"name":"GnarPow","full_name":"MattRooney/GnarPow","owner":{"login":"MattRooney","id":11494414,"avatar_url":"https://avatars.githubusercontent.com/u/11494414?v=3","gravatar_id":"","url":"https://api.github.com/users/MattRooney","html_url":"https://github.com/MattRooney","followers_url":"https://api.github.com/users/MattRooney/followers","following_url":"https://api.github.com/users/MattRooney/following{/other_user}","gists_url":"https://api.github.com/users/MattRooney/gists{/gist_id}","starred_url":"https://api.github.com/users/MattRooney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattRooney/subscriptions","organizations_url":"https://api.github.com/users/MattRooney/orgs","repos_url":"https://api.github.com/users/MattRooney/repos","events_url":"https://api.github.com/users/MattRooney/events{/privacy}","received_events_url":"https://api.github.com/users/MattRooney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MattRooney/GnarPow","description":"","fork":false,"url":"https://api.github.com/repos/MattRooney/GnarPow","forks_url":"https://api.github.com/repos/MattRooney/GnarPow/forks","keys_url":"https://api.github.com/repos/MattRooney/GnarPow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MattRooney/GnarPow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MattRooney/GnarPow/teams","hooks_url":"https://api.github.com/repos/MattRooney/GnarPow/hooks","issue_events_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/events{/number}","events_url":"https://api.github.com/repos/MattRooney/GnarPow/events","assignees_url":"https://api.github.com/repos/MattRooney/GnarPow/assignees{/user}","branches_url":"https://api.github.com/repos/MattRooney/GnarPow/branches{/branch}","tags_url":"https://api.github.com/repos/MattRooney/GnarPow/tags","blobs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MattRooney/GnarPow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MattRooney/GnarPow/git/refs{/sha}","trees_url":"https://api.github.com/repos/MattRooney/GnarPow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MattRooney/GnarPow/statuses/{sha}","languages_url":"https://api.github.com/repos/MattRooney/GnarPow/languages","stargazers_url":"https://api.github.com/repos/MattRooney/GnarPow/stargazers","contributors_url":"https://api.github.com/repos/MattRooney/GnarPow/contributors","subscribers_url":"https://api.github.com/repos/MattRooney/GnarPow/subscribers","subscription_url":"https://api.github.com/repos/MattRooney/GnarPow/subscription","commits_url":"https://api.github.com/repos/MattRooney/GnarPow/commits{/sha}","git_commits_url":"https://api.github.com/repos/MattRooney/GnarPow/git/commits{/sha}","comments_url":"https://api.github.com/repos/MattRooney/GnarPow/comments{/number}","issue_comment_url":"https://api.github.com/repos/MattRooney/GnarPow/issues/comments{/number}","contents_url":"https://api.github.com/repos/MattRooney/GnarPow/contents/{+path}","compare_url":"https://api.github.com/repos/MattRooney/GnarPow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MattRooney/GnarPow/merges","archive_url":"https://api.github.com/repos/MattRooney/GnarPow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MattRooney/GnarPow/downloads","issues_url":"https://api.github.com/repos/MattRooney/GnarPow/issues{/number}","pulls_url":"https://api.github.com/repos/MattRooney/GnarPow/pulls{/number}","milestones_url":"https://api.github.com/repos/MattRooney/GnarPow/milestones{/number}","notifications_url":"https://api.github.com/repos/MattRooney/GnarPow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MattRooney/GnarPow/labels{/name}","releases_url":"https://api.github.com/repos/MattRooney/GnarPow/releases{/id}","created_at":"2015-11-09T17:55:11Z","updated_at":"2015-11-10T20:33:50Z","pushed_at":"2015-11-11T20:57:47Z","git_url":"git://github.com/MattRooney/GnarPow.git","ssh_url":"git@github.com:MattRooney/GnarPow.git","clone_url":"https://github.com/MattRooney/GnarPow.git","svn_url":"https://github.com/MattRooney/GnarPow","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/MattRooney/GnarPow/pulls/17"},"html":{"href":"https://github.com/MattRooney/GnarPow/pull/17"},"issue":{"href":"https://api.github.com/repos/MattRooney/GnarPow/issues/17"},"comments":{"href":"https://api.github.com/repos/MattRooney/GnarPow/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MattRooney/GnarPow/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/MattRooney/GnarPow/statuses/ddafcf2658e3dd0c8c59bfd747fdec0eed471854"}}}}