{"action":"created","comment":{"url":"https://api.github.com/repos/lsnq/qna/pulls/comments/88003745","pull_request_review_id":8589371,"id":88003745,"diff_hunk":"@@ -0,0 +1,30 @@\n+require 'rails_helper'\n+\n+feature 'Delete question', %q{\n+  In order to remove not relevant answers from site\n+  As an authenticated user\n+  I want to be able to delete my answer\n+} do \n+  \n+  given(:user) { create(:user) }\n+  given(:question) { create(:question) }\n+  given!(:answer) { create(:answer, question: question, user: user) }\n+  \n+  scenario 'Authenticated user destroys his question' do\n+    sign_in(user)\n+\n+    visit question_path(question)\n+    \n+    click_on 'Удалить ответ'\n+    \n+    expect(page).to have_content 'Your answer deleted successfully' \n+    \n+  end\n+  \n+  scenario 'Non-author can`t delete answer' do\n+    visit question_path(question)\n+    \n+    expect(page).to_not have_css '#destroy_answer'    ","path":"spec/features/answers/delete_answer_by_author_spec.rb","position":27,"original_position":27,"commit_id":"ed0a5dbc5dec1b31bc0d811acccbb0682a4b8d76","original_commit_id":"ed0a5dbc5dec1b31bc0d811acccbb0682a4b8d76","user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"body":"Не надо тестировать CSS, пользователь его не видит, он видит текст кнопки/ссылки.","created_at":"2016-11-15T12:12:26Z","updated_at":"2016-11-15T12:14:48Z","html_url":"https://github.com/lsnq/qna/pull/3#discussion_r88003745","pull_request_url":"https://api.github.com/repos/lsnq/qna/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/lsnq/qna/pulls/comments/88003745"},"html":{"href":"https://github.com/lsnq/qna/pull/3#discussion_r88003745"},"pull_request":{"href":"https://api.github.com/repos/lsnq/qna/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/lsnq/qna/pulls/3","id":93631028,"html_url":"https://github.com/lsnq/qna/pull/3","diff_url":"https://github.com/lsnq/qna/pull/3.diff","patch_url":"https://github.com/lsnq/qna/pull/3.patch","issue_url":"https://api.github.com/repos/lsnq/qna/issues/3","number":3,"state":"open","locked":false,"title":"Lesson 5","user":{"login":"lsnq","id":9744983,"avatar_url":"https://avatars.githubusercontent.com/u/9744983?v=3","gravatar_id":"","url":"https://api.github.com/users/lsnq","html_url":"https://github.com/lsnq","followers_url":"https://api.github.com/users/lsnq/followers","following_url":"https://api.github.com/users/lsnq/following{/other_user}","gists_url":"https://api.github.com/users/lsnq/gists{/gist_id}","starred_url":"https://api.github.com/users/lsnq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsnq/subscriptions","organizations_url":"https://api.github.com/users/lsnq/orgs","repos_url":"https://api.github.com/users/lsnq/repos","events_url":"https://api.github.com/users/lsnq/events{/privacy}","received_events_url":"https://api.github.com/users/lsnq/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-14T19:28:55Z","updated_at":"2016-11-15T12:14:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bf6d0dc7d37f2c93411761d351e1f78692b797d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lsnq/qna/pulls/3/commits","review_comments_url":"https://api.github.com/repos/lsnq/qna/pulls/3/comments","review_comment_url":"https://api.github.com/repos/lsnq/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lsnq/qna/issues/3/comments","statuses_url":"https://api.github.com/repos/lsnq/qna/statuses/ed0a5dbc5dec1b31bc0d811acccbb0682a4b8d76","head":{"label":"lsnq:lesson-5","ref":"lesson-5","sha":"ed0a5dbc5dec1b31bc0d811acccbb0682a4b8d76","user":{"login":"lsnq","id":9744983,"avatar_url":"https://avatars.githubusercontent.com/u/9744983?v=3","gravatar_id":"","url":"https://api.github.com/users/lsnq","html_url":"https://github.com/lsnq","followers_url":"https://api.github.com/users/lsnq/followers","following_url":"https://api.github.com/users/lsnq/following{/other_user}","gists_url":"https://api.github.com/users/lsnq/gists{/gist_id}","starred_url":"https://api.github.com/users/lsnq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsnq/subscriptions","organizations_url":"https://api.github.com/users/lsnq/orgs","repos_url":"https://api.github.com/users/lsnq/repos","events_url":"https://api.github.com/users/lsnq/events{/privacy}","received_events_url":"https://api.github.com/users/lsnq/received_events","type":"User","site_admin":false},"repo":{"id":73186961,"name":"qna","full_name":"lsnq/qna","owner":{"login":"lsnq","id":9744983,"avatar_url":"https://avatars.githubusercontent.com/u/9744983?v=3","gravatar_id":"","url":"https://api.github.com/users/lsnq","html_url":"https://github.com/lsnq","followers_url":"https://api.github.com/users/lsnq/followers","following_url":"https://api.github.com/users/lsnq/following{/other_user}","gists_url":"https://api.github.com/users/lsnq/gists{/gist_id}","starred_url":"https://api.github.com/users/lsnq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsnq/subscriptions","organizations_url":"https://api.github.com/users/lsnq/orgs","repos_url":"https://api.github.com/users/lsnq/repos","events_url":"https://api.github.com/users/lsnq/events{/privacy}","received_events_url":"https://api.github.com/users/lsnq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lsnq/qna","description":null,"fork":false,"url":"https://api.github.com/repos/lsnq/qna","forks_url":"https://api.github.com/repos/lsnq/qna/forks","keys_url":"https://api.github.com/repos/lsnq/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsnq/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsnq/qna/teams","hooks_url":"https://api.github.com/repos/lsnq/qna/hooks","issue_events_url":"https://api.github.com/repos/lsnq/qna/issues/events{/number}","events_url":"https://api.github.com/repos/lsnq/qna/events","assignees_url":"https://api.github.com/repos/lsnq/qna/assignees{/user}","branches_url":"https://api.github.com/repos/lsnq/qna/branches{/branch}","tags_url":"https://api.github.com/repos/lsnq/qna/tags","blobs_url":"https://api.github.com/repos/lsnq/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsnq/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsnq/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsnq/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsnq/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/lsnq/qna/languages","stargazers_url":"https://api.github.com/repos/lsnq/qna/stargazers","contributors_url":"https://api.github.com/repos/lsnq/qna/contributors","subscribers_url":"https://api.github.com/repos/lsnq/qna/subscribers","subscription_url":"https://api.github.com/repos/lsnq/qna/subscription","commits_url":"https://api.github.com/repos/lsnq/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsnq/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsnq/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsnq/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsnq/qna/contents/{+path}","compare_url":"https://api.github.com/repos/lsnq/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsnq/qna/merges","archive_url":"https://api.github.com/repos/lsnq/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsnq/qna/downloads","issues_url":"https://api.github.com/repos/lsnq/qna/issues{/number}","pulls_url":"https://api.github.com/repos/lsnq/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/lsnq/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/lsnq/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsnq/qna/labels{/name}","releases_url":"https://api.github.com/repos/lsnq/qna/releases{/id}","deployments_url":"https://api.github.com/repos/lsnq/qna/deployments","created_at":"2016-11-08T13:09:21Z","updated_at":"2016-11-08T13:10:54Z","pushed_at":"2016-11-14T19:28:55Z","git_url":"git://github.com/lsnq/qna.git","ssh_url":"git@github.com:lsnq/qna.git","clone_url":"https://github.com/lsnq/qna.git","svn_url":"https://github.com/lsnq/qna","homepage":null,"size":1058,"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":"lsnq:master","ref":"master","sha":"af290b4482a394d33193c5b52a9ae6b68cfd3d05","user":{"login":"lsnq","id":9744983,"avatar_url":"https://avatars.githubusercontent.com/u/9744983?v=3","gravatar_id":"","url":"https://api.github.com/users/lsnq","html_url":"https://github.com/lsnq","followers_url":"https://api.github.com/users/lsnq/followers","following_url":"https://api.github.com/users/lsnq/following{/other_user}","gists_url":"https://api.github.com/users/lsnq/gists{/gist_id}","starred_url":"https://api.github.com/users/lsnq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsnq/subscriptions","organizations_url":"https://api.github.com/users/lsnq/orgs","repos_url":"https://api.github.com/users/lsnq/repos","events_url":"https://api.github.com/users/lsnq/events{/privacy}","received_events_url":"https://api.github.com/users/lsnq/received_events","type":"User","site_admin":false},"repo":{"id":73186961,"name":"qna","full_name":"lsnq/qna","owner":{"login":"lsnq","id":9744983,"avatar_url":"https://avatars.githubusercontent.com/u/9744983?v=3","gravatar_id":"","url":"https://api.github.com/users/lsnq","html_url":"https://github.com/lsnq","followers_url":"https://api.github.com/users/lsnq/followers","following_url":"https://api.github.com/users/lsnq/following{/other_user}","gists_url":"https://api.github.com/users/lsnq/gists{/gist_id}","starred_url":"https://api.github.com/users/lsnq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsnq/subscriptions","organizations_url":"https://api.github.com/users/lsnq/orgs","repos_url":"https://api.github.com/users/lsnq/repos","events_url":"https://api.github.com/users/lsnq/events{/privacy}","received_events_url":"https://api.github.com/users/lsnq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lsnq/qna","description":null,"fork":false,"url":"https://api.github.com/repos/lsnq/qna","forks_url":"https://api.github.com/repos/lsnq/qna/forks","keys_url":"https://api.github.com/repos/lsnq/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsnq/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsnq/qna/teams","hooks_url":"https://api.github.com/repos/lsnq/qna/hooks","issue_events_url":"https://api.github.com/repos/lsnq/qna/issues/events{/number}","events_url":"https://api.github.com/repos/lsnq/qna/events","assignees_url":"https://api.github.com/repos/lsnq/qna/assignees{/user}","branches_url":"https://api.github.com/repos/lsnq/qna/branches{/branch}","tags_url":"https://api.github.com/repos/lsnq/qna/tags","blobs_url":"https://api.github.com/repos/lsnq/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsnq/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsnq/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsnq/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsnq/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/lsnq/qna/languages","stargazers_url":"https://api.github.com/repos/lsnq/qna/stargazers","contributors_url":"https://api.github.com/repos/lsnq/qna/contributors","subscribers_url":"https://api.github.com/repos/lsnq/qna/subscribers","subscription_url":"https://api.github.com/repos/lsnq/qna/subscription","commits_url":"https://api.github.com/repos/lsnq/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsnq/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsnq/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsnq/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsnq/qna/contents/{+path}","compare_url":"https://api.github.com/repos/lsnq/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsnq/qna/merges","archive_url":"https://api.github.com/repos/lsnq/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsnq/qna/downloads","issues_url":"https://api.github.com/repos/lsnq/qna/issues{/number}","pulls_url":"https://api.github.com/repos/lsnq/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/lsnq/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/lsnq/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsnq/qna/labels{/name}","releases_url":"https://api.github.com/repos/lsnq/qna/releases{/id}","deployments_url":"https://api.github.com/repos/lsnq/qna/deployments","created_at":"2016-11-08T13:09:21Z","updated_at":"2016-11-08T13:10:54Z","pushed_at":"2016-11-14T19:28:55Z","git_url":"git://github.com/lsnq/qna.git","ssh_url":"git@github.com:lsnq/qna.git","clone_url":"https://github.com/lsnq/qna.git","svn_url":"https://github.com/lsnq/qna","homepage":null,"size":1058,"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/lsnq/qna/pulls/3"},"html":{"href":"https://github.com/lsnq/qna/pull/3"},"issue":{"href":"https://api.github.com/repos/lsnq/qna/issues/3"},"comments":{"href":"https://api.github.com/repos/lsnq/qna/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/lsnq/qna/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/lsnq/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lsnq/qna/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/lsnq/qna/statuses/ed0a5dbc5dec1b31bc0d811acccbb0682a4b8d76"}}}}
{"actor":{"display_login":"palkan"}}