{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/4itosik/Stack/pulls/2","id":36912371,"html_url":"https://github.com/4itosik/Stack/pull/2","diff_url":"https://github.com/4itosik/Stack/pull/2.diff","patch_url":"https://github.com/4itosik/Stack/pull/2.patch","issue_url":"https://api.github.com/repos/4itosik/Stack/issues/2","number":2,"state":"closed","locked":false,"title":"Lesson4","user":{"login":"4itosik","id":6084346,"avatar_url":"https://avatars.githubusercontent.com/u/6084346?v=3","gravatar_id":"","url":"https://api.github.com/users/4itosik","html_url":"https://github.com/4itosik","followers_url":"https://api.github.com/users/4itosik/followers","following_url":"https://api.github.com/users/4itosik/following{/other_user}","gists_url":"https://api.github.com/users/4itosik/gists{/gist_id}","starred_url":"https://api.github.com/users/4itosik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4itosik/subscriptions","organizations_url":"https://api.github.com/users/4itosik/orgs","repos_url":"https://api.github.com/users/4itosik/repos","events_url":"https://api.github.com/users/4itosik/events{/privacy}","received_events_url":"https://api.github.com/users/4itosik/received_events","type":"User","site_admin":false},"body":"Добавил сначала тесты для вопросов, затем для ответов.\r\nИнтересная штука,\r\nв фабриках для ответов  добавляешь \"association(:question)\", но если создавать let(:answer) { create(:answer)}, то тесты не проходят, пришлось сделать let(:answer) { create(:answer, question: question)}.\r\nТакже в контроллере вопроса, пришлось писать @answer = Answer.new(:question => @question), т.к, если @answer = @question.answers.build, то не проходил тест \r\n    it \"populates an array of all answers in this question\" do\r\n      answers = create_list(:answer, 2, question: question)\r\n      expect(assigns(:answers)).to match_array(answers)\r\n    end\r\nРугался на наличие @answer","created_at":"2015-06-04T08:28:01Z","updated_at":"2015-06-05T05:43:48Z","closed_at":"2015-06-05T05:43:48Z","merged_at":"2015-06-05T05:43:48Z","merge_commit_sha":"6fd15ceef30af38f92e7118ddbea7d47c4206a1d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/4itosik/Stack/pulls/2/commits","review_comments_url":"https://api.github.com/repos/4itosik/Stack/pulls/2/comments","review_comment_url":"https://api.github.com/repos/4itosik/Stack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4itosik/Stack/issues/2/comments","statuses_url":"https://api.github.com/repos/4itosik/Stack/statuses/3711056d5d2003bcd41b7e0fffb12182b330b524","head":{"label":"4itosik:lesson4","ref":"lesson4","sha":"3711056d5d2003bcd41b7e0fffb12182b330b524","user":{"login":"4itosik","id":6084346,"avatar_url":"https://avatars.githubusercontent.com/u/6084346?v=3","gravatar_id":"","url":"https://api.github.com/users/4itosik","html_url":"https://github.com/4itosik","followers_url":"https://api.github.com/users/4itosik/followers","following_url":"https://api.github.com/users/4itosik/following{/other_user}","gists_url":"https://api.github.com/users/4itosik/gists{/gist_id}","starred_url":"https://api.github.com/users/4itosik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4itosik/subscriptions","organizations_url":"https://api.github.com/users/4itosik/orgs","repos_url":"https://api.github.com/users/4itosik/repos","events_url":"https://api.github.com/users/4itosik/events{/privacy}","received_events_url":"https://api.github.com/users/4itosik/received_events","type":"User","site_admin":false},"repo":{"id":36664468,"name":"Stack","full_name":"4itosik/Stack","owner":{"login":"4itosik","id":6084346,"avatar_url":"https://avatars.githubusercontent.com/u/6084346?v=3","gravatar_id":"","url":"https://api.github.com/users/4itosik","html_url":"https://github.com/4itosik","followers_url":"https://api.github.com/users/4itosik/followers","following_url":"https://api.github.com/users/4itosik/following{/other_user}","gists_url":"https://api.github.com/users/4itosik/gists{/gist_id}","starred_url":"https://api.github.com/users/4itosik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4itosik/subscriptions","organizations_url":"https://api.github.com/users/4itosik/orgs","repos_url":"https://api.github.com/users/4itosik/repos","events_url":"https://api.github.com/users/4itosik/events{/privacy}","received_events_url":"https://api.github.com/users/4itosik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/4itosik/Stack","description":"My stack with thinknetica","fork":false,"url":"https://api.github.com/repos/4itosik/Stack","forks_url":"https://api.github.com/repos/4itosik/Stack/forks","keys_url":"https://api.github.com/repos/4itosik/Stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4itosik/Stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4itosik/Stack/teams","hooks_url":"https://api.github.com/repos/4itosik/Stack/hooks","issue_events_url":"https://api.github.com/repos/4itosik/Stack/issues/events{/number}","events_url":"https://api.github.com/repos/4itosik/Stack/events","assignees_url":"https://api.github.com/repos/4itosik/Stack/assignees{/user}","branches_url":"https://api.github.com/repos/4itosik/Stack/branches{/branch}","tags_url":"https://api.github.com/repos/4itosik/Stack/tags","blobs_url":"https://api.github.com/repos/4itosik/Stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4itosik/Stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4itosik/Stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/4itosik/Stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4itosik/Stack/statuses/{sha}","languages_url":"https://api.github.com/repos/4itosik/Stack/languages","stargazers_url":"https://api.github.com/repos/4itosik/Stack/stargazers","contributors_url":"https://api.github.com/repos/4itosik/Stack/contributors","subscribers_url":"https://api.github.com/repos/4itosik/Stack/subscribers","subscription_url":"https://api.github.com/repos/4itosik/Stack/subscription","commits_url":"https://api.github.com/repos/4itosik/Stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/4itosik/Stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/4itosik/Stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/4itosik/Stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/4itosik/Stack/contents/{+path}","compare_url":"https://api.github.com/repos/4itosik/Stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4itosik/Stack/merges","archive_url":"https://api.github.com/repos/4itosik/Stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4itosik/Stack/downloads","issues_url":"https://api.github.com/repos/4itosik/Stack/issues{/number}","pulls_url":"https://api.github.com/repos/4itosik/Stack/pulls{/number}","milestones_url":"https://api.github.com/repos/4itosik/Stack/milestones{/number}","notifications_url":"https://api.github.com/repos/4itosik/Stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4itosik/Stack/labels{/name}","releases_url":"https://api.github.com/repos/4itosik/Stack/releases{/id}","created_at":"2015-06-01T14:02:21Z","updated_at":"2015-06-01T14:09:03Z","pushed_at":"2015-06-05T05:43:48Z","git_url":"git://github.com/4itosik/Stack.git","ssh_url":"git@github.com:4itosik/Stack.git","clone_url":"https://github.com/4itosik/Stack.git","svn_url":"https://github.com/4itosik/Stack","homepage":"","size":0,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"4itosik:master","ref":"master","sha":"ba6624a516b9761cdb37407650836b41c4ea974a","user":{"login":"4itosik","id":6084346,"avatar_url":"https://avatars.githubusercontent.com/u/6084346?v=3","gravatar_id":"","url":"https://api.github.com/users/4itosik","html_url":"https://github.com/4itosik","followers_url":"https://api.github.com/users/4itosik/followers","following_url":"https://api.github.com/users/4itosik/following{/other_user}","gists_url":"https://api.github.com/users/4itosik/gists{/gist_id}","starred_url":"https://api.github.com/users/4itosik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4itosik/subscriptions","organizations_url":"https://api.github.com/users/4itosik/orgs","repos_url":"https://api.github.com/users/4itosik/repos","events_url":"https://api.github.com/users/4itosik/events{/privacy}","received_events_url":"https://api.github.com/users/4itosik/received_events","type":"User","site_admin":false},"repo":{"id":36664468,"name":"Stack","full_name":"4itosik/Stack","owner":{"login":"4itosik","id":6084346,"avatar_url":"https://avatars.githubusercontent.com/u/6084346?v=3","gravatar_id":"","url":"https://api.github.com/users/4itosik","html_url":"https://github.com/4itosik","followers_url":"https://api.github.com/users/4itosik/followers","following_url":"https://api.github.com/users/4itosik/following{/other_user}","gists_url":"https://api.github.com/users/4itosik/gists{/gist_id}","starred_url":"https://api.github.com/users/4itosik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4itosik/subscriptions","organizations_url":"https://api.github.com/users/4itosik/orgs","repos_url":"https://api.github.com/users/4itosik/repos","events_url":"https://api.github.com/users/4itosik/events{/privacy}","received_events_url":"https://api.github.com/users/4itosik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/4itosik/Stack","description":"My stack with thinknetica","fork":false,"url":"https://api.github.com/repos/4itosik/Stack","forks_url":"https://api.github.com/repos/4itosik/Stack/forks","keys_url":"https://api.github.com/repos/4itosik/Stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4itosik/Stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4itosik/Stack/teams","hooks_url":"https://api.github.com/repos/4itosik/Stack/hooks","issue_events_url":"https://api.github.com/repos/4itosik/Stack/issues/events{/number}","events_url":"https://api.github.com/repos/4itosik/Stack/events","assignees_url":"https://api.github.com/repos/4itosik/Stack/assignees{/user}","branches_url":"https://api.github.com/repos/4itosik/Stack/branches{/branch}","tags_url":"https://api.github.com/repos/4itosik/Stack/tags","blobs_url":"https://api.github.com/repos/4itosik/Stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4itosik/Stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4itosik/Stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/4itosik/Stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4itosik/Stack/statuses/{sha}","languages_url":"https://api.github.com/repos/4itosik/Stack/languages","stargazers_url":"https://api.github.com/repos/4itosik/Stack/stargazers","contributors_url":"https://api.github.com/repos/4itosik/Stack/contributors","subscribers_url":"https://api.github.com/repos/4itosik/Stack/subscribers","subscription_url":"https://api.github.com/repos/4itosik/Stack/subscription","commits_url":"https://api.github.com/repos/4itosik/Stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/4itosik/Stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/4itosik/Stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/4itosik/Stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/4itosik/Stack/contents/{+path}","compare_url":"https://api.github.com/repos/4itosik/Stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4itosik/Stack/merges","archive_url":"https://api.github.com/repos/4itosik/Stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4itosik/Stack/downloads","issues_url":"https://api.github.com/repos/4itosik/Stack/issues{/number}","pulls_url":"https://api.github.com/repos/4itosik/Stack/pulls{/number}","milestones_url":"https://api.github.com/repos/4itosik/Stack/milestones{/number}","notifications_url":"https://api.github.com/repos/4itosik/Stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4itosik/Stack/labels{/name}","releases_url":"https://api.github.com/repos/4itosik/Stack/releases{/id}","created_at":"2015-06-01T14:02:21Z","updated_at":"2015-06-01T14:09:03Z","pushed_at":"2015-06-05T05:43:48Z","git_url":"git://github.com/4itosik/Stack.git","ssh_url":"git@github.com:4itosik/Stack.git","clone_url":"https://github.com/4itosik/Stack.git","svn_url":"https://github.com/4itosik/Stack","homepage":"","size":0,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4itosik/Stack/pulls/2"},"html":{"href":"https://github.com/4itosik/Stack/pull/2"},"issue":{"href":"https://api.github.com/repos/4itosik/Stack/issues/2"},"comments":{"href":"https://api.github.com/repos/4itosik/Stack/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/4itosik/Stack/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/4itosik/Stack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4itosik/Stack/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/4itosik/Stack/statuses/3711056d5d2003bcd41b7e0fffb12182b330b524"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"4itosik","id":6084346,"avatar_url":"https://avatars.githubusercontent.com/u/6084346?v=3","gravatar_id":"","url":"https://api.github.com/users/4itosik","html_url":"https://github.com/4itosik","followers_url":"https://api.github.com/users/4itosik/followers","following_url":"https://api.github.com/users/4itosik/following{/other_user}","gists_url":"https://api.github.com/users/4itosik/gists{/gist_id}","starred_url":"https://api.github.com/users/4itosik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4itosik/subscriptions","organizations_url":"https://api.github.com/users/4itosik/orgs","repos_url":"https://api.github.com/users/4itosik/repos","events_url":"https://api.github.com/users/4itosik/events{/privacy}","received_events_url":"https://api.github.com/users/4itosik/received_events","type":"User","site_admin":false},"comments":8,"review_comments":2,"commits":3,"additions":351,"deletions":5,"changed_files":22}}