{"action":"created","comment":{"url":"https://api.github.com/repos/rshea303/MisterPizza/pulls/comments/26786397","id":26786397,"diff_hunk":"@@ -4,21 +4,24 @@\n \n   before do\n     @category = Category.create!(name: \"pizza\")\n-    @category.items.create!(name: \"item1\", description: \"item1desc\", price: 5000, image_file_name: \"default\")\n+    item = @category.items.create!(name: \"item1\", description: \"item1desc\", price: 5000, image_file_name: \"default\")\n     @user = User.create!(user_attributes)\n \n     allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(@user)\n     \n-    @cart = Cart.new({\"1\" => 5})\n-    allow_any_instance_of(ApplicationController).to receive(:cart).and_return(@cart)\n-    visit \"/\"\n+    #@cart = Cart.new({\"#{item.id}\" => 10})\n+    #allow_any_instance_of(ApplicationController).to receive(:cart).and_return(@cart)\n     \n-    # how do I stub this out???\n-    click_link_or_button('pizza')\n-    10.times do\n-      click_link_or_button('Add To Cart')\n-    end\n-    click_link_or_button(\"Items in Cart\")\n+    #  how do I stub this out???\n+     visit \"/\"\n+     click_link_or_button('pizza')\n+\n+     10.times do\n+       click_link_or_button('Add To Cart')","path":"spec/features/authorizations/user_cannot_view_other_user_pages_spec.rb","position":27,"original_position":27,"commit_id":"11b543fb06bb2562ab40a9ca43d0453e1ccbd7fa","original_commit_id":"11b543fb06bb2562ab40a9ca43d0453e1ccbd7fa","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-03-19T18:56:41Z","updated_at":"2015-03-19T18:56:41Z","html_url":"https://github.com/rshea303/MisterPizza/pull/41#discussion_r26786397","pull_request_url":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/rshea303/MisterPizza/pulls/comments/26786397"},"html":{"href":"https://github.com/rshea303/MisterPizza/pull/41#discussion_r26786397"},"pull_request":{"href":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41","id":31554570,"html_url":"https://github.com/rshea303/MisterPizza/pull/41","diff_url":"https://github.com/rshea303/MisterPizza/pull/41.diff","patch_url":"https://github.com/rshea303/MisterPizza/pull/41.patch","issue_url":"https://api.github.com/repos/rshea303/MisterPizza/issues/41","number":41,"state":"closed","locked":false,"title":"Code review with josh","user":{"login":"rshea303","id":7894293,"avatar_url":"https://avatars.githubusercontent.com/u/7894293?v=3","gravatar_id":"","url":"https://api.github.com/users/rshea303","html_url":"https://github.com/rshea303","followers_url":"https://api.github.com/users/rshea303/followers","following_url":"https://api.github.com/users/rshea303/following{/other_user}","gists_url":"https://api.github.com/users/rshea303/gists{/gist_id}","starred_url":"https://api.github.com/users/rshea303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshea303/subscriptions","organizations_url":"https://api.github.com/users/rshea303/orgs","repos_url":"https://api.github.com/users/rshea303/repos","events_url":"https://api.github.com/users/rshea303/events{/privacy}","received_events_url":"https://api.github.com/users/rshea303/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-19T18:56:36Z","updated_at":"2015-03-19T18:56:41Z","closed_at":"2015-03-19T18:56:39Z","merged_at":"2015-03-19T18:56:39Z","merge_commit_sha":"f99e44791897c28745991a14ea5fa24f8e379776","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41/commits","review_comments_url":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41/comments","review_comment_url":"https://api.github.com/repos/rshea303/MisterPizza/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rshea303/MisterPizza/issues/41/comments","statuses_url":"https://api.github.com/repos/rshea303/MisterPizza/statuses/11b543fb06bb2562ab40a9ca43d0453e1ccbd7fa","head":{"label":"rshea303:code-review-with-josh","ref":"code-review-with-josh","sha":"11b543fb06bb2562ab40a9ca43d0453e1ccbd7fa","user":{"login":"rshea303","id":7894293,"avatar_url":"https://avatars.githubusercontent.com/u/7894293?v=3","gravatar_id":"","url":"https://api.github.com/users/rshea303","html_url":"https://github.com/rshea303","followers_url":"https://api.github.com/users/rshea303/followers","following_url":"https://api.github.com/users/rshea303/following{/other_user}","gists_url":"https://api.github.com/users/rshea303/gists{/gist_id}","starred_url":"https://api.github.com/users/rshea303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshea303/subscriptions","organizations_url":"https://api.github.com/users/rshea303/orgs","repos_url":"https://api.github.com/users/rshea303/repos","events_url":"https://api.github.com/users/rshea303/events{/privacy}","received_events_url":"https://api.github.com/users/rshea303/received_events","type":"User","site_admin":false},"repo":{"id":31928269,"name":"MisterPizza","full_name":"rshea303/MisterPizza","owner":{"login":"rshea303","id":7894293,"avatar_url":"https://avatars.githubusercontent.com/u/7894293?v=3","gravatar_id":"","url":"https://api.github.com/users/rshea303","html_url":"https://github.com/rshea303","followers_url":"https://api.github.com/users/rshea303/followers","following_url":"https://api.github.com/users/rshea303/following{/other_user}","gists_url":"https://api.github.com/users/rshea303/gists{/gist_id}","starred_url":"https://api.github.com/users/rshea303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshea303/subscriptions","organizations_url":"https://api.github.com/users/rshea303/orgs","repos_url":"https://api.github.com/users/rshea303/repos","events_url":"https://api.github.com/users/rshea303/events{/privacy}","received_events_url":"https://api.github.com/users/rshea303/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rshea303/MisterPizza","description":"","fork":false,"url":"https://api.github.com/repos/rshea303/MisterPizza","forks_url":"https://api.github.com/repos/rshea303/MisterPizza/forks","keys_url":"https://api.github.com/repos/rshea303/MisterPizza/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rshea303/MisterPizza/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rshea303/MisterPizza/teams","hooks_url":"https://api.github.com/repos/rshea303/MisterPizza/hooks","issue_events_url":"https://api.github.com/repos/rshea303/MisterPizza/issues/events{/number}","events_url":"https://api.github.com/repos/rshea303/MisterPizza/events","assignees_url":"https://api.github.com/repos/rshea303/MisterPizza/assignees{/user}","branches_url":"https://api.github.com/repos/rshea303/MisterPizza/branches{/branch}","tags_url":"https://api.github.com/repos/rshea303/MisterPizza/tags","blobs_url":"https://api.github.com/repos/rshea303/MisterPizza/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rshea303/MisterPizza/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rshea303/MisterPizza/git/refs{/sha}","trees_url":"https://api.github.com/repos/rshea303/MisterPizza/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rshea303/MisterPizza/statuses/{sha}","languages_url":"https://api.github.com/repos/rshea303/MisterPizza/languages","stargazers_url":"https://api.github.com/repos/rshea303/MisterPizza/stargazers","contributors_url":"https://api.github.com/repos/rshea303/MisterPizza/contributors","subscribers_url":"https://api.github.com/repos/rshea303/MisterPizza/subscribers","subscription_url":"https://api.github.com/repos/rshea303/MisterPizza/subscription","commits_url":"https://api.github.com/repos/rshea303/MisterPizza/commits{/sha}","git_commits_url":"https://api.github.com/repos/rshea303/MisterPizza/git/commits{/sha}","comments_url":"https://api.github.com/repos/rshea303/MisterPizza/comments{/number}","issue_comment_url":"https://api.github.com/repos/rshea303/MisterPizza/issues/comments{/number}","contents_url":"https://api.github.com/repos/rshea303/MisterPizza/contents/{+path}","compare_url":"https://api.github.com/repos/rshea303/MisterPizza/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rshea303/MisterPizza/merges","archive_url":"https://api.github.com/repos/rshea303/MisterPizza/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rshea303/MisterPizza/downloads","issues_url":"https://api.github.com/repos/rshea303/MisterPizza/issues{/number}","pulls_url":"https://api.github.com/repos/rshea303/MisterPizza/pulls{/number}","milestones_url":"https://api.github.com/repos/rshea303/MisterPizza/milestones{/number}","notifications_url":"https://api.github.com/repos/rshea303/MisterPizza/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rshea303/MisterPizza/labels{/name}","releases_url":"https://api.github.com/repos/rshea303/MisterPizza/releases{/id}","created_at":"2015-03-09T23:31:58Z","updated_at":"2015-03-19T18:56:40Z","pushed_at":"2015-03-19T18:56:41Z","git_url":"git://github.com/rshea303/MisterPizza.git","ssh_url":"git@github.com:rshea303/MisterPizza.git","clone_url":"https://github.com/rshea303/MisterPizza.git","svn_url":"https://github.com/rshea303/MisterPizza","homepage":null,"size":284,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"rshea303:master","ref":"master","sha":"b428d3d8a27130ad29462a8aa8351b0fe3e299af","user":{"login":"rshea303","id":7894293,"avatar_url":"https://avatars.githubusercontent.com/u/7894293?v=3","gravatar_id":"","url":"https://api.github.com/users/rshea303","html_url":"https://github.com/rshea303","followers_url":"https://api.github.com/users/rshea303/followers","following_url":"https://api.github.com/users/rshea303/following{/other_user}","gists_url":"https://api.github.com/users/rshea303/gists{/gist_id}","starred_url":"https://api.github.com/users/rshea303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshea303/subscriptions","organizations_url":"https://api.github.com/users/rshea303/orgs","repos_url":"https://api.github.com/users/rshea303/repos","events_url":"https://api.github.com/users/rshea303/events{/privacy}","received_events_url":"https://api.github.com/users/rshea303/received_events","type":"User","site_admin":false},"repo":{"id":31928269,"name":"MisterPizza","full_name":"rshea303/MisterPizza","owner":{"login":"rshea303","id":7894293,"avatar_url":"https://avatars.githubusercontent.com/u/7894293?v=3","gravatar_id":"","url":"https://api.github.com/users/rshea303","html_url":"https://github.com/rshea303","followers_url":"https://api.github.com/users/rshea303/followers","following_url":"https://api.github.com/users/rshea303/following{/other_user}","gists_url":"https://api.github.com/users/rshea303/gists{/gist_id}","starred_url":"https://api.github.com/users/rshea303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rshea303/subscriptions","organizations_url":"https://api.github.com/users/rshea303/orgs","repos_url":"https://api.github.com/users/rshea303/repos","events_url":"https://api.github.com/users/rshea303/events{/privacy}","received_events_url":"https://api.github.com/users/rshea303/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rshea303/MisterPizza","description":"","fork":false,"url":"https://api.github.com/repos/rshea303/MisterPizza","forks_url":"https://api.github.com/repos/rshea303/MisterPizza/forks","keys_url":"https://api.github.com/repos/rshea303/MisterPizza/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rshea303/MisterPizza/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rshea303/MisterPizza/teams","hooks_url":"https://api.github.com/repos/rshea303/MisterPizza/hooks","issue_events_url":"https://api.github.com/repos/rshea303/MisterPizza/issues/events{/number}","events_url":"https://api.github.com/repos/rshea303/MisterPizza/events","assignees_url":"https://api.github.com/repos/rshea303/MisterPizza/assignees{/user}","branches_url":"https://api.github.com/repos/rshea303/MisterPizza/branches{/branch}","tags_url":"https://api.github.com/repos/rshea303/MisterPizza/tags","blobs_url":"https://api.github.com/repos/rshea303/MisterPizza/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rshea303/MisterPizza/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rshea303/MisterPizza/git/refs{/sha}","trees_url":"https://api.github.com/repos/rshea303/MisterPizza/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rshea303/MisterPizza/statuses/{sha}","languages_url":"https://api.github.com/repos/rshea303/MisterPizza/languages","stargazers_url":"https://api.github.com/repos/rshea303/MisterPizza/stargazers","contributors_url":"https://api.github.com/repos/rshea303/MisterPizza/contributors","subscribers_url":"https://api.github.com/repos/rshea303/MisterPizza/subscribers","subscription_url":"https://api.github.com/repos/rshea303/MisterPizza/subscription","commits_url":"https://api.github.com/repos/rshea303/MisterPizza/commits{/sha}","git_commits_url":"https://api.github.com/repos/rshea303/MisterPizza/git/commits{/sha}","comments_url":"https://api.github.com/repos/rshea303/MisterPizza/comments{/number}","issue_comment_url":"https://api.github.com/repos/rshea303/MisterPizza/issues/comments{/number}","contents_url":"https://api.github.com/repos/rshea303/MisterPizza/contents/{+path}","compare_url":"https://api.github.com/repos/rshea303/MisterPizza/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rshea303/MisterPizza/merges","archive_url":"https://api.github.com/repos/rshea303/MisterPizza/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rshea303/MisterPizza/downloads","issues_url":"https://api.github.com/repos/rshea303/MisterPizza/issues{/number}","pulls_url":"https://api.github.com/repos/rshea303/MisterPizza/pulls{/number}","milestones_url":"https://api.github.com/repos/rshea303/MisterPizza/milestones{/number}","notifications_url":"https://api.github.com/repos/rshea303/MisterPizza/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rshea303/MisterPizza/labels{/name}","releases_url":"https://api.github.com/repos/rshea303/MisterPizza/releases{/id}","created_at":"2015-03-09T23:31:58Z","updated_at":"2015-03-19T18:56:40Z","pushed_at":"2015-03-19T18:56:41Z","git_url":"git://github.com/rshea303/MisterPizza.git","ssh_url":"git@github.com:rshea303/MisterPizza.git","clone_url":"https://github.com/rshea303/MisterPizza.git","svn_url":"https://github.com/rshea303/MisterPizza","homepage":null,"size":284,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41"},"html":{"href":"https://github.com/rshea303/MisterPizza/pull/41"},"issue":{"href":"https://api.github.com/repos/rshea303/MisterPizza/issues/41"},"comments":{"href":"https://api.github.com/repos/rshea303/MisterPizza/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/rshea303/MisterPizza/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rshea303/MisterPizza/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/rshea303/MisterPizza/statuses/11b543fb06bb2562ab40a9ca43d0453e1ccbd7fa"}}}}