{"action":"created","comment":{"url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/comments/47222611","id":47222611,"diff_hunk":"@@ -0,0 +1,46 @@\n+require 'rails_helper'\n+\n+RSpec.describe AnswersController, type: :controller do\n+  context 'User can create Answer for question' do\n+    let(:question) { create(:question)}\n+\n+    describe 'GET #new' do\n+      before { get :new, question_id: question }\n+      it 'check that question is assigned' do\n+        expect(assigns(:question)).to eq question\n+      end\n+      it 'assigns new Answer to @answer' do\n+        expect(assigns(:answer)).to be_a_new Answer\n+      end\n+      it 'renders #new template' do\n+        expect(response).to render_template(:new)\n+      end\n+    end\n+\n+    describe 'POST #create' do\n+      it 'check that question is assigned' do\n+        post :create, question_id: question, answer: attributes_for(:answer)","path":"spec/controllers/answers_controller_spec.rb","position":22,"original_position":22,"commit_id":"438f45cb3d3795e9176256eac26dced32bea7b1a","original_commit_id":"438f45cb3d3795e9176256eac26dced32bea7b1a","user":{"login":"CJRoman","id":2918571,"avatar_url":"https://avatars.githubusercontent.com/u/2918571?v=3","gravatar_id":"","url":"https://api.github.com/users/CJRoman","html_url":"https://github.com/CJRoman","followers_url":"https://api.github.com/users/CJRoman/followers","following_url":"https://api.github.com/users/CJRoman/following{/other_user}","gists_url":"https://api.github.com/users/CJRoman/gists{/gist_id}","starred_url":"https://api.github.com/users/CJRoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJRoman/subscriptions","organizations_url":"https://api.github.com/users/CJRoman/orgs","repos_url":"https://api.github.com/users/CJRoman/repos","events_url":"https://api.github.com/users/CJRoman/events{/privacy}","received_events_url":"https://api.github.com/users/CJRoman/received_events","type":"User","site_admin":false},"body":"То, что присвоились переменные. Хотя мне честно говоря показались эти тесты бесполезными. ","created_at":"2015-12-10T12:58:41Z","updated_at":"2015-12-10T12:58:41Z","html_url":"https://github.com/CJRoman/so_clone_thinknetica/pull/2#discussion_r47222611","pull_request_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/comments/47222611"},"html":{"href":"https://github.com/CJRoman/so_clone_thinknetica/pull/2#discussion_r47222611"},"pull_request":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/2","id":53198511,"html_url":"https://github.com/CJRoman/so_clone_thinknetica/pull/2","diff_url":"https://github.com/CJRoman/so_clone_thinknetica/pull/2.diff","patch_url":"https://github.com/CJRoman/so_clone_thinknetica/pull/2.patch","issue_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/2","number":2,"state":"open","locked":false,"title":"Lesson 4","user":{"login":"CJRoman","id":2918571,"avatar_url":"https://avatars.githubusercontent.com/u/2918571?v=3","gravatar_id":"","url":"https://api.github.com/users/CJRoman","html_url":"https://github.com/CJRoman","followers_url":"https://api.github.com/users/CJRoman/followers","following_url":"https://api.github.com/users/CJRoman/following{/other_user}","gists_url":"https://api.github.com/users/CJRoman/gists{/gist_id}","starred_url":"https://api.github.com/users/CJRoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJRoman/subscriptions","organizations_url":"https://api.github.com/users/CJRoman/orgs","repos_url":"https://api.github.com/users/CJRoman/repos","events_url":"https://api.github.com/users/CJRoman/events{/privacy}","received_events_url":"https://api.github.com/users/CJRoman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-10T00:13:55Z","updated_at":"2015-12-10T12:58:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdcd12db1891b3b1a2608dc314d45c47de48d402","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/2/commits","review_comments_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/2/comments","review_comment_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/2/comments","statuses_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/statuses/438f45cb3d3795e9176256eac26dced32bea7b1a","head":{"label":"CJRoman:Lesson_4","ref":"Lesson_4","sha":"438f45cb3d3795e9176256eac26dced32bea7b1a","user":{"login":"CJRoman","id":2918571,"avatar_url":"https://avatars.githubusercontent.com/u/2918571?v=3","gravatar_id":"","url":"https://api.github.com/users/CJRoman","html_url":"https://github.com/CJRoman","followers_url":"https://api.github.com/users/CJRoman/followers","following_url":"https://api.github.com/users/CJRoman/following{/other_user}","gists_url":"https://api.github.com/users/CJRoman/gists{/gist_id}","starred_url":"https://api.github.com/users/CJRoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJRoman/subscriptions","organizations_url":"https://api.github.com/users/CJRoman/orgs","repos_url":"https://api.github.com/users/CJRoman/repos","events_url":"https://api.github.com/users/CJRoman/events{/privacy}","received_events_url":"https://api.github.com/users/CJRoman/received_events","type":"User","site_admin":false},"repo":{"id":47533999,"name":"so_clone_thinknetica","full_name":"CJRoman/so_clone_thinknetica","owner":{"login":"CJRoman","id":2918571,"avatar_url":"https://avatars.githubusercontent.com/u/2918571?v=3","gravatar_id":"","url":"https://api.github.com/users/CJRoman","html_url":"https://github.com/CJRoman","followers_url":"https://api.github.com/users/CJRoman/followers","following_url":"https://api.github.com/users/CJRoman/following{/other_user}","gists_url":"https://api.github.com/users/CJRoman/gists{/gist_id}","starred_url":"https://api.github.com/users/CJRoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJRoman/subscriptions","organizations_url":"https://api.github.com/users/CJRoman/orgs","repos_url":"https://api.github.com/users/CJRoman/repos","events_url":"https://api.github.com/users/CJRoman/events{/privacy}","received_events_url":"https://api.github.com/users/CJRoman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CJRoman/so_clone_thinknetica","description":"","fork":false,"url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica","forks_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/forks","keys_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/teams","hooks_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/hooks","issue_events_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/events{/number}","events_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/events","assignees_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/assignees{/user}","branches_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/branches{/branch}","tags_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/tags","blobs_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/refs{/sha}","trees_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/statuses/{sha}","languages_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/languages","stargazers_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/stargazers","contributors_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/contributors","subscribers_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/subscribers","subscription_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/subscription","commits_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/commits{/sha}","git_commits_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/commits{/sha}","comments_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/comments{/number}","issue_comment_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/comments{/number}","contents_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/contents/{+path}","compare_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/merges","archive_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/downloads","issues_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues{/number}","pulls_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls{/number}","milestones_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/milestones{/number}","notifications_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/labels{/name}","releases_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/releases{/id}","created_at":"2015-12-07T06:36:08Z","updated_at":"2015-12-07T06:36:32Z","pushed_at":"2015-12-10T00:13:55Z","git_url":"git://github.com/CJRoman/so_clone_thinknetica.git","ssh_url":"git@github.com:CJRoman/so_clone_thinknetica.git","clone_url":"https://github.com/CJRoman/so_clone_thinknetica.git","svn_url":"https://github.com/CJRoman/so_clone_thinknetica","homepage":null,"size":35,"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":"CJRoman:master","ref":"master","sha":"ad70d5446b73379c6c19a630e38e8906ec5f8946","user":{"login":"CJRoman","id":2918571,"avatar_url":"https://avatars.githubusercontent.com/u/2918571?v=3","gravatar_id":"","url":"https://api.github.com/users/CJRoman","html_url":"https://github.com/CJRoman","followers_url":"https://api.github.com/users/CJRoman/followers","following_url":"https://api.github.com/users/CJRoman/following{/other_user}","gists_url":"https://api.github.com/users/CJRoman/gists{/gist_id}","starred_url":"https://api.github.com/users/CJRoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJRoman/subscriptions","organizations_url":"https://api.github.com/users/CJRoman/orgs","repos_url":"https://api.github.com/users/CJRoman/repos","events_url":"https://api.github.com/users/CJRoman/events{/privacy}","received_events_url":"https://api.github.com/users/CJRoman/received_events","type":"User","site_admin":false},"repo":{"id":47533999,"name":"so_clone_thinknetica","full_name":"CJRoman/so_clone_thinknetica","owner":{"login":"CJRoman","id":2918571,"avatar_url":"https://avatars.githubusercontent.com/u/2918571?v=3","gravatar_id":"","url":"https://api.github.com/users/CJRoman","html_url":"https://github.com/CJRoman","followers_url":"https://api.github.com/users/CJRoman/followers","following_url":"https://api.github.com/users/CJRoman/following{/other_user}","gists_url":"https://api.github.com/users/CJRoman/gists{/gist_id}","starred_url":"https://api.github.com/users/CJRoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJRoman/subscriptions","organizations_url":"https://api.github.com/users/CJRoman/orgs","repos_url":"https://api.github.com/users/CJRoman/repos","events_url":"https://api.github.com/users/CJRoman/events{/privacy}","received_events_url":"https://api.github.com/users/CJRoman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CJRoman/so_clone_thinknetica","description":"","fork":false,"url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica","forks_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/forks","keys_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/teams","hooks_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/hooks","issue_events_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/events{/number}","events_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/events","assignees_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/assignees{/user}","branches_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/branches{/branch}","tags_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/tags","blobs_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/refs{/sha}","trees_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/statuses/{sha}","languages_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/languages","stargazers_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/stargazers","contributors_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/contributors","subscribers_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/subscribers","subscription_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/subscription","commits_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/commits{/sha}","git_commits_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/git/commits{/sha}","comments_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/comments{/number}","issue_comment_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/comments{/number}","contents_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/contents/{+path}","compare_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/merges","archive_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/downloads","issues_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues{/number}","pulls_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls{/number}","milestones_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/milestones{/number}","notifications_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/labels{/name}","releases_url":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/releases{/id}","created_at":"2015-12-07T06:36:08Z","updated_at":"2015-12-07T06:36:32Z","pushed_at":"2015-12-10T00:13:55Z","git_url":"git://github.com/CJRoman/so_clone_thinknetica.git","ssh_url":"git@github.com:CJRoman/so_clone_thinknetica.git","clone_url":"https://github.com/CJRoman/so_clone_thinknetica.git","svn_url":"https://github.com/CJRoman/so_clone_thinknetica","homepage":null,"size":35,"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/CJRoman/so_clone_thinknetica/pulls/2"},"html":{"href":"https://github.com/CJRoman/so_clone_thinknetica/pull/2"},"issue":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/2"},"comments":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/CJRoman/so_clone_thinknetica/statuses/438f45cb3d3795e9176256eac26dced32bea7b1a"}}}}