{"action":"created","comment":{"url":"https://api.github.com/repos/hawk911/RoR_extended/pulls/comments/74876975","id":74876975,"diff_hunk":"@@ -65,5 +65,19 @@\n     end\n   end\n \n+  describe 'POST #create' do\n+    context 'with validate attributes' do\n+      it 'saves the new question in the base' do\n+        expect { post :create, params: {question:attributes_for(:question)} }.to change(Question, :count).by(1)\n+      end\n+\n+      it 'redirects to show view' do\n+        post :create, params: {question:attributes_for(:question)}\n+        expect(response).to redirect_to\tquestion_path(assigns(:question))","path":"spec/controllers/questions_controller_spec.rb","position":76,"original_position":12,"commit_id":"89293a056cf7613626d0c081db5b75086fc4e5a5","original_commit_id":"89293a056cf7613626d0c081db5b75086fc4e5a5","user":{"login":"hawk911","id":11535209,"avatar_url":"https://avatars.githubusercontent.com/u/11535209?v=3","gravatar_id":"","url":"https://api.github.com/users/hawk911","html_url":"https://github.com/hawk911","followers_url":"https://api.github.com/users/hawk911/followers","following_url":"https://api.github.com/users/hawk911/following{/other_user}","gists_url":"https://api.github.com/users/hawk911/gists{/gist_id}","starred_url":"https://api.github.com/users/hawk911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawk911/subscriptions","organizations_url":"https://api.github.com/users/hawk911/orgs","repos_url":"https://api.github.com/users/hawk911/repos","events_url":"https://api.github.com/users/hawk911/events{/privacy}","received_events_url":"https://api.github.com/users/hawk911/received_events","type":"User","site_admin":false},"body":"Не пойму почему нет в переменной question ничего. \r\n\r\n> Failure/Error: expect(response).to redirect_to\tquestion_path(assigns(:question))\r\n>        Expected response to be a <3XX: redirect>, but was a <204: No Content>\r\n","created_at":"2016-08-16T05:13:05Z","updated_at":"2016-08-16T05:13:05Z","html_url":"https://github.com/hawk911/RoR_extended/pull/4#discussion_r74876975","pull_request_url":"https://api.github.com/repos/hawk911/RoR_extended/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/hawk911/RoR_extended/pulls/comments/74876975"},"html":{"href":"https://github.com/hawk911/RoR_extended/pull/4#discussion_r74876975"},"pull_request":{"href":"https://api.github.com/repos/hawk911/RoR_extended/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/hawk911/RoR_extended/pulls/4","id":81415386,"html_url":"https://github.com/hawk911/RoR_extended/pull/4","diff_url":"https://github.com/hawk911/RoR_extended/pull/4.diff","patch_url":"https://github.com/hawk911/RoR_extended/pull/4.patch","issue_url":"https://api.github.com/repos/hawk911/RoR_extended/issues/4","number":4,"state":"open","locked":false,"title":"Task4 2","user":{"login":"hawk911","id":11535209,"avatar_url":"https://avatars.githubusercontent.com/u/11535209?v=3","gravatar_id":"","url":"https://api.github.com/users/hawk911","html_url":"https://github.com/hawk911","followers_url":"https://api.github.com/users/hawk911/followers","following_url":"https://api.github.com/users/hawk911/following{/other_user}","gists_url":"https://api.github.com/users/hawk911/gists{/gist_id}","starred_url":"https://api.github.com/users/hawk911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawk911/subscriptions","organizations_url":"https://api.github.com/users/hawk911/orgs","repos_url":"https://api.github.com/users/hawk911/repos","events_url":"https://api.github.com/users/hawk911/events{/privacy}","received_events_url":"https://api.github.com/users/hawk911/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-16T05:11:45Z","updated_at":"2016-08-16T05:13:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00acfb8fba6be81c92f5fcd943eb6e1ba3f7930b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hawk911/RoR_extended/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hawk911/RoR_extended/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hawk911/RoR_extended/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hawk911/RoR_extended/issues/4/comments","statuses_url":"https://api.github.com/repos/hawk911/RoR_extended/statuses/89293a056cf7613626d0c081db5b75086fc4e5a5","head":{"label":"hawk911:task4_2","ref":"task4_2","sha":"89293a056cf7613626d0c081db5b75086fc4e5a5","user":{"login":"hawk911","id":11535209,"avatar_url":"https://avatars.githubusercontent.com/u/11535209?v=3","gravatar_id":"","url":"https://api.github.com/users/hawk911","html_url":"https://github.com/hawk911","followers_url":"https://api.github.com/users/hawk911/followers","following_url":"https://api.github.com/users/hawk911/following{/other_user}","gists_url":"https://api.github.com/users/hawk911/gists{/gist_id}","starred_url":"https://api.github.com/users/hawk911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawk911/subscriptions","organizations_url":"https://api.github.com/users/hawk911/orgs","repos_url":"https://api.github.com/users/hawk911/repos","events_url":"https://api.github.com/users/hawk911/events{/privacy}","received_events_url":"https://api.github.com/users/hawk911/received_events","type":"User","site_admin":false},"repo":{"id":65438162,"name":"RoR_extended","full_name":"hawk911/RoR_extended","owner":{"login":"hawk911","id":11535209,"avatar_url":"https://avatars.githubusercontent.com/u/11535209?v=3","gravatar_id":"","url":"https://api.github.com/users/hawk911","html_url":"https://github.com/hawk911","followers_url":"https://api.github.com/users/hawk911/followers","following_url":"https://api.github.com/users/hawk911/following{/other_user}","gists_url":"https://api.github.com/users/hawk911/gists{/gist_id}","starred_url":"https://api.github.com/users/hawk911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawk911/subscriptions","organizations_url":"https://api.github.com/users/hawk911/orgs","repos_url":"https://api.github.com/users/hawk911/repos","events_url":"https://api.github.com/users/hawk911/events{/privacy}","received_events_url":"https://api.github.com/users/hawk911/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hawk911/RoR_extended","description":null,"fork":false,"url":"https://api.github.com/repos/hawk911/RoR_extended","forks_url":"https://api.github.com/repos/hawk911/RoR_extended/forks","keys_url":"https://api.github.com/repos/hawk911/RoR_extended/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hawk911/RoR_extended/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hawk911/RoR_extended/teams","hooks_url":"https://api.github.com/repos/hawk911/RoR_extended/hooks","issue_events_url":"https://api.github.com/repos/hawk911/RoR_extended/issues/events{/number}","events_url":"https://api.github.com/repos/hawk911/RoR_extended/events","assignees_url":"https://api.github.com/repos/hawk911/RoR_extended/assignees{/user}","branches_url":"https://api.github.com/repos/hawk911/RoR_extended/branches{/branch}","tags_url":"https://api.github.com/repos/hawk911/RoR_extended/tags","blobs_url":"https://api.github.com/repos/hawk911/RoR_extended/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hawk911/RoR_extended/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hawk911/RoR_extended/git/refs{/sha}","trees_url":"https://api.github.com/repos/hawk911/RoR_extended/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hawk911/RoR_extended/statuses/{sha}","languages_url":"https://api.github.com/repos/hawk911/RoR_extended/languages","stargazers_url":"https://api.github.com/repos/hawk911/RoR_extended/stargazers","contributors_url":"https://api.github.com/repos/hawk911/RoR_extended/contributors","subscribers_url":"https://api.github.com/repos/hawk911/RoR_extended/subscribers","subscription_url":"https://api.github.com/repos/hawk911/RoR_extended/subscription","commits_url":"https://api.github.com/repos/hawk911/RoR_extended/commits{/sha}","git_commits_url":"https://api.github.com/repos/hawk911/RoR_extended/git/commits{/sha}","comments_url":"https://api.github.com/repos/hawk911/RoR_extended/comments{/number}","issue_comment_url":"https://api.github.com/repos/hawk911/RoR_extended/issues/comments{/number}","contents_url":"https://api.github.com/repos/hawk911/RoR_extended/contents/{+path}","compare_url":"https://api.github.com/repos/hawk911/RoR_extended/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hawk911/RoR_extended/merges","archive_url":"https://api.github.com/repos/hawk911/RoR_extended/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hawk911/RoR_extended/downloads","issues_url":"https://api.github.com/repos/hawk911/RoR_extended/issues{/number}","pulls_url":"https://api.github.com/repos/hawk911/RoR_extended/pulls{/number}","milestones_url":"https://api.github.com/repos/hawk911/RoR_extended/milestones{/number}","notifications_url":"https://api.github.com/repos/hawk911/RoR_extended/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hawk911/RoR_extended/labels{/name}","releases_url":"https://api.github.com/repos/hawk911/RoR_extended/releases{/id}","deployments_url":"https://api.github.com/repos/hawk911/RoR_extended/deployments","created_at":"2016-08-11T04:21:44Z","updated_at":"2016-08-11T04:22:28Z","pushed_at":"2016-08-16T05:11:45Z","git_url":"git://github.com/hawk911/RoR_extended.git","ssh_url":"git@github.com:hawk911/RoR_extended.git","clone_url":"https://github.com/hawk911/RoR_extended.git","svn_url":"https://github.com/hawk911/RoR_extended","homepage":null,"size":31404,"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":"hawk911:master","ref":"master","sha":"317e7f03b7681a4dea4cf1d884cf823a211b1c80","user":{"login":"hawk911","id":11535209,"avatar_url":"https://avatars.githubusercontent.com/u/11535209?v=3","gravatar_id":"","url":"https://api.github.com/users/hawk911","html_url":"https://github.com/hawk911","followers_url":"https://api.github.com/users/hawk911/followers","following_url":"https://api.github.com/users/hawk911/following{/other_user}","gists_url":"https://api.github.com/users/hawk911/gists{/gist_id}","starred_url":"https://api.github.com/users/hawk911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawk911/subscriptions","organizations_url":"https://api.github.com/users/hawk911/orgs","repos_url":"https://api.github.com/users/hawk911/repos","events_url":"https://api.github.com/users/hawk911/events{/privacy}","received_events_url":"https://api.github.com/users/hawk911/received_events","type":"User","site_admin":false},"repo":{"id":65438162,"name":"RoR_extended","full_name":"hawk911/RoR_extended","owner":{"login":"hawk911","id":11535209,"avatar_url":"https://avatars.githubusercontent.com/u/11535209?v=3","gravatar_id":"","url":"https://api.github.com/users/hawk911","html_url":"https://github.com/hawk911","followers_url":"https://api.github.com/users/hawk911/followers","following_url":"https://api.github.com/users/hawk911/following{/other_user}","gists_url":"https://api.github.com/users/hawk911/gists{/gist_id}","starred_url":"https://api.github.com/users/hawk911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawk911/subscriptions","organizations_url":"https://api.github.com/users/hawk911/orgs","repos_url":"https://api.github.com/users/hawk911/repos","events_url":"https://api.github.com/users/hawk911/events{/privacy}","received_events_url":"https://api.github.com/users/hawk911/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hawk911/RoR_extended","description":null,"fork":false,"url":"https://api.github.com/repos/hawk911/RoR_extended","forks_url":"https://api.github.com/repos/hawk911/RoR_extended/forks","keys_url":"https://api.github.com/repos/hawk911/RoR_extended/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hawk911/RoR_extended/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hawk911/RoR_extended/teams","hooks_url":"https://api.github.com/repos/hawk911/RoR_extended/hooks","issue_events_url":"https://api.github.com/repos/hawk911/RoR_extended/issues/events{/number}","events_url":"https://api.github.com/repos/hawk911/RoR_extended/events","assignees_url":"https://api.github.com/repos/hawk911/RoR_extended/assignees{/user}","branches_url":"https://api.github.com/repos/hawk911/RoR_extended/branches{/branch}","tags_url":"https://api.github.com/repos/hawk911/RoR_extended/tags","blobs_url":"https://api.github.com/repos/hawk911/RoR_extended/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hawk911/RoR_extended/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hawk911/RoR_extended/git/refs{/sha}","trees_url":"https://api.github.com/repos/hawk911/RoR_extended/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hawk911/RoR_extended/statuses/{sha}","languages_url":"https://api.github.com/repos/hawk911/RoR_extended/languages","stargazers_url":"https://api.github.com/repos/hawk911/RoR_extended/stargazers","contributors_url":"https://api.github.com/repos/hawk911/RoR_extended/contributors","subscribers_url":"https://api.github.com/repos/hawk911/RoR_extended/subscribers","subscription_url":"https://api.github.com/repos/hawk911/RoR_extended/subscription","commits_url":"https://api.github.com/repos/hawk911/RoR_extended/commits{/sha}","git_commits_url":"https://api.github.com/repos/hawk911/RoR_extended/git/commits{/sha}","comments_url":"https://api.github.com/repos/hawk911/RoR_extended/comments{/number}","issue_comment_url":"https://api.github.com/repos/hawk911/RoR_extended/issues/comments{/number}","contents_url":"https://api.github.com/repos/hawk911/RoR_extended/contents/{+path}","compare_url":"https://api.github.com/repos/hawk911/RoR_extended/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hawk911/RoR_extended/merges","archive_url":"https://api.github.com/repos/hawk911/RoR_extended/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hawk911/RoR_extended/downloads","issues_url":"https://api.github.com/repos/hawk911/RoR_extended/issues{/number}","pulls_url":"https://api.github.com/repos/hawk911/RoR_extended/pulls{/number}","milestones_url":"https://api.github.com/repos/hawk911/RoR_extended/milestones{/number}","notifications_url":"https://api.github.com/repos/hawk911/RoR_extended/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hawk911/RoR_extended/labels{/name}","releases_url":"https://api.github.com/repos/hawk911/RoR_extended/releases{/id}","deployments_url":"https://api.github.com/repos/hawk911/RoR_extended/deployments","created_at":"2016-08-11T04:21:44Z","updated_at":"2016-08-11T04:22:28Z","pushed_at":"2016-08-16T05:11:45Z","git_url":"git://github.com/hawk911/RoR_extended.git","ssh_url":"git@github.com:hawk911/RoR_extended.git","clone_url":"https://github.com/hawk911/RoR_extended.git","svn_url":"https://github.com/hawk911/RoR_extended","homepage":null,"size":31404,"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/hawk911/RoR_extended/pulls/4"},"html":{"href":"https://github.com/hawk911/RoR_extended/pull/4"},"issue":{"href":"https://api.github.com/repos/hawk911/RoR_extended/issues/4"},"comments":{"href":"https://api.github.com/repos/hawk911/RoR_extended/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hawk911/RoR_extended/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hawk911/RoR_extended/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hawk911/RoR_extended/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hawk911/RoR_extended/statuses/89293a056cf7613626d0c081db5b75086fc4e5a5"}}}}
{"actor":{"display_login":"hawk911"}}