{"action":"created","comment":{"url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/comments/58932069","id":58932069,"diff_hunk":"@@ -33,4 +32,26 @@\n     expect(page).to have_content(\"Edit Bar\")\n     expect(page).to have_content(\"Name can't be blank. Description can't be blank\")\n   end\n+\n+  scenario \"unauthenticated user edits bar\" do\n+    click_button \"Sign out\"\n+    click_link \"Happy Hour Lasagna\"\n+    click_button \"Edit Bar\"\n+\n+    expect(page).to have_content(\"Log in\")\n+    expect(page).to have_content(\"You need to sign in or sign up before continuing\")\n+  end\n+\n+  scenario \"user edits another user's bar\" do\n+    click_button \"Sign out\"\n+    click_button \"Sign in\"\n+    fill_in \"Email\", with: user2.email\n+    fill_in \"Password\", with: \"12345678\"\n+    click_button \"Log in\"\n+    click_link \"Happy Hour Lasagna\"\n+    click_button \"Edit Bar\"\n+\n+    expect(page).to have_content(bar1.name)\n+    expect(page).to have_content(\"You do not have permission to make this change\")","path":"spec/features/bars/user_edits_bar_spec.rb","position":58,"original_position":58,"commit_id":"51e688e130ea0abc9772e04122a5971d9331836a","original_commit_id":"51e688e130ea0abc9772e04122a5971d9331836a","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":"Line is too long. [82/80]","created_at":"2016-04-07T19:39:56Z","updated_at":"2016-04-07T19:39:56Z","html_url":"https://github.com/ncrawford0/the-usual-suspects/pull/11#discussion_r58932069","pull_request_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/comments/58932069"},"html":{"href":"https://github.com/ncrawford0/the-usual-suspects/pull/11#discussion_r58932069"},"pull_request":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11","id":65687181,"html_url":"https://github.com/ncrawford0/the-usual-suspects/pull/11","diff_url":"https://github.com/ncrawford0/the-usual-suspects/pull/11.diff","patch_url":"https://github.com/ncrawford0/the-usual-suspects/pull/11.patch","issue_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/11","number":11,"state":"open","locked":false,"title":"Added permissions to bars and reviews","user":{"login":"xnick421","id":16607249,"avatar_url":"https://avatars.githubusercontent.com/u/16607249?v=3","gravatar_id":"","url":"https://api.github.com/users/xnick421","html_url":"https://github.com/xnick421","followers_url":"https://api.github.com/users/xnick421/followers","following_url":"https://api.github.com/users/xnick421/following{/other_user}","gists_url":"https://api.github.com/users/xnick421/gists{/gist_id}","starred_url":"https://api.github.com/users/xnick421/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnick421/subscriptions","organizations_url":"https://api.github.com/users/xnick421/orgs","repos_url":"https://api.github.com/users/xnick421/repos","events_url":"https://api.github.com/users/xnick421/events{/privacy}","received_events_url":"https://api.github.com/users/xnick421/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-07T19:39:52Z","updated_at":"2016-04-07T19:39:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/11/comments","statuses_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/statuses/51e688e130ea0abc9772e04122a5971d9331836a","head":{"label":"ncrawford0:permissions","ref":"permissions","sha":"51e688e130ea0abc9772e04122a5971d9331836a","user":{"login":"ncrawford0","id":17457084,"avatar_url":"https://avatars.githubusercontent.com/u/17457084?v=3","gravatar_id":"","url":"https://api.github.com/users/ncrawford0","html_url":"https://github.com/ncrawford0","followers_url":"https://api.github.com/users/ncrawford0/followers","following_url":"https://api.github.com/users/ncrawford0/following{/other_user}","gists_url":"https://api.github.com/users/ncrawford0/gists{/gist_id}","starred_url":"https://api.github.com/users/ncrawford0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncrawford0/subscriptions","organizations_url":"https://api.github.com/users/ncrawford0/orgs","repos_url":"https://api.github.com/users/ncrawford0/repos","events_url":"https://api.github.com/users/ncrawford0/events{/privacy}","received_events_url":"https://api.github.com/users/ncrawford0/received_events","type":"User","site_admin":false},"repo":{"id":55421713,"name":"the-usual-suspects","full_name":"ncrawford0/the-usual-suspects","owner":{"login":"ncrawford0","id":17457084,"avatar_url":"https://avatars.githubusercontent.com/u/17457084?v=3","gravatar_id":"","url":"https://api.github.com/users/ncrawford0","html_url":"https://github.com/ncrawford0","followers_url":"https://api.github.com/users/ncrawford0/followers","following_url":"https://api.github.com/users/ncrawford0/following{/other_user}","gists_url":"https://api.github.com/users/ncrawford0/gists{/gist_id}","starred_url":"https://api.github.com/users/ncrawford0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncrawford0/subscriptions","organizations_url":"https://api.github.com/users/ncrawford0/orgs","repos_url":"https://api.github.com/users/ncrawford0/repos","events_url":"https://api.github.com/users/ncrawford0/events{/privacy}","received_events_url":"https://api.github.com/users/ncrawford0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ncrawford0/the-usual-suspects","description":"Review site group project.","fork":false,"url":"https://api.github.com/repos/ncrawford0/the-usual-suspects","forks_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/forks","keys_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/teams","hooks_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/hooks","issue_events_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/events{/number}","events_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/events","assignees_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/assignees{/user}","branches_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/branches{/branch}","tags_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/tags","blobs_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/refs{/sha}","trees_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/statuses/{sha}","languages_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/languages","stargazers_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/stargazers","contributors_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/contributors","subscribers_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/subscribers","subscription_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/subscription","commits_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/commits{/sha}","git_commits_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/commits{/sha}","comments_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/comments{/number}","issue_comment_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/comments{/number}","contents_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/contents/{+path}","compare_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/merges","archive_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/downloads","issues_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues{/number}","pulls_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls{/number}","milestones_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/milestones{/number}","notifications_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/labels{/name}","releases_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/releases{/id}","deployments_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/deployments","created_at":"2016-04-04T15:16:45Z","updated_at":"2016-04-07T16:57:54Z","pushed_at":"2016-04-07T19:39:53Z","git_url":"git://github.com/ncrawford0/the-usual-suspects.git","ssh_url":"git@github.com:ncrawford0/the-usual-suspects.git","clone_url":"https://github.com/ncrawford0/the-usual-suspects.git","svn_url":"https://github.com/ncrawford0/the-usual-suspects","homepage":null,"size":382,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ncrawford0:master","ref":"master","sha":"9e7a31dd8972d6319ba330659e29bb437fb30b08","user":{"login":"ncrawford0","id":17457084,"avatar_url":"https://avatars.githubusercontent.com/u/17457084?v=3","gravatar_id":"","url":"https://api.github.com/users/ncrawford0","html_url":"https://github.com/ncrawford0","followers_url":"https://api.github.com/users/ncrawford0/followers","following_url":"https://api.github.com/users/ncrawford0/following{/other_user}","gists_url":"https://api.github.com/users/ncrawford0/gists{/gist_id}","starred_url":"https://api.github.com/users/ncrawford0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncrawford0/subscriptions","organizations_url":"https://api.github.com/users/ncrawford0/orgs","repos_url":"https://api.github.com/users/ncrawford0/repos","events_url":"https://api.github.com/users/ncrawford0/events{/privacy}","received_events_url":"https://api.github.com/users/ncrawford0/received_events","type":"User","site_admin":false},"repo":{"id":55421713,"name":"the-usual-suspects","full_name":"ncrawford0/the-usual-suspects","owner":{"login":"ncrawford0","id":17457084,"avatar_url":"https://avatars.githubusercontent.com/u/17457084?v=3","gravatar_id":"","url":"https://api.github.com/users/ncrawford0","html_url":"https://github.com/ncrawford0","followers_url":"https://api.github.com/users/ncrawford0/followers","following_url":"https://api.github.com/users/ncrawford0/following{/other_user}","gists_url":"https://api.github.com/users/ncrawford0/gists{/gist_id}","starred_url":"https://api.github.com/users/ncrawford0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncrawford0/subscriptions","organizations_url":"https://api.github.com/users/ncrawford0/orgs","repos_url":"https://api.github.com/users/ncrawford0/repos","events_url":"https://api.github.com/users/ncrawford0/events{/privacy}","received_events_url":"https://api.github.com/users/ncrawford0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ncrawford0/the-usual-suspects","description":"Review site group project.","fork":false,"url":"https://api.github.com/repos/ncrawford0/the-usual-suspects","forks_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/forks","keys_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/teams","hooks_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/hooks","issue_events_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/events{/number}","events_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/events","assignees_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/assignees{/user}","branches_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/branches{/branch}","tags_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/tags","blobs_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/refs{/sha}","trees_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/statuses/{sha}","languages_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/languages","stargazers_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/stargazers","contributors_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/contributors","subscribers_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/subscribers","subscription_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/subscription","commits_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/commits{/sha}","git_commits_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/git/commits{/sha}","comments_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/comments{/number}","issue_comment_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/comments{/number}","contents_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/contents/{+path}","compare_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/merges","archive_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/downloads","issues_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues{/number}","pulls_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls{/number}","milestones_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/milestones{/number}","notifications_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/labels{/name}","releases_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/releases{/id}","deployments_url":"https://api.github.com/repos/ncrawford0/the-usual-suspects/deployments","created_at":"2016-04-04T15:16:45Z","updated_at":"2016-04-07T16:57:54Z","pushed_at":"2016-04-07T19:39:53Z","git_url":"git://github.com/ncrawford0/the-usual-suspects.git","ssh_url":"git@github.com:ncrawford0/the-usual-suspects.git","clone_url":"https://github.com/ncrawford0/the-usual-suspects.git","svn_url":"https://github.com/ncrawford0/the-usual-suspects","homepage":null,"size":382,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11"},"html":{"href":"https://github.com/ncrawford0/the-usual-suspects/pull/11"},"issue":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/11"},"comments":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ncrawford0/the-usual-suspects/statuses/51e688e130ea0abc9772e04122a5971d9331836a"}}}}