{"action":"created","comment":{"url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/comments/102150057","pull_request_review_id":22892293,"id":102150057,"diff_hunk":"@@ -0,0 +1,35 @@\n+require 'rails_helper'\n+\n+feature 'Delete answer', '\n+  In order to hide answer\n+  As an user\n+  I want to be able to delete answer\n+' do\n+  given(:user) { create(:user) }\n+  given(:question) { create(:question_with_answers, user: user) }\n+  given(:another_question) { create(:question_with_answers, user: build(:user)) }\n+\n+  context 'as auth user' do\n+    before do\n+      sign_in(user)\n+    end\n+\n+    scenario 'try to delete answer' do\n+      visit question_path(question)\n+      find(:css, '.remove_answer', match: :first).click\n+      expect(page).to have_content t('common.messages.answers.destroy')\n+    end\n+\n+    scenario 'dont see delete link for other user answer' do\n+      visit question_path(another_question)\n+      expect(page).to_not have_css('.remove_answer')","path":"spec/features/answers/delete_answer_spec.rb","position":25,"original_position":25,"commit_id":"4d6e97b76d409d3beba1dca1a7c5faa0bdbfd7b9","original_commit_id":"4d6e97b76d409d3beba1dca1a7c5faa0bdbfd7b9","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":"Лучше не по классам проверять, а по названию ссылки. Класс может поменяться, тест упадет, а название менеее вероятно поменяется. Ну или даже если поменяется, то с т.з. интерфейса это значительное изменение и тест совершенно правильно упадет. А вот css - это внутренняя струкутра и их изменение может никак на функциональности интерфейса не отразиться","created_at":"2017-02-21T08:10:41Z","updated_at":"2017-02-21T08:18:00Z","html_url":"https://github.com/dx0x58/qna-learning-app/pull/3#discussion_r102150057","pull_request_url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/comments/102150057"},"html":{"href":"https://github.com/dx0x58/qna-learning-app/pull/3#discussion_r102150057"},"pull_request":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/3","id":107094985,"html_url":"https://github.com/dx0x58/qna-learning-app/pull/3","diff_url":"https://github.com/dx0x58/qna-learning-app/pull/3.diff","patch_url":"https://github.com/dx0x58/qna-learning-app/pull/3.patch","issue_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/3","number":3,"state":"open","locked":false,"title":"Lesson 26","user":{"login":"dx0x58","id":3293970,"avatar_url":"https://avatars.githubusercontent.com/u/3293970?v=3","gravatar_id":"","url":"https://api.github.com/users/dx0x58","html_url":"https://github.com/dx0x58","followers_url":"https://api.github.com/users/dx0x58/followers","following_url":"https://api.github.com/users/dx0x58/following{/other_user}","gists_url":"https://api.github.com/users/dx0x58/gists{/gist_id}","starred_url":"https://api.github.com/users/dx0x58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dx0x58/subscriptions","organizations_url":"https://api.github.com/users/dx0x58/orgs","repos_url":"https://api.github.com/users/dx0x58/repos","events_url":"https://api.github.com/users/dx0x58/events{/privacy}","received_events_url":"https://api.github.com/users/dx0x58/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-21T00:16:43Z","updated_at":"2017-02-21T08:18:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6d033844bad637960b57700bb4d8427326e62a2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/3/comments","statuses_url":"https://api.github.com/repos/dx0x58/qna-learning-app/statuses/4d6e97b76d409d3beba1dca1a7c5faa0bdbfd7b9","head":{"label":"dx0x58:lesson_26","ref":"lesson_26","sha":"4d6e97b76d409d3beba1dca1a7c5faa0bdbfd7b9","user":{"login":"dx0x58","id":3293970,"avatar_url":"https://avatars.githubusercontent.com/u/3293970?v=3","gravatar_id":"","url":"https://api.github.com/users/dx0x58","html_url":"https://github.com/dx0x58","followers_url":"https://api.github.com/users/dx0x58/followers","following_url":"https://api.github.com/users/dx0x58/following{/other_user}","gists_url":"https://api.github.com/users/dx0x58/gists{/gist_id}","starred_url":"https://api.github.com/users/dx0x58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dx0x58/subscriptions","organizations_url":"https://api.github.com/users/dx0x58/orgs","repos_url":"https://api.github.com/users/dx0x58/repos","events_url":"https://api.github.com/users/dx0x58/events{/privacy}","received_events_url":"https://api.github.com/users/dx0x58/received_events","type":"User","site_admin":false},"repo":{"id":81559806,"name":"qna-learning-app","full_name":"dx0x58/qna-learning-app","owner":{"login":"dx0x58","id":3293970,"avatar_url":"https://avatars.githubusercontent.com/u/3293970?v=3","gravatar_id":"","url":"https://api.github.com/users/dx0x58","html_url":"https://github.com/dx0x58","followers_url":"https://api.github.com/users/dx0x58/followers","following_url":"https://api.github.com/users/dx0x58/following{/other_user}","gists_url":"https://api.github.com/users/dx0x58/gists{/gist_id}","starred_url":"https://api.github.com/users/dx0x58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dx0x58/subscriptions","organizations_url":"https://api.github.com/users/dx0x58/orgs","repos_url":"https://api.github.com/users/dx0x58/repos","events_url":"https://api.github.com/users/dx0x58/events{/privacy}","received_events_url":"https://api.github.com/users/dx0x58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dx0x58/qna-learning-app","description":"StackOverflow like learning app","fork":false,"url":"https://api.github.com/repos/dx0x58/qna-learning-app","forks_url":"https://api.github.com/repos/dx0x58/qna-learning-app/forks","keys_url":"https://api.github.com/repos/dx0x58/qna-learning-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dx0x58/qna-learning-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dx0x58/qna-learning-app/teams","hooks_url":"https://api.github.com/repos/dx0x58/qna-learning-app/hooks","issue_events_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/events{/number}","events_url":"https://api.github.com/repos/dx0x58/qna-learning-app/events","assignees_url":"https://api.github.com/repos/dx0x58/qna-learning-app/assignees{/user}","branches_url":"https://api.github.com/repos/dx0x58/qna-learning-app/branches{/branch}","tags_url":"https://api.github.com/repos/dx0x58/qna-learning-app/tags","blobs_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dx0x58/qna-learning-app/statuses/{sha}","languages_url":"https://api.github.com/repos/dx0x58/qna-learning-app/languages","stargazers_url":"https://api.github.com/repos/dx0x58/qna-learning-app/stargazers","contributors_url":"https://api.github.com/repos/dx0x58/qna-learning-app/contributors","subscribers_url":"https://api.github.com/repos/dx0x58/qna-learning-app/subscribers","subscription_url":"https://api.github.com/repos/dx0x58/qna-learning-app/subscription","commits_url":"https://api.github.com/repos/dx0x58/qna-learning-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/dx0x58/qna-learning-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/dx0x58/qna-learning-app/contents/{+path}","compare_url":"https://api.github.com/repos/dx0x58/qna-learning-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dx0x58/qna-learning-app/merges","archive_url":"https://api.github.com/repos/dx0x58/qna-learning-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dx0x58/qna-learning-app/downloads","issues_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues{/number}","pulls_url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls{/number}","milestones_url":"https://api.github.com/repos/dx0x58/qna-learning-app/milestones{/number}","notifications_url":"https://api.github.com/repos/dx0x58/qna-learning-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dx0x58/qna-learning-app/labels{/name}","releases_url":"https://api.github.com/repos/dx0x58/qna-learning-app/releases{/id}","deployments_url":"https://api.github.com/repos/dx0x58/qna-learning-app/deployments","created_at":"2017-02-10T11:39:05Z","updated_at":"2017-02-10T11:39:16Z","pushed_at":"2017-02-21T00:16:44Z","git_url":"git://github.com/dx0x58/qna-learning-app.git","ssh_url":"git@github.com:dx0x58/qna-learning-app.git","clone_url":"https://github.com/dx0x58/qna-learning-app.git","svn_url":"https://github.com/dx0x58/qna-learning-app","homepage":null,"size":132,"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":"dx0x58:master","ref":"master","sha":"ba2b7421fab94e541e213ec9f34ae8217bdecc9b","user":{"login":"dx0x58","id":3293970,"avatar_url":"https://avatars.githubusercontent.com/u/3293970?v=3","gravatar_id":"","url":"https://api.github.com/users/dx0x58","html_url":"https://github.com/dx0x58","followers_url":"https://api.github.com/users/dx0x58/followers","following_url":"https://api.github.com/users/dx0x58/following{/other_user}","gists_url":"https://api.github.com/users/dx0x58/gists{/gist_id}","starred_url":"https://api.github.com/users/dx0x58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dx0x58/subscriptions","organizations_url":"https://api.github.com/users/dx0x58/orgs","repos_url":"https://api.github.com/users/dx0x58/repos","events_url":"https://api.github.com/users/dx0x58/events{/privacy}","received_events_url":"https://api.github.com/users/dx0x58/received_events","type":"User","site_admin":false},"repo":{"id":81559806,"name":"qna-learning-app","full_name":"dx0x58/qna-learning-app","owner":{"login":"dx0x58","id":3293970,"avatar_url":"https://avatars.githubusercontent.com/u/3293970?v=3","gravatar_id":"","url":"https://api.github.com/users/dx0x58","html_url":"https://github.com/dx0x58","followers_url":"https://api.github.com/users/dx0x58/followers","following_url":"https://api.github.com/users/dx0x58/following{/other_user}","gists_url":"https://api.github.com/users/dx0x58/gists{/gist_id}","starred_url":"https://api.github.com/users/dx0x58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dx0x58/subscriptions","organizations_url":"https://api.github.com/users/dx0x58/orgs","repos_url":"https://api.github.com/users/dx0x58/repos","events_url":"https://api.github.com/users/dx0x58/events{/privacy}","received_events_url":"https://api.github.com/users/dx0x58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dx0x58/qna-learning-app","description":"StackOverflow like learning app","fork":false,"url":"https://api.github.com/repos/dx0x58/qna-learning-app","forks_url":"https://api.github.com/repos/dx0x58/qna-learning-app/forks","keys_url":"https://api.github.com/repos/dx0x58/qna-learning-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dx0x58/qna-learning-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dx0x58/qna-learning-app/teams","hooks_url":"https://api.github.com/repos/dx0x58/qna-learning-app/hooks","issue_events_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/events{/number}","events_url":"https://api.github.com/repos/dx0x58/qna-learning-app/events","assignees_url":"https://api.github.com/repos/dx0x58/qna-learning-app/assignees{/user}","branches_url":"https://api.github.com/repos/dx0x58/qna-learning-app/branches{/branch}","tags_url":"https://api.github.com/repos/dx0x58/qna-learning-app/tags","blobs_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dx0x58/qna-learning-app/statuses/{sha}","languages_url":"https://api.github.com/repos/dx0x58/qna-learning-app/languages","stargazers_url":"https://api.github.com/repos/dx0x58/qna-learning-app/stargazers","contributors_url":"https://api.github.com/repos/dx0x58/qna-learning-app/contributors","subscribers_url":"https://api.github.com/repos/dx0x58/qna-learning-app/subscribers","subscription_url":"https://api.github.com/repos/dx0x58/qna-learning-app/subscription","commits_url":"https://api.github.com/repos/dx0x58/qna-learning-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/dx0x58/qna-learning-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/dx0x58/qna-learning-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/dx0x58/qna-learning-app/contents/{+path}","compare_url":"https://api.github.com/repos/dx0x58/qna-learning-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dx0x58/qna-learning-app/merges","archive_url":"https://api.github.com/repos/dx0x58/qna-learning-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dx0x58/qna-learning-app/downloads","issues_url":"https://api.github.com/repos/dx0x58/qna-learning-app/issues{/number}","pulls_url":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls{/number}","milestones_url":"https://api.github.com/repos/dx0x58/qna-learning-app/milestones{/number}","notifications_url":"https://api.github.com/repos/dx0x58/qna-learning-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dx0x58/qna-learning-app/labels{/name}","releases_url":"https://api.github.com/repos/dx0x58/qna-learning-app/releases{/id}","deployments_url":"https://api.github.com/repos/dx0x58/qna-learning-app/deployments","created_at":"2017-02-10T11:39:05Z","updated_at":"2017-02-10T11:39:16Z","pushed_at":"2017-02-21T00:16:44Z","git_url":"git://github.com/dx0x58/qna-learning-app.git","ssh_url":"git@github.com:dx0x58/qna-learning-app.git","clone_url":"https://github.com/dx0x58/qna-learning-app.git","svn_url":"https://github.com/dx0x58/qna-learning-app","homepage":null,"size":132,"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/dx0x58/qna-learning-app/pulls/3"},"html":{"href":"https://github.com/dx0x58/qna-learning-app/pull/3"},"issue":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/3"},"comments":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dx0x58/qna-learning-app/statuses/4d6e97b76d409d3beba1dca1a7c5faa0bdbfd7b9"}}}}
{"actor":{"display_login":"vkurennov"}}