{"action":"created","comment":{"url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments/61667631","id":61667631,"diff_hunk":"@@ -0,0 +1,39 @@\n+require 'rails_helper'\n+\n+feature 'Authenticated user can delete only own questions and answers' do\n+  given(:user) { create(:user) }\n+  given(:user2) { create(:user) }\n+\n+\n+  given(:question) { create(:question) }\n+  given(:answer) { create(:answer, question: question) }\n+\n+  def log_in\n+    visit new_user_session_path\n+    fill_in \"Email\", with: user.email\n+    fill_in \"Password\", with: user.password\n+    click_on \"Log in\"\n+  end\n+\n+  scenario 'Delete own question' do\n+    user.questions << question\n+\n+    log_in\n+\n+    visit question_path(question)\n+\n+    expect { click_link 'Delete question'}.to change(Question, :count).by(-1)","path":"spec/acceptance/question_specs/delete_question_spec.rb","position":25,"original_position":25,"commit_id":"3d51d613be55220dbbae468ca9ff9147c02ab3f2","original_commit_id":"3d51d613be55220dbbae468ca9ff9147c02ab3f2","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":"2016-04-30T09:52:04Z","updated_at":"2016-04-30T09:52:04Z","html_url":"https://github.com/ignatbagaev/thnkntc/pull/3#discussion_r61667631","pull_request_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments/61667631"},"html":{"href":"https://github.com/ignatbagaev/thnkntc/pull/3#discussion_r61667631"},"pull_request":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/3","id":68460079,"html_url":"https://github.com/ignatbagaev/thnkntc/pull/3","diff_url":"https://github.com/ignatbagaev/thnkntc/pull/3.diff","patch_url":"https://github.com/ignatbagaev/thnkntc/pull/3.patch","issue_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/3","number":3,"state":"open","locked":false,"title":"Lesson 5","user":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-30T06:31:15Z","updated_at":"2016-04-30T09:52:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1e3f0a2cb9ff4c99ec0c53837b00de41adc60d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/3/comments","statuses_url":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/3d51d613be55220dbbae468ca9ff9147c02ab3f2","head":{"label":"ignatbagaev:lesson-5","ref":"lesson-5","sha":"3d51d613be55220dbbae468ca9ff9147c02ab3f2","user":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"repo":{"id":57127069,"name":"thnkntc","full_name":"ignatbagaev/thnkntc","owner":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ignatbagaev/thnkntc","description":"","fork":false,"url":"https://api.github.com/repos/ignatbagaev/thnkntc","forks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/forks","keys_url":"https://api.github.com/repos/ignatbagaev/thnkntc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ignatbagaev/thnkntc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ignatbagaev/thnkntc/teams","hooks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/hooks","issue_events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/events{/number}","events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/events","assignees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/assignees{/user}","branches_url":"https://api.github.com/repos/ignatbagaev/thnkntc/branches{/branch}","tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/tags","blobs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/{sha}","languages_url":"https://api.github.com/repos/ignatbagaev/thnkntc/languages","stargazers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/stargazers","contributors_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contributors","subscribers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscribers","subscription_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscription","commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contents/{+path}","compare_url":"https://api.github.com/repos/ignatbagaev/thnkntc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ignatbagaev/thnkntc/merges","archive_url":"https://api.github.com/repos/ignatbagaev/thnkntc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ignatbagaev/thnkntc/downloads","issues_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues{/number}","pulls_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls{/number}","milestones_url":"https://api.github.com/repos/ignatbagaev/thnkntc/milestones{/number}","notifications_url":"https://api.github.com/repos/ignatbagaev/thnkntc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ignatbagaev/thnkntc/labels{/name}","releases_url":"https://api.github.com/repos/ignatbagaev/thnkntc/releases{/id}","deployments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/deployments","created_at":"2016-04-26T12:39:21Z","updated_at":"2016-04-26T12:39:40Z","pushed_at":"2016-04-30T06:31:18Z","git_url":"git://github.com/ignatbagaev/thnkntc.git","ssh_url":"git@github.com:ignatbagaev/thnkntc.git","clone_url":"https://github.com/ignatbagaev/thnkntc.git","svn_url":"https://github.com/ignatbagaev/thnkntc","homepage":null,"size":74,"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":"ignatbagaev:master","ref":"master","sha":"9cebc8c715945c419981b8e7ea6b778a8c163013","user":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"repo":{"id":57127069,"name":"thnkntc","full_name":"ignatbagaev/thnkntc","owner":{"login":"ignatbagaev","id":13698037,"avatar_url":"https://avatars.githubusercontent.com/u/13698037?v=3","gravatar_id":"","url":"https://api.github.com/users/ignatbagaev","html_url":"https://github.com/ignatbagaev","followers_url":"https://api.github.com/users/ignatbagaev/followers","following_url":"https://api.github.com/users/ignatbagaev/following{/other_user}","gists_url":"https://api.github.com/users/ignatbagaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ignatbagaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ignatbagaev/subscriptions","organizations_url":"https://api.github.com/users/ignatbagaev/orgs","repos_url":"https://api.github.com/users/ignatbagaev/repos","events_url":"https://api.github.com/users/ignatbagaev/events{/privacy}","received_events_url":"https://api.github.com/users/ignatbagaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ignatbagaev/thnkntc","description":"","fork":false,"url":"https://api.github.com/repos/ignatbagaev/thnkntc","forks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/forks","keys_url":"https://api.github.com/repos/ignatbagaev/thnkntc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ignatbagaev/thnkntc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ignatbagaev/thnkntc/teams","hooks_url":"https://api.github.com/repos/ignatbagaev/thnkntc/hooks","issue_events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/events{/number}","events_url":"https://api.github.com/repos/ignatbagaev/thnkntc/events","assignees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/assignees{/user}","branches_url":"https://api.github.com/repos/ignatbagaev/thnkntc/branches{/branch}","tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/tags","blobs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/{sha}","languages_url":"https://api.github.com/repos/ignatbagaev/thnkntc/languages","stargazers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/stargazers","contributors_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contributors","subscribers_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscribers","subscription_url":"https://api.github.com/repos/ignatbagaev/thnkntc/subscription","commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ignatbagaev/thnkntc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ignatbagaev/thnkntc/contents/{+path}","compare_url":"https://api.github.com/repos/ignatbagaev/thnkntc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ignatbagaev/thnkntc/merges","archive_url":"https://api.github.com/repos/ignatbagaev/thnkntc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ignatbagaev/thnkntc/downloads","issues_url":"https://api.github.com/repos/ignatbagaev/thnkntc/issues{/number}","pulls_url":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls{/number}","milestones_url":"https://api.github.com/repos/ignatbagaev/thnkntc/milestones{/number}","notifications_url":"https://api.github.com/repos/ignatbagaev/thnkntc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ignatbagaev/thnkntc/labels{/name}","releases_url":"https://api.github.com/repos/ignatbagaev/thnkntc/releases{/id}","deployments_url":"https://api.github.com/repos/ignatbagaev/thnkntc/deployments","created_at":"2016-04-26T12:39:21Z","updated_at":"2016-04-26T12:39:40Z","pushed_at":"2016-04-30T06:31:18Z","git_url":"git://github.com/ignatbagaev/thnkntc.git","ssh_url":"git@github.com:ignatbagaev/thnkntc.git","clone_url":"https://github.com/ignatbagaev/thnkntc.git","svn_url":"https://github.com/ignatbagaev/thnkntc","homepage":null,"size":74,"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/ignatbagaev/thnkntc/pulls/3"},"html":{"href":"https://github.com/ignatbagaev/thnkntc/pull/3"},"issue":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/3"},"comments":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ignatbagaev/thnkntc/statuses/3d51d613be55220dbbae468ca9ff9147c02ab3f2"}}}}