{"action":"created","comment":{"url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/comments/32112059","id":32112059,"diff_hunk":"@@ -0,0 +1,37 @@\n+require 'rails_helper'\n+\n+feature 'User creates an answer' do\n+\n+  given(:user) { create(:user) }\n+  given(:question) { create(:question, user: user ) }\n+  given(:answers) { [attributes_for(:answer)[:body],attributes_for(:answer)[:body]] }\n+\n+  scenario 'Authenticated user gives an answer for the question' do\n+\n+    sign_in user\n+    visit question_path(question)\n+\n+    answers.map do |a|","path":"spec/acceptance/answer/create_answer_spec.rb","position":14,"original_position":14,"commit_id":"0275fd9a5e4aa78976b647afa7b7fc723e4b8c6d","original_commit_id":"0275fd9a5e4aa78976b647afa7b7fc723e4b8c6d","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":"map здесь не уместен, т.к.  map подразумевает преоюбразование одного массива в другой, а нам это не нужно. Здесь нужен обычный `each`.","created_at":"2015-06-10T12:34:00Z","updated_at":"2015-06-10T12:34:00Z","html_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow/pull/3#discussion_r32112059","pull_request_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/comments/32112059"},"html":{"href":"https://github.com/ShvetsovViacheslav/demo_stackoverflow/pull/3#discussion_r32112059"},"pull_request":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/3","id":37335038,"html_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow/pull/3","diff_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow/pull/3.diff","patch_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow/pull/3.patch","issue_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/3","number":3,"state":"open","locked":false,"title":"Lesson 5","user":{"login":"ShvetsovViacheslav","id":12672144,"avatar_url":"https://avatars.githubusercontent.com/u/12672144?v=3","gravatar_id":"","url":"https://api.github.com/users/ShvetsovViacheslav","html_url":"https://github.com/ShvetsovViacheslav","followers_url":"https://api.github.com/users/ShvetsovViacheslav/followers","following_url":"https://api.github.com/users/ShvetsovViacheslav/following{/other_user}","gists_url":"https://api.github.com/users/ShvetsovViacheslav/gists{/gist_id}","starred_url":"https://api.github.com/users/ShvetsovViacheslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShvetsovViacheslav/subscriptions","organizations_url":"https://api.github.com/users/ShvetsovViacheslav/orgs","repos_url":"https://api.github.com/users/ShvetsovViacheslav/repos","events_url":"https://api.github.com/users/ShvetsovViacheslav/events{/privacy}","received_events_url":"https://api.github.com/users/ShvetsovViacheslav/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-10T08:30:45Z","updated_at":"2015-06-10T12:34:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4496b25593cca1402b795b4e4563ac5948415fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/3/comments","statuses_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/statuses/0275fd9a5e4aa78976b647afa7b7fc723e4b8c6d","head":{"label":"ShvetsovViacheslav:lesson_5","ref":"lesson_5","sha":"0275fd9a5e4aa78976b647afa7b7fc723e4b8c6d","user":{"login":"ShvetsovViacheslav","id":12672144,"avatar_url":"https://avatars.githubusercontent.com/u/12672144?v=3","gravatar_id":"","url":"https://api.github.com/users/ShvetsovViacheslav","html_url":"https://github.com/ShvetsovViacheslav","followers_url":"https://api.github.com/users/ShvetsovViacheslav/followers","following_url":"https://api.github.com/users/ShvetsovViacheslav/following{/other_user}","gists_url":"https://api.github.com/users/ShvetsovViacheslav/gists{/gist_id}","starred_url":"https://api.github.com/users/ShvetsovViacheslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShvetsovViacheslav/subscriptions","organizations_url":"https://api.github.com/users/ShvetsovViacheslav/orgs","repos_url":"https://api.github.com/users/ShvetsovViacheslav/repos","events_url":"https://api.github.com/users/ShvetsovViacheslav/events{/privacy}","received_events_url":"https://api.github.com/users/ShvetsovViacheslav/received_events","type":"User","site_admin":false},"repo":{"id":36560013,"name":"demo_stackoverflow","full_name":"ShvetsovViacheslav/demo_stackoverflow","owner":{"login":"ShvetsovViacheslav","id":12672144,"avatar_url":"https://avatars.githubusercontent.com/u/12672144?v=3","gravatar_id":"","url":"https://api.github.com/users/ShvetsovViacheslav","html_url":"https://github.com/ShvetsovViacheslav","followers_url":"https://api.github.com/users/ShvetsovViacheslav/followers","following_url":"https://api.github.com/users/ShvetsovViacheslav/following{/other_user}","gists_url":"https://api.github.com/users/ShvetsovViacheslav/gists{/gist_id}","starred_url":"https://api.github.com/users/ShvetsovViacheslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShvetsovViacheslav/subscriptions","organizations_url":"https://api.github.com/users/ShvetsovViacheslav/orgs","repos_url":"https://api.github.com/users/ShvetsovViacheslav/repos","events_url":"https://api.github.com/users/ShvetsovViacheslav/events{/privacy}","received_events_url":"https://api.github.com/users/ShvetsovViacheslav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow","description":"Test project with functionality similar to stackoverflow.com","fork":false,"url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow","forks_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/forks","keys_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/teams","hooks_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/hooks","issue_events_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/events{/number}","events_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/events","assignees_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/assignees{/user}","branches_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/branches{/branch}","tags_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/tags","blobs_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/statuses/{sha}","languages_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/languages","stargazers_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/stargazers","contributors_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/contributors","subscribers_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/subscribers","subscription_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/subscription","commits_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/contents/{+path}","compare_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/merges","archive_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/downloads","issues_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues{/number}","pulls_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls{/number}","milestones_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/milestones{/number}","notifications_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/labels{/name}","releases_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/releases{/id}","created_at":"2015-05-30T13:52:31Z","updated_at":"2015-05-30T15:31:54Z","pushed_at":"2015-06-10T08:30:45Z","git_url":"git://github.com/ShvetsovViacheslav/demo_stackoverflow.git","ssh_url":"git@github.com:ShvetsovViacheslav/demo_stackoverflow.git","clone_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow.git","svn_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow","homepage":null,"size":188,"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":"ShvetsovViacheslav:master","ref":"master","sha":"caff753b24ba0e61e3d353e65aa97436bdbabfa9","user":{"login":"ShvetsovViacheslav","id":12672144,"avatar_url":"https://avatars.githubusercontent.com/u/12672144?v=3","gravatar_id":"","url":"https://api.github.com/users/ShvetsovViacheslav","html_url":"https://github.com/ShvetsovViacheslav","followers_url":"https://api.github.com/users/ShvetsovViacheslav/followers","following_url":"https://api.github.com/users/ShvetsovViacheslav/following{/other_user}","gists_url":"https://api.github.com/users/ShvetsovViacheslav/gists{/gist_id}","starred_url":"https://api.github.com/users/ShvetsovViacheslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShvetsovViacheslav/subscriptions","organizations_url":"https://api.github.com/users/ShvetsovViacheslav/orgs","repos_url":"https://api.github.com/users/ShvetsovViacheslav/repos","events_url":"https://api.github.com/users/ShvetsovViacheslav/events{/privacy}","received_events_url":"https://api.github.com/users/ShvetsovViacheslav/received_events","type":"User","site_admin":false},"repo":{"id":36560013,"name":"demo_stackoverflow","full_name":"ShvetsovViacheslav/demo_stackoverflow","owner":{"login":"ShvetsovViacheslav","id":12672144,"avatar_url":"https://avatars.githubusercontent.com/u/12672144?v=3","gravatar_id":"","url":"https://api.github.com/users/ShvetsovViacheslav","html_url":"https://github.com/ShvetsovViacheslav","followers_url":"https://api.github.com/users/ShvetsovViacheslav/followers","following_url":"https://api.github.com/users/ShvetsovViacheslav/following{/other_user}","gists_url":"https://api.github.com/users/ShvetsovViacheslav/gists{/gist_id}","starred_url":"https://api.github.com/users/ShvetsovViacheslav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShvetsovViacheslav/subscriptions","organizations_url":"https://api.github.com/users/ShvetsovViacheslav/orgs","repos_url":"https://api.github.com/users/ShvetsovViacheslav/repos","events_url":"https://api.github.com/users/ShvetsovViacheslav/events{/privacy}","received_events_url":"https://api.github.com/users/ShvetsovViacheslav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow","description":"Test project with functionality similar to stackoverflow.com","fork":false,"url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow","forks_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/forks","keys_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/teams","hooks_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/hooks","issue_events_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/events{/number}","events_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/events","assignees_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/assignees{/user}","branches_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/branches{/branch}","tags_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/tags","blobs_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/statuses/{sha}","languages_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/languages","stargazers_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/stargazers","contributors_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/contributors","subscribers_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/subscribers","subscription_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/subscription","commits_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/contents/{+path}","compare_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/merges","archive_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/downloads","issues_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues{/number}","pulls_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls{/number}","milestones_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/milestones{/number}","notifications_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/labels{/name}","releases_url":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/releases{/id}","created_at":"2015-05-30T13:52:31Z","updated_at":"2015-05-30T15:31:54Z","pushed_at":"2015-06-10T08:30:45Z","git_url":"git://github.com/ShvetsovViacheslav/demo_stackoverflow.git","ssh_url":"git@github.com:ShvetsovViacheslav/demo_stackoverflow.git","clone_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow.git","svn_url":"https://github.com/ShvetsovViacheslav/demo_stackoverflow","homepage":null,"size":188,"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/ShvetsovViacheslav/demo_stackoverflow/pulls/3"},"html":{"href":"https://github.com/ShvetsovViacheslav/demo_stackoverflow/pull/3"},"issue":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/3"},"comments":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ShvetsovViacheslav/demo_stackoverflow/statuses/0275fd9a5e4aa78976b647afa7b7fc723e4b8c6d"}}}}