{"action":"created","comment":{"url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments/76537124","id":76537124,"diff_hunk":"@@ -0,0 +1,37 @@\n+require 'rails_helper'\n+\n+feature 'user add answer', %q{\n+  user can see question\n+  after user can add answer\n+} do\n+\n+    let!(:question) { create(:question) }\n+    let!(:answers) { create_list(:answer, 3) } \n+\n+      scenario 'user see question and try to add answer' do\n+        \n+        visit question_path(question)\n+\n+\texpect(page).to have_content question.title\n+        expect(page).to have_content question.body\n+ \n+        fill_in 'answer_body', with: 'MyText'\n+        click_on 'create answer'\n+        \n+        expect(current_path).to eq question_path(question)\n+         ","path":"spec/acceptance/add_and_see_all_answers.rb","position":22,"original_position":22,"commit_id":"36df8ceda186d1cd9f54e023d93a5f154573b418","original_commit_id":"36df8ceda186d1cd9f54e023d93a5f154573b418","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":"Нужно в первую очередь проверить, что ответ появился на странице, а не текущий путь.","created_at":"2016-08-28T18:50:59Z","updated_at":"2016-08-28T18:50:59Z","html_url":"https://github.com/MarkRiaz/tcAPP/pull/3#discussion_r76537124","pull_request_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments/76537124"},"html":{"href":"https://github.com/MarkRiaz/tcAPP/pull/3#discussion_r76537124"},"pull_request":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/3","id":83015502,"html_url":"https://github.com/MarkRiaz/tcAPP/pull/3","diff_url":"https://github.com/MarkRiaz/tcAPP/pull/3.diff","patch_url":"https://github.com/MarkRiaz/tcAPP/pull/3.patch","issue_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/3","number":3,"state":"open","locked":false,"title":"Acctest","user":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-28T13:12:17Z","updated_at":"2016-08-28T18:50:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cd5a0cea6beb604dcdf92c7474ffdfb8700a01a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/3/commits","review_comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/3/comments","review_comment_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/3/comments","statuses_url":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/36df8ceda186d1cd9f54e023d93a5f154573b418","head":{"label":"MarkRiaz:acctest","ref":"acctest","sha":"36df8ceda186d1cd9f54e023d93a5f154573b418","user":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"repo":{"id":65482602,"name":"tcAPP","full_name":"MarkRiaz/tcAPP","owner":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarkRiaz/tcAPP","description":null,"fork":false,"url":"https://api.github.com/repos/MarkRiaz/tcAPP","forks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/forks","keys_url":"https://api.github.com/repos/MarkRiaz/tcAPP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarkRiaz/tcAPP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarkRiaz/tcAPP/teams","hooks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/hooks","issue_events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/events{/number}","events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/events","assignees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/assignees{/user}","branches_url":"https://api.github.com/repos/MarkRiaz/tcAPP/branches{/branch}","tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/tags","blobs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/{sha}","languages_url":"https://api.github.com/repos/MarkRiaz/tcAPP/languages","stargazers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/stargazers","contributors_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contributors","subscribers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscribers","subscription_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscription","commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contents/{+path}","compare_url":"https://api.github.com/repos/MarkRiaz/tcAPP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarkRiaz/tcAPP/merges","archive_url":"https://api.github.com/repos/MarkRiaz/tcAPP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarkRiaz/tcAPP/downloads","issues_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues{/number}","pulls_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls{/number}","milestones_url":"https://api.github.com/repos/MarkRiaz/tcAPP/milestones{/number}","notifications_url":"https://api.github.com/repos/MarkRiaz/tcAPP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarkRiaz/tcAPP/labels{/name}","releases_url":"https://api.github.com/repos/MarkRiaz/tcAPP/releases{/id}","deployments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/deployments","created_at":"2016-08-11T15:58:36Z","updated_at":"2016-08-11T15:59:15Z","pushed_at":"2016-08-28T15:30:41Z","git_url":"git://github.com/MarkRiaz/tcAPP.git","ssh_url":"git@github.com:MarkRiaz/tcAPP.git","clone_url":"https://github.com/MarkRiaz/tcAPP.git","svn_url":"https://github.com/MarkRiaz/tcAPP","homepage":null,"size":72,"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":"MarkRiaz:master","ref":"master","sha":"1c6b2eecdf8e50f16b9da9248f98f05e109f775b","user":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"repo":{"id":65482602,"name":"tcAPP","full_name":"MarkRiaz/tcAPP","owner":{"login":"MarkRiaz","id":2941073,"avatar_url":"https://avatars.githubusercontent.com/u/2941073?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkRiaz","html_url":"https://github.com/MarkRiaz","followers_url":"https://api.github.com/users/MarkRiaz/followers","following_url":"https://api.github.com/users/MarkRiaz/following{/other_user}","gists_url":"https://api.github.com/users/MarkRiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkRiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkRiaz/subscriptions","organizations_url":"https://api.github.com/users/MarkRiaz/orgs","repos_url":"https://api.github.com/users/MarkRiaz/repos","events_url":"https://api.github.com/users/MarkRiaz/events{/privacy}","received_events_url":"https://api.github.com/users/MarkRiaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MarkRiaz/tcAPP","description":null,"fork":false,"url":"https://api.github.com/repos/MarkRiaz/tcAPP","forks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/forks","keys_url":"https://api.github.com/repos/MarkRiaz/tcAPP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarkRiaz/tcAPP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarkRiaz/tcAPP/teams","hooks_url":"https://api.github.com/repos/MarkRiaz/tcAPP/hooks","issue_events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/events{/number}","events_url":"https://api.github.com/repos/MarkRiaz/tcAPP/events","assignees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/assignees{/user}","branches_url":"https://api.github.com/repos/MarkRiaz/tcAPP/branches{/branch}","tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/tags","blobs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/{sha}","languages_url":"https://api.github.com/repos/MarkRiaz/tcAPP/languages","stargazers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/stargazers","contributors_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contributors","subscribers_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscribers","subscription_url":"https://api.github.com/repos/MarkRiaz/tcAPP/subscription","commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarkRiaz/tcAPP/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarkRiaz/tcAPP/contents/{+path}","compare_url":"https://api.github.com/repos/MarkRiaz/tcAPP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarkRiaz/tcAPP/merges","archive_url":"https://api.github.com/repos/MarkRiaz/tcAPP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarkRiaz/tcAPP/downloads","issues_url":"https://api.github.com/repos/MarkRiaz/tcAPP/issues{/number}","pulls_url":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls{/number}","milestones_url":"https://api.github.com/repos/MarkRiaz/tcAPP/milestones{/number}","notifications_url":"https://api.github.com/repos/MarkRiaz/tcAPP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarkRiaz/tcAPP/labels{/name}","releases_url":"https://api.github.com/repos/MarkRiaz/tcAPP/releases{/id}","deployments_url":"https://api.github.com/repos/MarkRiaz/tcAPP/deployments","created_at":"2016-08-11T15:58:36Z","updated_at":"2016-08-11T15:59:15Z","pushed_at":"2016-08-28T15:30:41Z","git_url":"git://github.com/MarkRiaz/tcAPP.git","ssh_url":"git@github.com:MarkRiaz/tcAPP.git","clone_url":"https://github.com/MarkRiaz/tcAPP.git","svn_url":"https://github.com/MarkRiaz/tcAPP","homepage":null,"size":72,"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/MarkRiaz/tcAPP/pulls/3"},"html":{"href":"https://github.com/MarkRiaz/tcAPP/pull/3"},"issue":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/3"},"comments":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/MarkRiaz/tcAPP/statuses/36df8ceda186d1cd9f54e023d93a5f154573b418"}}}}
{"actor":{"display_login":"palkan"}}