{"action":"created","comment":{"url":"https://api.github.com/repos/alx-t/qna/pulls/comments/44768324","id":44768324,"diff_hunk":"@@ -0,0 +1,84 @@\n+require 'rails_helper'\n+\n+feature 'Question stories', %q{\n+  In order to working with questions\n+  As an authenticated user\n+  I want to be able working with questions\n+} do\n+\n+  given!(:user) { create(:user) }\n+  given!(:user_question) { create(:question, user: user) }\n+  given!(:smb_question) { create(:question) }\n+\n+  scenario 'Authenticated user creates question' do\n+    sign_in(user)\n+    visit questions_path\n+    click_on 'Ask question'\n+    fill_in 'Title', with: 'Test question'\n+    fill_in 'Body', with: 'Test question body'\n+    click_on 'Create'\n+    expect(page).to have_content 'Your question successfully created.'","path":"spec/features/questions_spec.rb","position":20,"original_position":20,"commit_id":"f8413a7382d895a6ecf5effab9cb0d383ee6c93f","original_commit_id":"f8413a7382d895a6ecf5effab9cb0d383ee6c93f","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":"Что значит \"правильный\"?)\r\nДостаточно 200.","created_at":"2015-11-13T10:24:20Z","updated_at":"2015-11-13T10:24:20Z","html_url":"https://github.com/alx-t/qna/pull/3#discussion_r44768324","pull_request_url":"https://api.github.com/repos/alx-t/qna/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/alx-t/qna/pulls/comments/44768324"},"html":{"href":"https://github.com/alx-t/qna/pull/3#discussion_r44768324"},"pull_request":{"href":"https://api.github.com/repos/alx-t/qna/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/alx-t/qna/pulls/3","id":50616044,"html_url":"https://github.com/alx-t/qna/pull/3","diff_url":"https://github.com/alx-t/qna/pull/3.diff","patch_url":"https://github.com/alx-t/qna/pull/3.patch","issue_url":"https://api.github.com/repos/alx-t/qna/issues/3","number":3,"state":"open","locked":false,"title":"Lsn 05","user":{"login":"alx-t","id":11555672,"avatar_url":"https://avatars.githubusercontent.com/u/11555672?v=3","gravatar_id":"","url":"https://api.github.com/users/alx-t","html_url":"https://github.com/alx-t","followers_url":"https://api.github.com/users/alx-t/followers","following_url":"https://api.github.com/users/alx-t/following{/other_user}","gists_url":"https://api.github.com/users/alx-t/gists{/gist_id}","starred_url":"https://api.github.com/users/alx-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alx-t/subscriptions","organizations_url":"https://api.github.com/users/alx-t/orgs","repos_url":"https://api.github.com/users/alx-t/repos","events_url":"https://api.github.com/users/alx-t/events{/privacy}","received_events_url":"https://api.github.com/users/alx-t/received_events","type":"User","site_admin":false},"body":"Не окончательный вариант - нужна рекомендация по коду spec/controllers/question_controller_spec.rb ну и как следствие - контроллеру\r\n1. Рефакторинг - часть кода из макроса пришлось вынести в тест\r\n2. Убрал проверку assigns в проверке create - т.к. реквизиты проверяются в след тесте? на сколько правильно?\r\n\r\nпланирую доделать сегодня работу с Ответами\r\n","created_at":"2015-11-13T08:37:33Z","updated_at":"2015-11-13T10:24:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb3af93db5f1041c53de42347e08f258e999ddf7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alx-t/qna/pulls/3/commits","review_comments_url":"https://api.github.com/repos/alx-t/qna/pulls/3/comments","review_comment_url":"https://api.github.com/repos/alx-t/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alx-t/qna/issues/3/comments","statuses_url":"https://api.github.com/repos/alx-t/qna/statuses/f8413a7382d895a6ecf5effab9cb0d383ee6c93f","head":{"label":"alx-t:lsn-05","ref":"lsn-05","sha":"f8413a7382d895a6ecf5effab9cb0d383ee6c93f","user":{"login":"alx-t","id":11555672,"avatar_url":"https://avatars.githubusercontent.com/u/11555672?v=3","gravatar_id":"","url":"https://api.github.com/users/alx-t","html_url":"https://github.com/alx-t","followers_url":"https://api.github.com/users/alx-t/followers","following_url":"https://api.github.com/users/alx-t/following{/other_user}","gists_url":"https://api.github.com/users/alx-t/gists{/gist_id}","starred_url":"https://api.github.com/users/alx-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alx-t/subscriptions","organizations_url":"https://api.github.com/users/alx-t/orgs","repos_url":"https://api.github.com/users/alx-t/repos","events_url":"https://api.github.com/users/alx-t/events{/privacy}","received_events_url":"https://api.github.com/users/alx-t/received_events","type":"User","site_admin":false},"repo":{"id":45792724,"name":"qna","full_name":"alx-t/qna","owner":{"login":"alx-t","id":11555672,"avatar_url":"https://avatars.githubusercontent.com/u/11555672?v=3","gravatar_id":"","url":"https://api.github.com/users/alx-t","html_url":"https://github.com/alx-t","followers_url":"https://api.github.com/users/alx-t/followers","following_url":"https://api.github.com/users/alx-t/following{/other_user}","gists_url":"https://api.github.com/users/alx-t/gists{/gist_id}","starred_url":"https://api.github.com/users/alx-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alx-t/subscriptions","organizations_url":"https://api.github.com/users/alx-t/orgs","repos_url":"https://api.github.com/users/alx-t/repos","events_url":"https://api.github.com/users/alx-t/events{/privacy}","received_events_url":"https://api.github.com/users/alx-t/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alx-t/qna","description":"Thinknetica training application - Question & Answers","fork":false,"url":"https://api.github.com/repos/alx-t/qna","forks_url":"https://api.github.com/repos/alx-t/qna/forks","keys_url":"https://api.github.com/repos/alx-t/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alx-t/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alx-t/qna/teams","hooks_url":"https://api.github.com/repos/alx-t/qna/hooks","issue_events_url":"https://api.github.com/repos/alx-t/qna/issues/events{/number}","events_url":"https://api.github.com/repos/alx-t/qna/events","assignees_url":"https://api.github.com/repos/alx-t/qna/assignees{/user}","branches_url":"https://api.github.com/repos/alx-t/qna/branches{/branch}","tags_url":"https://api.github.com/repos/alx-t/qna/tags","blobs_url":"https://api.github.com/repos/alx-t/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alx-t/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alx-t/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/alx-t/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alx-t/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/alx-t/qna/languages","stargazers_url":"https://api.github.com/repos/alx-t/qna/stargazers","contributors_url":"https://api.github.com/repos/alx-t/qna/contributors","subscribers_url":"https://api.github.com/repos/alx-t/qna/subscribers","subscription_url":"https://api.github.com/repos/alx-t/qna/subscription","commits_url":"https://api.github.com/repos/alx-t/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/alx-t/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/alx-t/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/alx-t/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/alx-t/qna/contents/{+path}","compare_url":"https://api.github.com/repos/alx-t/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alx-t/qna/merges","archive_url":"https://api.github.com/repos/alx-t/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alx-t/qna/downloads","issues_url":"https://api.github.com/repos/alx-t/qna/issues{/number}","pulls_url":"https://api.github.com/repos/alx-t/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/alx-t/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/alx-t/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alx-t/qna/labels{/name}","releases_url":"https://api.github.com/repos/alx-t/qna/releases{/id}","created_at":"2015-11-08T18:20:54Z","updated_at":"2015-11-08T18:21:21Z","pushed_at":"2015-11-13T08:37:33Z","git_url":"git://github.com/alx-t/qna.git","ssh_url":"git@github.com:alx-t/qna.git","clone_url":"https://github.com/alx-t/qna.git","svn_url":"https://github.com/alx-t/qna","homepage":null,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alx-t:master","ref":"master","sha":"44b6ad25ff6f8de4a9a6f427cc266ec168e6ea1c","user":{"login":"alx-t","id":11555672,"avatar_url":"https://avatars.githubusercontent.com/u/11555672?v=3","gravatar_id":"","url":"https://api.github.com/users/alx-t","html_url":"https://github.com/alx-t","followers_url":"https://api.github.com/users/alx-t/followers","following_url":"https://api.github.com/users/alx-t/following{/other_user}","gists_url":"https://api.github.com/users/alx-t/gists{/gist_id}","starred_url":"https://api.github.com/users/alx-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alx-t/subscriptions","organizations_url":"https://api.github.com/users/alx-t/orgs","repos_url":"https://api.github.com/users/alx-t/repos","events_url":"https://api.github.com/users/alx-t/events{/privacy}","received_events_url":"https://api.github.com/users/alx-t/received_events","type":"User","site_admin":false},"repo":{"id":45792724,"name":"qna","full_name":"alx-t/qna","owner":{"login":"alx-t","id":11555672,"avatar_url":"https://avatars.githubusercontent.com/u/11555672?v=3","gravatar_id":"","url":"https://api.github.com/users/alx-t","html_url":"https://github.com/alx-t","followers_url":"https://api.github.com/users/alx-t/followers","following_url":"https://api.github.com/users/alx-t/following{/other_user}","gists_url":"https://api.github.com/users/alx-t/gists{/gist_id}","starred_url":"https://api.github.com/users/alx-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alx-t/subscriptions","organizations_url":"https://api.github.com/users/alx-t/orgs","repos_url":"https://api.github.com/users/alx-t/repos","events_url":"https://api.github.com/users/alx-t/events{/privacy}","received_events_url":"https://api.github.com/users/alx-t/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alx-t/qna","description":"Thinknetica training application - Question & Answers","fork":false,"url":"https://api.github.com/repos/alx-t/qna","forks_url":"https://api.github.com/repos/alx-t/qna/forks","keys_url":"https://api.github.com/repos/alx-t/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alx-t/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alx-t/qna/teams","hooks_url":"https://api.github.com/repos/alx-t/qna/hooks","issue_events_url":"https://api.github.com/repos/alx-t/qna/issues/events{/number}","events_url":"https://api.github.com/repos/alx-t/qna/events","assignees_url":"https://api.github.com/repos/alx-t/qna/assignees{/user}","branches_url":"https://api.github.com/repos/alx-t/qna/branches{/branch}","tags_url":"https://api.github.com/repos/alx-t/qna/tags","blobs_url":"https://api.github.com/repos/alx-t/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alx-t/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alx-t/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/alx-t/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alx-t/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/alx-t/qna/languages","stargazers_url":"https://api.github.com/repos/alx-t/qna/stargazers","contributors_url":"https://api.github.com/repos/alx-t/qna/contributors","subscribers_url":"https://api.github.com/repos/alx-t/qna/subscribers","subscription_url":"https://api.github.com/repos/alx-t/qna/subscription","commits_url":"https://api.github.com/repos/alx-t/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/alx-t/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/alx-t/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/alx-t/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/alx-t/qna/contents/{+path}","compare_url":"https://api.github.com/repos/alx-t/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alx-t/qna/merges","archive_url":"https://api.github.com/repos/alx-t/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alx-t/qna/downloads","issues_url":"https://api.github.com/repos/alx-t/qna/issues{/number}","pulls_url":"https://api.github.com/repos/alx-t/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/alx-t/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/alx-t/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alx-t/qna/labels{/name}","releases_url":"https://api.github.com/repos/alx-t/qna/releases{/id}","created_at":"2015-11-08T18:20:54Z","updated_at":"2015-11-08T18:21:21Z","pushed_at":"2015-11-13T08:37:33Z","git_url":"git://github.com/alx-t/qna.git","ssh_url":"git@github.com:alx-t/qna.git","clone_url":"https://github.com/alx-t/qna.git","svn_url":"https://github.com/alx-t/qna","homepage":null,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alx-t/qna/pulls/3"},"html":{"href":"https://github.com/alx-t/qna/pull/3"},"issue":{"href":"https://api.github.com/repos/alx-t/qna/issues/3"},"comments":{"href":"https://api.github.com/repos/alx-t/qna/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/alx-t/qna/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/alx-t/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alx-t/qna/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/alx-t/qna/statuses/f8413a7382d895a6ecf5effab9cb0d383ee6c93f"}}}}