{"action":"created","comment":{"url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/comments/34155160","id":34155160,"diff_hunk":"@@ -0,0 +1,76 @@\n+require 'rails_helper'\n+\n+feature \"Admin deletes review\" do\n+\n+  scenario 'I want to delete a review and am not an admin' do\n+\n+      user = FactoryGirl.create(:user)\n+\n+      visit new_user_session_path\n+\n+      fill_in 'Email', with: user.email\n+      fill_in 'Password', with: user.password\n+\n+      click_button 'Log in'\n+      user.admin = false\n+\n+      spot = Spot.create!(\n+      name: 'asdfasdf',\n+      description: 'lala',\n+      category: 'asdf',\n+      address: '44 street',\n+      city: 'Dove',\n+      state: 'MA',\n+      zip_code: '12345',\n+      phone: '1234565432',\n+      user: user\n+      )\n+\n+      Review.create!(\n+      rating: 4,\n+      body: \"Sooooooo terrible!\",\n+      spot: spot,\n+      user: user,\n+      )\n+\n+    visit spot_path(spot)\n+    click_link \"Delete review\"\n+    expect(page).to have_content(\"You don't have permission to destroy that review.\")\n+  end\n+\n+  scenario 'I want to delete a review and am an admin' do\n+\n+      user = FactoryGirl.create(:admin_user)\n+\n+      visit new_user_session_path\n+\n+      fill_in 'Email', with: user.email\n+      fill_in 'Password', with: user.password\n+\n+      click_button 'Log in'\n+\n+      spot = Spot.create!(\n+      name: 'asdfasdf',\n+      description: 'lala',\n+      category: 'asdf',\n+      address: '44 street',\n+      city: 'Dove',\n+      state: 'MA',\n+      zip_code: '12345',\n+      phone: '1234565432',\n+      user: user\n+      )\n+\n+      Review.create!(\n+      rating: 4,","path":"spec/features/admin_deletes_a_review_spec.rb","position":65,"original_position":65,"commit_id":"edef8927ef098b9b41ae298dd4abd9739036fe95","original_commit_id":"edef8927ef098b9b41ae298dd4abd9739036fe95","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":"Indent the first parameter one step more than the previous line.","created_at":"2015-07-08T14:42:28Z","updated_at":"2015-07-08T14:42:28Z","html_url":"https://github.com/lfields90/Study-Buddy/pull/11#discussion_r34155160","pull_request_url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/comments/34155160"},"html":{"href":"https://github.com/lfields90/Study-Buddy/pull/11#discussion_r34155160"},"pull_request":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11","id":39484441,"html_url":"https://github.com/lfields90/Study-Buddy/pull/11","diff_url":"https://github.com/lfields90/Study-Buddy/pull/11.diff","patch_url":"https://github.com/lfields90/Study-Buddy/pull/11.patch","issue_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues/11","number":11,"state":"open","locked":false,"title":"Add admin role","user":{"login":"NoraDelaney","id":11383263,"avatar_url":"https://avatars.githubusercontent.com/u/11383263?v=3","gravatar_id":"","url":"https://api.github.com/users/NoraDelaney","html_url":"https://github.com/NoraDelaney","followers_url":"https://api.github.com/users/NoraDelaney/followers","following_url":"https://api.github.com/users/NoraDelaney/following{/other_user}","gists_url":"https://api.github.com/users/NoraDelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/NoraDelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoraDelaney/subscriptions","organizations_url":"https://api.github.com/users/NoraDelaney/orgs","repos_url":"https://api.github.com/users/NoraDelaney/repos","events_url":"https://api.github.com/users/NoraDelaney/events{/privacy}","received_events_url":"https://api.github.com/users/NoraDelaney/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-08T14:42:18Z","updated_at":"2015-07-08T14:42:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20439c078e3307c60b32256031b082aa1b61904c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11/commits","review_comments_url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11/comments","review_comment_url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues/11/comments","statuses_url":"https://api.github.com/repos/lfields90/Study-Buddy/statuses/edef8927ef098b9b41ae298dd4abd9739036fe95","head":{"label":"lfields90:add_admin_role","ref":"add_admin_role","sha":"edef8927ef098b9b41ae298dd4abd9739036fe95","user":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"repo":{"id":38254796,"name":"Study-Buddy","full_name":"lfields90/Study-Buddy","owner":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lfields90/Study-Buddy","description":"Small Group Project","fork":false,"url":"https://api.github.com/repos/lfields90/Study-Buddy","forks_url":"https://api.github.com/repos/lfields90/Study-Buddy/forks","keys_url":"https://api.github.com/repos/lfields90/Study-Buddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfields90/Study-Buddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfields90/Study-Buddy/teams","hooks_url":"https://api.github.com/repos/lfields90/Study-Buddy/hooks","issue_events_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues/events{/number}","events_url":"https://api.github.com/repos/lfields90/Study-Buddy/events","assignees_url":"https://api.github.com/repos/lfields90/Study-Buddy/assignees{/user}","branches_url":"https://api.github.com/repos/lfields90/Study-Buddy/branches{/branch}","tags_url":"https://api.github.com/repos/lfields90/Study-Buddy/tags","blobs_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfields90/Study-Buddy/statuses/{sha}","languages_url":"https://api.github.com/repos/lfields90/Study-Buddy/languages","stargazers_url":"https://api.github.com/repos/lfields90/Study-Buddy/stargazers","contributors_url":"https://api.github.com/repos/lfields90/Study-Buddy/contributors","subscribers_url":"https://api.github.com/repos/lfields90/Study-Buddy/subscribers","subscription_url":"https://api.github.com/repos/lfields90/Study-Buddy/subscription","commits_url":"https://api.github.com/repos/lfields90/Study-Buddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfields90/Study-Buddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfields90/Study-Buddy/contents/{+path}","compare_url":"https://api.github.com/repos/lfields90/Study-Buddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfields90/Study-Buddy/merges","archive_url":"https://api.github.com/repos/lfields90/Study-Buddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfields90/Study-Buddy/downloads","issues_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues{/number}","pulls_url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls{/number}","milestones_url":"https://api.github.com/repos/lfields90/Study-Buddy/milestones{/number}","notifications_url":"https://api.github.com/repos/lfields90/Study-Buddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfields90/Study-Buddy/labels{/name}","releases_url":"https://api.github.com/repos/lfields90/Study-Buddy/releases{/id}","created_at":"2015-06-29T15:22:31Z","updated_at":"2015-07-07T03:25:52Z","pushed_at":"2015-07-08T14:42:19Z","git_url":"git://github.com/lfields90/Study-Buddy.git","ssh_url":"git@github.com:lfields90/Study-Buddy.git","clone_url":"https://github.com/lfields90/Study-Buddy.git","svn_url":"https://github.com/lfields90/Study-Buddy","homepage":null,"size":336,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"base":{"label":"lfields90:master","ref":"master","sha":"6a98490b898dbac642f877dc90ccbcaa60476125","user":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"repo":{"id":38254796,"name":"Study-Buddy","full_name":"lfields90/Study-Buddy","owner":{"login":"lfields90","id":11277816,"avatar_url":"https://avatars.githubusercontent.com/u/11277816?v=3","gravatar_id":"","url":"https://api.github.com/users/lfields90","html_url":"https://github.com/lfields90","followers_url":"https://api.github.com/users/lfields90/followers","following_url":"https://api.github.com/users/lfields90/following{/other_user}","gists_url":"https://api.github.com/users/lfields90/gists{/gist_id}","starred_url":"https://api.github.com/users/lfields90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfields90/subscriptions","organizations_url":"https://api.github.com/users/lfields90/orgs","repos_url":"https://api.github.com/users/lfields90/repos","events_url":"https://api.github.com/users/lfields90/events{/privacy}","received_events_url":"https://api.github.com/users/lfields90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lfields90/Study-Buddy","description":"Small Group Project","fork":false,"url":"https://api.github.com/repos/lfields90/Study-Buddy","forks_url":"https://api.github.com/repos/lfields90/Study-Buddy/forks","keys_url":"https://api.github.com/repos/lfields90/Study-Buddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfields90/Study-Buddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfields90/Study-Buddy/teams","hooks_url":"https://api.github.com/repos/lfields90/Study-Buddy/hooks","issue_events_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues/events{/number}","events_url":"https://api.github.com/repos/lfields90/Study-Buddy/events","assignees_url":"https://api.github.com/repos/lfields90/Study-Buddy/assignees{/user}","branches_url":"https://api.github.com/repos/lfields90/Study-Buddy/branches{/branch}","tags_url":"https://api.github.com/repos/lfields90/Study-Buddy/tags","blobs_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfields90/Study-Buddy/statuses/{sha}","languages_url":"https://api.github.com/repos/lfields90/Study-Buddy/languages","stargazers_url":"https://api.github.com/repos/lfields90/Study-Buddy/stargazers","contributors_url":"https://api.github.com/repos/lfields90/Study-Buddy/contributors","subscribers_url":"https://api.github.com/repos/lfields90/Study-Buddy/subscribers","subscription_url":"https://api.github.com/repos/lfields90/Study-Buddy/subscription","commits_url":"https://api.github.com/repos/lfields90/Study-Buddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfields90/Study-Buddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfields90/Study-Buddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfields90/Study-Buddy/contents/{+path}","compare_url":"https://api.github.com/repos/lfields90/Study-Buddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfields90/Study-Buddy/merges","archive_url":"https://api.github.com/repos/lfields90/Study-Buddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfields90/Study-Buddy/downloads","issues_url":"https://api.github.com/repos/lfields90/Study-Buddy/issues{/number}","pulls_url":"https://api.github.com/repos/lfields90/Study-Buddy/pulls{/number}","milestones_url":"https://api.github.com/repos/lfields90/Study-Buddy/milestones{/number}","notifications_url":"https://api.github.com/repos/lfields90/Study-Buddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfields90/Study-Buddy/labels{/name}","releases_url":"https://api.github.com/repos/lfields90/Study-Buddy/releases{/id}","created_at":"2015-06-29T15:22:31Z","updated_at":"2015-07-07T03:25:52Z","pushed_at":"2015-07-08T14:42:19Z","git_url":"git://github.com/lfields90/Study-Buddy.git","ssh_url":"git@github.com:lfields90/Study-Buddy.git","clone_url":"https://github.com/lfields90/Study-Buddy.git","svn_url":"https://github.com/lfields90/Study-Buddy","homepage":null,"size":336,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11"},"html":{"href":"https://github.com/lfields90/Study-Buddy/pull/11"},"issue":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/issues/11"},"comments":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/lfields90/Study-Buddy/statuses/edef8927ef098b9b41ae298dd4abd9739036fe95"}}}}