{"action":"created","comment":{"url":"https://api.github.com/repos/zlahham/live-voting/pulls/comments/40967918","id":40967918,"diff_hunk":"@@ -53,6 +54,13 @@\n     expect(page).to have_content \"1 error prohibited this question from being saved:\"\n   end\n \n+  it 'disallows non owners to make event questions' do\n+    click_on \"Sign out\"\n+    sign_in_as(user_two)\n+    visit event_path(event)","path":"spec/features/questions_feature_spec.rb","position":15,"original_position":15,"commit_id":"6e8576ee1166901f3c9b1626840d08fe925a8bfa","original_commit_id":"35c534c0935e85df445fa10d6a7af3bc13e3ca64","user":{"login":"Yorkshireman","id":8686588,"avatar_url":"https://avatars.githubusercontent.com/u/8686588?v=3","gravatar_id":"","url":"https://api.github.com/users/Yorkshireman","html_url":"https://github.com/Yorkshireman","followers_url":"https://api.github.com/users/Yorkshireman/followers","following_url":"https://api.github.com/users/Yorkshireman/following{/other_user}","gists_url":"https://api.github.com/users/Yorkshireman/gists{/gist_id}","starred_url":"https://api.github.com/users/Yorkshireman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yorkshireman/subscriptions","organizations_url":"https://api.github.com/users/Yorkshireman/orgs","repos_url":"https://api.github.com/users/Yorkshireman/repos","events_url":"https://api.github.com/users/Yorkshireman/events{/privacy}","received_events_url":"https://api.github.com/users/Yorkshireman/received_events","type":"User","site_admin":false},"body":"This should probably be:  \r\n`visit new_event_question_path(event)`  \r\nDirect targets the proper path. The current line tests that the user can't visit someone else's event.","created_at":"2015-10-01T21:21:34Z","updated_at":"2015-10-01T21:21:34Z","html_url":"https://github.com/zlahham/live-voting/pull/297#discussion_r40967918","pull_request_url":"https://api.github.com/repos/zlahham/live-voting/pulls/297","_links":{"self":{"href":"https://api.github.com/repos/zlahham/live-voting/pulls/comments/40967918"},"html":{"href":"https://github.com/zlahham/live-voting/pull/297#discussion_r40967918"},"pull_request":{"href":"https://api.github.com/repos/zlahham/live-voting/pulls/297"}}},"pull_request":{"url":"https://api.github.com/repos/zlahham/live-voting/pulls/297","id":46575657,"html_url":"https://github.com/zlahham/live-voting/pull/297","diff_url":"https://github.com/zlahham/live-voting/pull/297.diff","patch_url":"https://github.com/zlahham/live-voting/pull/297.patch","issue_url":"https://api.github.com/repos/zlahham/live-voting/issues/297","number":297,"state":"open","locked":false,"title":"124 perm","user":{"login":"ljones140","id":7063028,"avatar_url":"https://avatars.githubusercontent.com/u/7063028?v=3","gravatar_id":"","url":"https://api.github.com/users/ljones140","html_url":"https://github.com/ljones140","followers_url":"https://api.github.com/users/ljones140/followers","following_url":"https://api.github.com/users/ljones140/following{/other_user}","gists_url":"https://api.github.com/users/ljones140/gists{/gist_id}","starred_url":"https://api.github.com/users/ljones140/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljones140/subscriptions","organizations_url":"https://api.github.com/users/ljones140/orgs","repos_url":"https://api.github.com/users/ljones140/repos","events_url":"https://api.github.com/users/ljones140/events{/privacy}","received_events_url":"https://api.github.com/users/ljones140/received_events","type":"User","site_admin":false},"body":"closes #124","created_at":"2015-10-01T20:55:43Z","updated_at":"2015-10-01T21:21:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"074db0f2763d5440dbcdc51f47d58fd0cf52236c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zlahham/live-voting/pulls/297/commits","review_comments_url":"https://api.github.com/repos/zlahham/live-voting/pulls/297/comments","review_comment_url":"https://api.github.com/repos/zlahham/live-voting/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zlahham/live-voting/issues/297/comments","statuses_url":"https://api.github.com/repos/zlahham/live-voting/statuses/6e8576ee1166901f3c9b1626840d08fe925a8bfa","head":{"label":"zlahham:124-perm","ref":"124-perm","sha":"6e8576ee1166901f3c9b1626840d08fe925a8bfa","user":{"login":"zlahham","id":10406173,"avatar_url":"https://avatars.githubusercontent.com/u/10406173?v=3","gravatar_id":"","url":"https://api.github.com/users/zlahham","html_url":"https://github.com/zlahham","followers_url":"https://api.github.com/users/zlahham/followers","following_url":"https://api.github.com/users/zlahham/following{/other_user}","gists_url":"https://api.github.com/users/zlahham/gists{/gist_id}","starred_url":"https://api.github.com/users/zlahham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlahham/subscriptions","organizations_url":"https://api.github.com/users/zlahham/orgs","repos_url":"https://api.github.com/users/zlahham/repos","events_url":"https://api.github.com/users/zlahham/events{/privacy}","received_events_url":"https://api.github.com/users/zlahham/received_events","type":"User","site_admin":false},"repo":{"id":42860809,"name":"live-voting","full_name":"zlahham/live-voting","owner":{"login":"zlahham","id":10406173,"avatar_url":"https://avatars.githubusercontent.com/u/10406173?v=3","gravatar_id":"","url":"https://api.github.com/users/zlahham","html_url":"https://github.com/zlahham","followers_url":"https://api.github.com/users/zlahham/followers","following_url":"https://api.github.com/users/zlahham/following{/other_user}","gists_url":"https://api.github.com/users/zlahham/gists{/gist_id}","starred_url":"https://api.github.com/users/zlahham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlahham/subscriptions","organizations_url":"https://api.github.com/users/zlahham/orgs","repos_url":"https://api.github.com/users/zlahham/repos","events_url":"https://api.github.com/users/zlahham/events{/privacy}","received_events_url":"https://api.github.com/users/zlahham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zlahham/live-voting","description":"","fork":false,"url":"https://api.github.com/repos/zlahham/live-voting","forks_url":"https://api.github.com/repos/zlahham/live-voting/forks","keys_url":"https://api.github.com/repos/zlahham/live-voting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zlahham/live-voting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zlahham/live-voting/teams","hooks_url":"https://api.github.com/repos/zlahham/live-voting/hooks","issue_events_url":"https://api.github.com/repos/zlahham/live-voting/issues/events{/number}","events_url":"https://api.github.com/repos/zlahham/live-voting/events","assignees_url":"https://api.github.com/repos/zlahham/live-voting/assignees{/user}","branches_url":"https://api.github.com/repos/zlahham/live-voting/branches{/branch}","tags_url":"https://api.github.com/repos/zlahham/live-voting/tags","blobs_url":"https://api.github.com/repos/zlahham/live-voting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zlahham/live-voting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zlahham/live-voting/git/refs{/sha}","trees_url":"https://api.github.com/repos/zlahham/live-voting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zlahham/live-voting/statuses/{sha}","languages_url":"https://api.github.com/repos/zlahham/live-voting/languages","stargazers_url":"https://api.github.com/repos/zlahham/live-voting/stargazers","contributors_url":"https://api.github.com/repos/zlahham/live-voting/contributors","subscribers_url":"https://api.github.com/repos/zlahham/live-voting/subscribers","subscription_url":"https://api.github.com/repos/zlahham/live-voting/subscription","commits_url":"https://api.github.com/repos/zlahham/live-voting/commits{/sha}","git_commits_url":"https://api.github.com/repos/zlahham/live-voting/git/commits{/sha}","comments_url":"https://api.github.com/repos/zlahham/live-voting/comments{/number}","issue_comment_url":"https://api.github.com/repos/zlahham/live-voting/issues/comments{/number}","contents_url":"https://api.github.com/repos/zlahham/live-voting/contents/{+path}","compare_url":"https://api.github.com/repos/zlahham/live-voting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zlahham/live-voting/merges","archive_url":"https://api.github.com/repos/zlahham/live-voting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zlahham/live-voting/downloads","issues_url":"https://api.github.com/repos/zlahham/live-voting/issues{/number}","pulls_url":"https://api.github.com/repos/zlahham/live-voting/pulls{/number}","milestones_url":"https://api.github.com/repos/zlahham/live-voting/milestones{/number}","notifications_url":"https://api.github.com/repos/zlahham/live-voting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zlahham/live-voting/labels{/name}","releases_url":"https://api.github.com/repos/zlahham/live-voting/releases{/id}","created_at":"2015-09-21T10:56:29Z","updated_at":"2015-10-01T10:43:55Z","pushed_at":"2015-10-01T21:13:26Z","git_url":"git://github.com/zlahham/live-voting.git","ssh_url":"git@github.com:zlahham/live-voting.git","clone_url":"https://github.com/zlahham/live-voting.git","svn_url":"https://github.com/zlahham/live-voting","homepage":null,"size":4251,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":5,"default_branch":"master"}},"base":{"label":"zlahham:master","ref":"master","sha":"32064271d8b6bb024770ac6568bdd81c572e8562","user":{"login":"zlahham","id":10406173,"avatar_url":"https://avatars.githubusercontent.com/u/10406173?v=3","gravatar_id":"","url":"https://api.github.com/users/zlahham","html_url":"https://github.com/zlahham","followers_url":"https://api.github.com/users/zlahham/followers","following_url":"https://api.github.com/users/zlahham/following{/other_user}","gists_url":"https://api.github.com/users/zlahham/gists{/gist_id}","starred_url":"https://api.github.com/users/zlahham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlahham/subscriptions","organizations_url":"https://api.github.com/users/zlahham/orgs","repos_url":"https://api.github.com/users/zlahham/repos","events_url":"https://api.github.com/users/zlahham/events{/privacy}","received_events_url":"https://api.github.com/users/zlahham/received_events","type":"User","site_admin":false},"repo":{"id":42860809,"name":"live-voting","full_name":"zlahham/live-voting","owner":{"login":"zlahham","id":10406173,"avatar_url":"https://avatars.githubusercontent.com/u/10406173?v=3","gravatar_id":"","url":"https://api.github.com/users/zlahham","html_url":"https://github.com/zlahham","followers_url":"https://api.github.com/users/zlahham/followers","following_url":"https://api.github.com/users/zlahham/following{/other_user}","gists_url":"https://api.github.com/users/zlahham/gists{/gist_id}","starred_url":"https://api.github.com/users/zlahham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlahham/subscriptions","organizations_url":"https://api.github.com/users/zlahham/orgs","repos_url":"https://api.github.com/users/zlahham/repos","events_url":"https://api.github.com/users/zlahham/events{/privacy}","received_events_url":"https://api.github.com/users/zlahham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zlahham/live-voting","description":"","fork":false,"url":"https://api.github.com/repos/zlahham/live-voting","forks_url":"https://api.github.com/repos/zlahham/live-voting/forks","keys_url":"https://api.github.com/repos/zlahham/live-voting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zlahham/live-voting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zlahham/live-voting/teams","hooks_url":"https://api.github.com/repos/zlahham/live-voting/hooks","issue_events_url":"https://api.github.com/repos/zlahham/live-voting/issues/events{/number}","events_url":"https://api.github.com/repos/zlahham/live-voting/events","assignees_url":"https://api.github.com/repos/zlahham/live-voting/assignees{/user}","branches_url":"https://api.github.com/repos/zlahham/live-voting/branches{/branch}","tags_url":"https://api.github.com/repos/zlahham/live-voting/tags","blobs_url":"https://api.github.com/repos/zlahham/live-voting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zlahham/live-voting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zlahham/live-voting/git/refs{/sha}","trees_url":"https://api.github.com/repos/zlahham/live-voting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zlahham/live-voting/statuses/{sha}","languages_url":"https://api.github.com/repos/zlahham/live-voting/languages","stargazers_url":"https://api.github.com/repos/zlahham/live-voting/stargazers","contributors_url":"https://api.github.com/repos/zlahham/live-voting/contributors","subscribers_url":"https://api.github.com/repos/zlahham/live-voting/subscribers","subscription_url":"https://api.github.com/repos/zlahham/live-voting/subscription","commits_url":"https://api.github.com/repos/zlahham/live-voting/commits{/sha}","git_commits_url":"https://api.github.com/repos/zlahham/live-voting/git/commits{/sha}","comments_url":"https://api.github.com/repos/zlahham/live-voting/comments{/number}","issue_comment_url":"https://api.github.com/repos/zlahham/live-voting/issues/comments{/number}","contents_url":"https://api.github.com/repos/zlahham/live-voting/contents/{+path}","compare_url":"https://api.github.com/repos/zlahham/live-voting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zlahham/live-voting/merges","archive_url":"https://api.github.com/repos/zlahham/live-voting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zlahham/live-voting/downloads","issues_url":"https://api.github.com/repos/zlahham/live-voting/issues{/number}","pulls_url":"https://api.github.com/repos/zlahham/live-voting/pulls{/number}","milestones_url":"https://api.github.com/repos/zlahham/live-voting/milestones{/number}","notifications_url":"https://api.github.com/repos/zlahham/live-voting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zlahham/live-voting/labels{/name}","releases_url":"https://api.github.com/repos/zlahham/live-voting/releases{/id}","created_at":"2015-09-21T10:56:29Z","updated_at":"2015-10-01T10:43:55Z","pushed_at":"2015-10-01T21:13:26Z","git_url":"git://github.com/zlahham/live-voting.git","ssh_url":"git@github.com:zlahham/live-voting.git","clone_url":"https://github.com/zlahham/live-voting.git","svn_url":"https://github.com/zlahham/live-voting","homepage":null,"size":4251,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zlahham/live-voting/pulls/297"},"html":{"href":"https://github.com/zlahham/live-voting/pull/297"},"issue":{"href":"https://api.github.com/repos/zlahham/live-voting/issues/297"},"comments":{"href":"https://api.github.com/repos/zlahham/live-voting/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/zlahham/live-voting/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/zlahham/live-voting/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zlahham/live-voting/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/zlahham/live-voting/statuses/6e8576ee1166901f3c9b1626840d08fe925a8bfa"}}}}