{"action":"created","comment":{"url":"https://api.github.com/repos/Freika/stack-overclone/pulls/comments/26642564","id":26642564,"diff_hunk":"@@ -0,0 +1,76 @@\n+require 'rails_helper'\n+\n+feature 'Question' do\n+\n+  given(:user) { create(:user) }\n+  given(:user1) { create(:user) }\n+  given(:question) { create(:question, user: user1) }\n+\n+  scenario 'Authenticated user creates question' do\n+    sign_in_with(user.email, user.password)\n+    visit questions_path\n+\n+    click_on 'Ask new question'\n+    fill_in 'Title', with: 'What the hell is wrong with me?'\n+    fill_in 'Body', with: 'Radioactive spider bites me yesterday in the lab, what should I do with this sh*t?'\n+    click_on 'Create Question'\n+\n+    expect(page).to have_content 'Question was successfully created'\n+  end\n+\n+  scenario 'Unauthenticated user cannot create question' do\n+    visit questions_path\n+    click_on 'Ask new question'","path":"spec/features/question_spec.rb","position":23,"original_position":23,"commit_id":"fad273e3e7a2831bbf6fdb0e80570506d6da0cdc","original_commit_id":"fad273e3e7a2831bbf6fdb0e80570506d6da0cdc","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"Можно просто не показывать эту ссылку и проверять, что пользователь ее не видит.","created_at":"2015-03-18T07:27:03Z","updated_at":"2015-03-18T07:27:03Z","html_url":"https://github.com/Freika/stack-overclone/pull/6#discussion_r26642564","pull_request_url":"https://api.github.com/repos/Freika/stack-overclone/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/Freika/stack-overclone/pulls/comments/26642564"},"html":{"href":"https://github.com/Freika/stack-overclone/pull/6#discussion_r26642564"},"pull_request":{"href":"https://api.github.com/repos/Freika/stack-overclone/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Freika/stack-overclone/pulls/6","id":31362500,"html_url":"https://github.com/Freika/stack-overclone/pull/6","diff_url":"https://github.com/Freika/stack-overclone/pull/6.diff","patch_url":"https://github.com/Freika/stack-overclone/pull/6.patch","issue_url":"https://api.github.com/repos/Freika/stack-overclone/issues/6","number":6,"state":"open","locked":false,"title":"Users can ask questions and leave answers","user":{"login":"Freika","id":3738638,"avatar_url":"https://avatars.githubusercontent.com/u/3738638?v=3","gravatar_id":"","url":"https://api.github.com/users/Freika","html_url":"https://github.com/Freika","followers_url":"https://api.github.com/users/Freika/followers","following_url":"https://api.github.com/users/Freika/following{/other_user}","gists_url":"https://api.github.com/users/Freika/gists{/gist_id}","starred_url":"https://api.github.com/users/Freika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freika/subscriptions","organizations_url":"https://api.github.com/users/Freika/orgs","repos_url":"https://api.github.com/users/Freika/repos","events_url":"https://api.github.com/users/Freika/events{/privacy}","received_events_url":"https://api.github.com/users/Freika/received_events","type":"User","site_admin":false},"body":"Авторизованные пользователи могут:\r\n\r\n - [x] Создавать вопросы\r\n - [x] Оставлять ответы\r\n - [x] Удалять собственные вопросы","created_at":"2015-03-17T18:13:54Z","updated_at":"2015-03-18T07:27:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c05d1216b770ac14baa996045d20d8d5728cf91","assignee":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Freika/stack-overclone/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Freika/stack-overclone/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Freika/stack-overclone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Freika/stack-overclone/issues/6/comments","statuses_url":"https://api.github.com/repos/Freika/stack-overclone/statuses/fad273e3e7a2831bbf6fdb0e80570506d6da0cdc","head":{"label":"Freika:lesson-five","ref":"lesson-five","sha":"fad273e3e7a2831bbf6fdb0e80570506d6da0cdc","user":{"login":"Freika","id":3738638,"avatar_url":"https://avatars.githubusercontent.com/u/3738638?v=3","gravatar_id":"","url":"https://api.github.com/users/Freika","html_url":"https://github.com/Freika","followers_url":"https://api.github.com/users/Freika/followers","following_url":"https://api.github.com/users/Freika/following{/other_user}","gists_url":"https://api.github.com/users/Freika/gists{/gist_id}","starred_url":"https://api.github.com/users/Freika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freika/subscriptions","organizations_url":"https://api.github.com/users/Freika/orgs","repos_url":"https://api.github.com/users/Freika/repos","events_url":"https://api.github.com/users/Freika/events{/privacy}","received_events_url":"https://api.github.com/users/Freika/received_events","type":"User","site_admin":false},"repo":{"id":31902780,"name":"stack-overclone","full_name":"Freika/stack-overclone","owner":{"login":"Freika","id":3738638,"avatar_url":"https://avatars.githubusercontent.com/u/3738638?v=3","gravatar_id":"","url":"https://api.github.com/users/Freika","html_url":"https://github.com/Freika","followers_url":"https://api.github.com/users/Freika/followers","following_url":"https://api.github.com/users/Freika/following{/other_user}","gists_url":"https://api.github.com/users/Freika/gists{/gist_id}","starred_url":"https://api.github.com/users/Freika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freika/subscriptions","organizations_url":"https://api.github.com/users/Freika/orgs","repos_url":"https://api.github.com/users/Freika/repos","events_url":"https://api.github.com/users/Freika/events{/privacy}","received_events_url":"https://api.github.com/users/Freika/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Freika/stack-overclone","description":"","fork":false,"url":"https://api.github.com/repos/Freika/stack-overclone","forks_url":"https://api.github.com/repos/Freika/stack-overclone/forks","keys_url":"https://api.github.com/repos/Freika/stack-overclone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Freika/stack-overclone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Freika/stack-overclone/teams","hooks_url":"https://api.github.com/repos/Freika/stack-overclone/hooks","issue_events_url":"https://api.github.com/repos/Freika/stack-overclone/issues/events{/number}","events_url":"https://api.github.com/repos/Freika/stack-overclone/events","assignees_url":"https://api.github.com/repos/Freika/stack-overclone/assignees{/user}","branches_url":"https://api.github.com/repos/Freika/stack-overclone/branches{/branch}","tags_url":"https://api.github.com/repos/Freika/stack-overclone/tags","blobs_url":"https://api.github.com/repos/Freika/stack-overclone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Freika/stack-overclone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Freika/stack-overclone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Freika/stack-overclone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Freika/stack-overclone/statuses/{sha}","languages_url":"https://api.github.com/repos/Freika/stack-overclone/languages","stargazers_url":"https://api.github.com/repos/Freika/stack-overclone/stargazers","contributors_url":"https://api.github.com/repos/Freika/stack-overclone/contributors","subscribers_url":"https://api.github.com/repos/Freika/stack-overclone/subscribers","subscription_url":"https://api.github.com/repos/Freika/stack-overclone/subscription","commits_url":"https://api.github.com/repos/Freika/stack-overclone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Freika/stack-overclone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Freika/stack-overclone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Freika/stack-overclone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Freika/stack-overclone/contents/{+path}","compare_url":"https://api.github.com/repos/Freika/stack-overclone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Freika/stack-overclone/merges","archive_url":"https://api.github.com/repos/Freika/stack-overclone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Freika/stack-overclone/downloads","issues_url":"https://api.github.com/repos/Freika/stack-overclone/issues{/number}","pulls_url":"https://api.github.com/repos/Freika/stack-overclone/pulls{/number}","milestones_url":"https://api.github.com/repos/Freika/stack-overclone/milestones{/number}","notifications_url":"https://api.github.com/repos/Freika/stack-overclone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Freika/stack-overclone/labels{/name}","releases_url":"https://api.github.com/repos/Freika/stack-overclone/releases{/id}","created_at":"2015-03-09T14:22:52Z","updated_at":"2015-03-13T09:03:10Z","pushed_at":"2015-03-17T18:13:12Z","git_url":"git://github.com/Freika/stack-overclone.git","ssh_url":"git@github.com:Freika/stack-overclone.git","clone_url":"https://github.com/Freika/stack-overclone.git","svn_url":"https://github.com/Freika/stack-overclone","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Freika:master","ref":"master","sha":"53b4a778ac0a8ec0bb8489353bc2921c7d79623f","user":{"login":"Freika","id":3738638,"avatar_url":"https://avatars.githubusercontent.com/u/3738638?v=3","gravatar_id":"","url":"https://api.github.com/users/Freika","html_url":"https://github.com/Freika","followers_url":"https://api.github.com/users/Freika/followers","following_url":"https://api.github.com/users/Freika/following{/other_user}","gists_url":"https://api.github.com/users/Freika/gists{/gist_id}","starred_url":"https://api.github.com/users/Freika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freika/subscriptions","organizations_url":"https://api.github.com/users/Freika/orgs","repos_url":"https://api.github.com/users/Freika/repos","events_url":"https://api.github.com/users/Freika/events{/privacy}","received_events_url":"https://api.github.com/users/Freika/received_events","type":"User","site_admin":false},"repo":{"id":31902780,"name":"stack-overclone","full_name":"Freika/stack-overclone","owner":{"login":"Freika","id":3738638,"avatar_url":"https://avatars.githubusercontent.com/u/3738638?v=3","gravatar_id":"","url":"https://api.github.com/users/Freika","html_url":"https://github.com/Freika","followers_url":"https://api.github.com/users/Freika/followers","following_url":"https://api.github.com/users/Freika/following{/other_user}","gists_url":"https://api.github.com/users/Freika/gists{/gist_id}","starred_url":"https://api.github.com/users/Freika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freika/subscriptions","organizations_url":"https://api.github.com/users/Freika/orgs","repos_url":"https://api.github.com/users/Freika/repos","events_url":"https://api.github.com/users/Freika/events{/privacy}","received_events_url":"https://api.github.com/users/Freika/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Freika/stack-overclone","description":"","fork":false,"url":"https://api.github.com/repos/Freika/stack-overclone","forks_url":"https://api.github.com/repos/Freika/stack-overclone/forks","keys_url":"https://api.github.com/repos/Freika/stack-overclone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Freika/stack-overclone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Freika/stack-overclone/teams","hooks_url":"https://api.github.com/repos/Freika/stack-overclone/hooks","issue_events_url":"https://api.github.com/repos/Freika/stack-overclone/issues/events{/number}","events_url":"https://api.github.com/repos/Freika/stack-overclone/events","assignees_url":"https://api.github.com/repos/Freika/stack-overclone/assignees{/user}","branches_url":"https://api.github.com/repos/Freika/stack-overclone/branches{/branch}","tags_url":"https://api.github.com/repos/Freika/stack-overclone/tags","blobs_url":"https://api.github.com/repos/Freika/stack-overclone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Freika/stack-overclone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Freika/stack-overclone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Freika/stack-overclone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Freika/stack-overclone/statuses/{sha}","languages_url":"https://api.github.com/repos/Freika/stack-overclone/languages","stargazers_url":"https://api.github.com/repos/Freika/stack-overclone/stargazers","contributors_url":"https://api.github.com/repos/Freika/stack-overclone/contributors","subscribers_url":"https://api.github.com/repos/Freika/stack-overclone/subscribers","subscription_url":"https://api.github.com/repos/Freika/stack-overclone/subscription","commits_url":"https://api.github.com/repos/Freika/stack-overclone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Freika/stack-overclone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Freika/stack-overclone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Freika/stack-overclone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Freika/stack-overclone/contents/{+path}","compare_url":"https://api.github.com/repos/Freika/stack-overclone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Freika/stack-overclone/merges","archive_url":"https://api.github.com/repos/Freika/stack-overclone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Freika/stack-overclone/downloads","issues_url":"https://api.github.com/repos/Freika/stack-overclone/issues{/number}","pulls_url":"https://api.github.com/repos/Freika/stack-overclone/pulls{/number}","milestones_url":"https://api.github.com/repos/Freika/stack-overclone/milestones{/number}","notifications_url":"https://api.github.com/repos/Freika/stack-overclone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Freika/stack-overclone/labels{/name}","releases_url":"https://api.github.com/repos/Freika/stack-overclone/releases{/id}","created_at":"2015-03-09T14:22:52Z","updated_at":"2015-03-13T09:03:10Z","pushed_at":"2015-03-17T18:13:12Z","git_url":"git://github.com/Freika/stack-overclone.git","ssh_url":"git@github.com:Freika/stack-overclone.git","clone_url":"https://github.com/Freika/stack-overclone.git","svn_url":"https://github.com/Freika/stack-overclone","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Freika/stack-overclone/pulls/6"},"html":{"href":"https://github.com/Freika/stack-overclone/pull/6"},"issue":{"href":"https://api.github.com/repos/Freika/stack-overclone/issues/6"},"comments":{"href":"https://api.github.com/repos/Freika/stack-overclone/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Freika/stack-overclone/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Freika/stack-overclone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Freika/stack-overclone/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Freika/stack-overclone/statuses/fad273e3e7a2831bbf6fdb0e80570506d6da0cdc"}}}}