{"action":"created","comment":{"url":"https://api.github.com/repos/vsav/qna/pulls/comments/339805387","pull_request_review_id":308154776,"id":339805387,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzOTgwNTM4Nw==","diff_hunk":"@@ -0,0 +1,44 @@\n+require 'rails_helper'\n+\n+feature 'User can create question', %q{\n+  In order to get answer from a community\n+  As an authenticated user\n+  I'd like to be able to ask the question\n+} do\n+\n+  given(:user) { create(:user) }\n+\n+  describe 'Authenticated user' do\n+\n+    background do\n+      sign_in(user)\n+      visit questions_path\n+      click_on 'Ask question'\n+    end\n+\n+    scenario 'asks a question' do\n+\n+      fill_in 'Title', with: 'Test question'\n+      fill_in 'Body', with: 'text text text'\n+      click_on 'Ask'\n+\n+      expect(page).to have_content 'Your question successfully created.'\n+      expect(page).to have_content 'Test question'\n+      expect(page).to have_content 'text text text'\n+    end\n+    scenario 'asks a question with errors' do\n+\n+      fill_in 'Title', with: ''\n+      fill_in 'Body', with: 'text text text'\n+      click_on 'Ask'\n+\n+      expect(page).to have_content \"Title can't be blank\"\n+    end\n+  end\n+  scenario 'Unauthenticated user tries to ask a question' do\n+    visit questions_path\n+    click_on 'Ask question'","path":"spec/features/question/create_spec.rb","position":40,"original_position":40,"commit_id":"b18b115f4fbcf3b75e9219bcc1e196390193d3c6","original_commit_id":"b18b115f4fbcf3b75e9219bcc1e196390193d3c6","user":{"login":"aishek","id":151224,"node_id":"MDQ6VXNlcjE1MTIyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/151224?v=4","gravatar_id":"","url":"https://api.github.com/users/aishek","html_url":"https://github.com/aishek","followers_url":"https://api.github.com/users/aishek/followers","following_url":"https://api.github.com/users/aishek/following{/other_user}","gists_url":"https://api.github.com/users/aishek/gists{/gist_id}","starred_url":"https://api.github.com/users/aishek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aishek/subscriptions","organizations_url":"https://api.github.com/users/aishek/orgs","repos_url":"https://api.github.com/users/aishek/repos","events_url":"https://api.github.com/users/aishek/events{/privacy}","received_events_url":"https://api.github.com/users/aishek/received_events","type":"User","site_admin":false},"body":"Лучше кнопку не выводить и проверять что её нет","created_at":"2019-10-28T21:38:56Z","updated_at":"2019-10-28T21:45:13Z","html_url":"https://github.com/vsav/qna/pull/3#discussion_r339805387","pull_request_url":"https://api.github.com/repos/vsav/qna/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/vsav/qna/pulls/comments/339805387"},"html":{"href":"https://github.com/vsav/qna/pull/3#discussion_r339805387"},"pull_request":{"href":"https://api.github.com/repos/vsav/qna/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/vsav/qna/pulls/3","id":333301192,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMzMzAxMTky","html_url":"https://github.com/vsav/qna/pull/3","diff_url":"https://github.com/vsav/qna/pull/3.diff","patch_url":"https://github.com/vsav/qna/pull/3.patch","issue_url":"https://api.github.com/repos/vsav/qna/issues/3","number":3,"state":"open","locked":false,"title":"Lesson 5 acceptance tests homework","user":{"login":"vsav","id":19718001,"node_id":"MDQ6VXNlcjE5NzE4MDAx","avatar_url":"https://avatars1.githubusercontent.com/u/19718001?v=4","gravatar_id":"","url":"https://api.github.com/users/vsav","html_url":"https://github.com/vsav","followers_url":"https://api.github.com/users/vsav/followers","following_url":"https://api.github.com/users/vsav/following{/other_user}","gists_url":"https://api.github.com/users/vsav/gists{/gist_id}","starred_url":"https://api.github.com/users/vsav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsav/subscriptions","organizations_url":"https://api.github.com/users/vsav/orgs","repos_url":"https://api.github.com/users/vsav/repos","events_url":"https://api.github.com/users/vsav/events{/privacy}","received_events_url":"https://api.github.com/users/vsav/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-10-28T20:10:13Z","updated_at":"2019-10-28T21:45:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cce65704b358396714da0531b37d4fdb42b2ce3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vsav/qna/pulls/3/commits","review_comments_url":"https://api.github.com/repos/vsav/qna/pulls/3/comments","review_comment_url":"https://api.github.com/repos/vsav/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vsav/qna/issues/3/comments","statuses_url":"https://api.github.com/repos/vsav/qna/statuses/b18b115f4fbcf3b75e9219bcc1e196390193d3c6","head":{"label":"vsav:lesson_5_acceptance_tests","ref":"lesson_5_acceptance_tests","sha":"b18b115f4fbcf3b75e9219bcc1e196390193d3c6","user":{"login":"vsav","id":19718001,"node_id":"MDQ6VXNlcjE5NzE4MDAx","avatar_url":"https://avatars1.githubusercontent.com/u/19718001?v=4","gravatar_id":"","url":"https://api.github.com/users/vsav","html_url":"https://github.com/vsav","followers_url":"https://api.github.com/users/vsav/followers","following_url":"https://api.github.com/users/vsav/following{/other_user}","gists_url":"https://api.github.com/users/vsav/gists{/gist_id}","starred_url":"https://api.github.com/users/vsav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsav/subscriptions","organizations_url":"https://api.github.com/users/vsav/orgs","repos_url":"https://api.github.com/users/vsav/repos","events_url":"https://api.github.com/users/vsav/events{/privacy}","received_events_url":"https://api.github.com/users/vsav/received_events","type":"User","site_admin":false},"repo":{"id":216832855,"node_id":"MDEwOlJlcG9zaXRvcnkyMTY4MzI4NTU=","name":"qna","full_name":"vsav/qna","private":false,"owner":{"login":"vsav","id":19718001,"node_id":"MDQ6VXNlcjE5NzE4MDAx","avatar_url":"https://avatars1.githubusercontent.com/u/19718001?v=4","gravatar_id":"","url":"https://api.github.com/users/vsav","html_url":"https://github.com/vsav","followers_url":"https://api.github.com/users/vsav/followers","following_url":"https://api.github.com/users/vsav/following{/other_user}","gists_url":"https://api.github.com/users/vsav/gists{/gist_id}","starred_url":"https://api.github.com/users/vsav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsav/subscriptions","organizations_url":"https://api.github.com/users/vsav/orgs","repos_url":"https://api.github.com/users/vsav/repos","events_url":"https://api.github.com/users/vsav/events{/privacy}","received_events_url":"https://api.github.com/users/vsav/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vsav/qna","description":null,"fork":false,"url":"https://api.github.com/repos/vsav/qna","forks_url":"https://api.github.com/repos/vsav/qna/forks","keys_url":"https://api.github.com/repos/vsav/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vsav/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vsav/qna/teams","hooks_url":"https://api.github.com/repos/vsav/qna/hooks","issue_events_url":"https://api.github.com/repos/vsav/qna/issues/events{/number}","events_url":"https://api.github.com/repos/vsav/qna/events","assignees_url":"https://api.github.com/repos/vsav/qna/assignees{/user}","branches_url":"https://api.github.com/repos/vsav/qna/branches{/branch}","tags_url":"https://api.github.com/repos/vsav/qna/tags","blobs_url":"https://api.github.com/repos/vsav/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vsav/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vsav/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/vsav/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vsav/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/vsav/qna/languages","stargazers_url":"https://api.github.com/repos/vsav/qna/stargazers","contributors_url":"https://api.github.com/repos/vsav/qna/contributors","subscribers_url":"https://api.github.com/repos/vsav/qna/subscribers","subscription_url":"https://api.github.com/repos/vsav/qna/subscription","commits_url":"https://api.github.com/repos/vsav/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/vsav/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/vsav/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/vsav/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/vsav/qna/contents/{+path}","compare_url":"https://api.github.com/repos/vsav/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vsav/qna/merges","archive_url":"https://api.github.com/repos/vsav/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vsav/qna/downloads","issues_url":"https://api.github.com/repos/vsav/qna/issues{/number}","pulls_url":"https://api.github.com/repos/vsav/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/vsav/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/vsav/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vsav/qna/labels{/name}","releases_url":"https://api.github.com/repos/vsav/qna/releases{/id}","deployments_url":"https://api.github.com/repos/vsav/qna/deployments","created_at":"2019-10-22T14:22:08Z","updated_at":"2019-10-24T14:20:10Z","pushed_at":"2019-10-28T20:10:13Z","git_url":"git://github.com/vsav/qna.git","ssh_url":"git@github.com:vsav/qna.git","clone_url":"https://github.com/vsav/qna.git","svn_url":"https://github.com/vsav/qna","homepage":null,"size":214,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"vsav:master","ref":"master","sha":"d9684e36ca78fe97e66b6c1ffaff7eb70a4cf1d6","user":{"login":"vsav","id":19718001,"node_id":"MDQ6VXNlcjE5NzE4MDAx","avatar_url":"https://avatars1.githubusercontent.com/u/19718001?v=4","gravatar_id":"","url":"https://api.github.com/users/vsav","html_url":"https://github.com/vsav","followers_url":"https://api.github.com/users/vsav/followers","following_url":"https://api.github.com/users/vsav/following{/other_user}","gists_url":"https://api.github.com/users/vsav/gists{/gist_id}","starred_url":"https://api.github.com/users/vsav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsav/subscriptions","organizations_url":"https://api.github.com/users/vsav/orgs","repos_url":"https://api.github.com/users/vsav/repos","events_url":"https://api.github.com/users/vsav/events{/privacy}","received_events_url":"https://api.github.com/users/vsav/received_events","type":"User","site_admin":false},"repo":{"id":216832855,"node_id":"MDEwOlJlcG9zaXRvcnkyMTY4MzI4NTU=","name":"qna","full_name":"vsav/qna","private":false,"owner":{"login":"vsav","id":19718001,"node_id":"MDQ6VXNlcjE5NzE4MDAx","avatar_url":"https://avatars1.githubusercontent.com/u/19718001?v=4","gravatar_id":"","url":"https://api.github.com/users/vsav","html_url":"https://github.com/vsav","followers_url":"https://api.github.com/users/vsav/followers","following_url":"https://api.github.com/users/vsav/following{/other_user}","gists_url":"https://api.github.com/users/vsav/gists{/gist_id}","starred_url":"https://api.github.com/users/vsav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsav/subscriptions","organizations_url":"https://api.github.com/users/vsav/orgs","repos_url":"https://api.github.com/users/vsav/repos","events_url":"https://api.github.com/users/vsav/events{/privacy}","received_events_url":"https://api.github.com/users/vsav/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vsav/qna","description":null,"fork":false,"url":"https://api.github.com/repos/vsav/qna","forks_url":"https://api.github.com/repos/vsav/qna/forks","keys_url":"https://api.github.com/repos/vsav/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vsav/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vsav/qna/teams","hooks_url":"https://api.github.com/repos/vsav/qna/hooks","issue_events_url":"https://api.github.com/repos/vsav/qna/issues/events{/number}","events_url":"https://api.github.com/repos/vsav/qna/events","assignees_url":"https://api.github.com/repos/vsav/qna/assignees{/user}","branches_url":"https://api.github.com/repos/vsav/qna/branches{/branch}","tags_url":"https://api.github.com/repos/vsav/qna/tags","blobs_url":"https://api.github.com/repos/vsav/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vsav/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vsav/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/vsav/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vsav/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/vsav/qna/languages","stargazers_url":"https://api.github.com/repos/vsav/qna/stargazers","contributors_url":"https://api.github.com/repos/vsav/qna/contributors","subscribers_url":"https://api.github.com/repos/vsav/qna/subscribers","subscription_url":"https://api.github.com/repos/vsav/qna/subscription","commits_url":"https://api.github.com/repos/vsav/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/vsav/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/vsav/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/vsav/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/vsav/qna/contents/{+path}","compare_url":"https://api.github.com/repos/vsav/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vsav/qna/merges","archive_url":"https://api.github.com/repos/vsav/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vsav/qna/downloads","issues_url":"https://api.github.com/repos/vsav/qna/issues{/number}","pulls_url":"https://api.github.com/repos/vsav/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/vsav/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/vsav/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vsav/qna/labels{/name}","releases_url":"https://api.github.com/repos/vsav/qna/releases{/id}","deployments_url":"https://api.github.com/repos/vsav/qna/deployments","created_at":"2019-10-22T14:22:08Z","updated_at":"2019-10-24T14:20:10Z","pushed_at":"2019-10-28T20:10:13Z","git_url":"git://github.com/vsav/qna.git","ssh_url":"git@github.com:vsav/qna.git","clone_url":"https://github.com/vsav/qna.git","svn_url":"https://github.com/vsav/qna","homepage":null,"size":214,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vsav/qna/pulls/3"},"html":{"href":"https://github.com/vsav/qna/pull/3"},"issue":{"href":"https://api.github.com/repos/vsav/qna/issues/3"},"comments":{"href":"https://api.github.com/repos/vsav/qna/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/vsav/qna/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/vsav/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vsav/qna/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/vsav/qna/statuses/b18b115f4fbcf3b75e9219bcc1e196390193d3c6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"aishek"}}