{"action":"created","comment":{"url":"https://api.github.com/repos/dzivalli/qna/pulls/comments/26682334","id":26682334,"diff_hunk":"@@ -0,0 +1,47 @@\n+require 'rails_helper'\n+\n+feature 'Only logged user can create questions and answers' do\n+  given(:user) { create(:user) }\n+  given(:question) { create(:question) }\n+\n+  scenario 'Logged user create question' do\n+    log_in user\n+    attrs = attributes_for :question\n+    visit new_question_path\n+\n+    fill_in 'question_title', with: attrs[:title]","path":"spec/features/only_logged_user_can_create_spec.rb","position":12,"original_position":12,"commit_id":"ee4c3988536626ed8186ed5caa198722f19a8b74","original_commit_id":"ee4c3988536626ed8186ed5caa198722f19a8b74","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":"Лучше писать конкретные значения, их так дальше в тесте проще проверить.","created_at":"2015-03-18T16:51:16Z","updated_at":"2015-03-18T16:51:16Z","html_url":"https://github.com/dzivalli/qna/pull/3#discussion_r26682334","pull_request_url":"https://api.github.com/repos/dzivalli/qna/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/dzivalli/qna/pulls/comments/26682334"},"html":{"href":"https://github.com/dzivalli/qna/pull/3#discussion_r26682334"},"pull_request":{"href":"https://api.github.com/repos/dzivalli/qna/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/dzivalli/qna/pulls/3","id":31446241,"html_url":"https://github.com/dzivalli/qna/pull/3","diff_url":"https://github.com/dzivalli/qna/pull/3.diff","patch_url":"https://github.com/dzivalli/qna/pull/3.patch","issue_url":"https://api.github.com/repos/dzivalli/qna/issues/3","number":3,"state":"open","locked":false,"title":"Lesson5","user":{"login":"dzivalli","id":8066888,"avatar_url":"https://avatars.githubusercontent.com/u/8066888?v=3","gravatar_id":"","url":"https://api.github.com/users/dzivalli","html_url":"https://github.com/dzivalli","followers_url":"https://api.github.com/users/dzivalli/followers","following_url":"https://api.github.com/users/dzivalli/following{/other_user}","gists_url":"https://api.github.com/users/dzivalli/gists{/gist_id}","starred_url":"https://api.github.com/users/dzivalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzivalli/subscriptions","organizations_url":"https://api.github.com/users/dzivalli/orgs","repos_url":"https://api.github.com/users/dzivalli/repos","events_url":"https://api.github.com/users/dzivalli/events{/privacy}","received_events_url":"https://api.github.com/users/dzivalli/received_events","type":"User","site_admin":false},"body":"В виды добавил только самый необходимый функционал.","created_at":"2015-03-18T16:29:29Z","updated_at":"2015-03-18T16:51:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0ea160ebfa10c566ca6167ba3cdf04ddce61ec9","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/dzivalli/qna/pulls/3/commits","review_comments_url":"https://api.github.com/repos/dzivalli/qna/pulls/3/comments","review_comment_url":"https://api.github.com/repos/dzivalli/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dzivalli/qna/issues/3/comments","statuses_url":"https://api.github.com/repos/dzivalli/qna/statuses/ee4c3988536626ed8186ed5caa198722f19a8b74","head":{"label":"dzivalli:lesson5","ref":"lesson5","sha":"ee4c3988536626ed8186ed5caa198722f19a8b74","user":{"login":"dzivalli","id":8066888,"avatar_url":"https://avatars.githubusercontent.com/u/8066888?v=3","gravatar_id":"","url":"https://api.github.com/users/dzivalli","html_url":"https://github.com/dzivalli","followers_url":"https://api.github.com/users/dzivalli/followers","following_url":"https://api.github.com/users/dzivalli/following{/other_user}","gists_url":"https://api.github.com/users/dzivalli/gists{/gist_id}","starred_url":"https://api.github.com/users/dzivalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzivalli/subscriptions","organizations_url":"https://api.github.com/users/dzivalli/orgs","repos_url":"https://api.github.com/users/dzivalli/repos","events_url":"https://api.github.com/users/dzivalli/events{/privacy}","received_events_url":"https://api.github.com/users/dzivalli/received_events","type":"User","site_admin":false},"repo":{"id":31900065,"name":"qna","full_name":"dzivalli/qna","owner":{"login":"dzivalli","id":8066888,"avatar_url":"https://avatars.githubusercontent.com/u/8066888?v=3","gravatar_id":"","url":"https://api.github.com/users/dzivalli","html_url":"https://github.com/dzivalli","followers_url":"https://api.github.com/users/dzivalli/followers","following_url":"https://api.github.com/users/dzivalli/following{/other_user}","gists_url":"https://api.github.com/users/dzivalli/gists{/gist_id}","starred_url":"https://api.github.com/users/dzivalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzivalli/subscriptions","organizations_url":"https://api.github.com/users/dzivalli/orgs","repos_url":"https://api.github.com/users/dzivalli/repos","events_url":"https://api.github.com/users/dzivalli/events{/privacy}","received_events_url":"https://api.github.com/users/dzivalli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dzivalli/qna","description":"","fork":false,"url":"https://api.github.com/repos/dzivalli/qna","forks_url":"https://api.github.com/repos/dzivalli/qna/forks","keys_url":"https://api.github.com/repos/dzivalli/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dzivalli/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dzivalli/qna/teams","hooks_url":"https://api.github.com/repos/dzivalli/qna/hooks","issue_events_url":"https://api.github.com/repos/dzivalli/qna/issues/events{/number}","events_url":"https://api.github.com/repos/dzivalli/qna/events","assignees_url":"https://api.github.com/repos/dzivalli/qna/assignees{/user}","branches_url":"https://api.github.com/repos/dzivalli/qna/branches{/branch}","tags_url":"https://api.github.com/repos/dzivalli/qna/tags","blobs_url":"https://api.github.com/repos/dzivalli/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dzivalli/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dzivalli/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/dzivalli/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dzivalli/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/dzivalli/qna/languages","stargazers_url":"https://api.github.com/repos/dzivalli/qna/stargazers","contributors_url":"https://api.github.com/repos/dzivalli/qna/contributors","subscribers_url":"https://api.github.com/repos/dzivalli/qna/subscribers","subscription_url":"https://api.github.com/repos/dzivalli/qna/subscription","commits_url":"https://api.github.com/repos/dzivalli/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/dzivalli/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/dzivalli/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/dzivalli/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/dzivalli/qna/contents/{+path}","compare_url":"https://api.github.com/repos/dzivalli/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dzivalli/qna/merges","archive_url":"https://api.github.com/repos/dzivalli/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dzivalli/qna/downloads","issues_url":"https://api.github.com/repos/dzivalli/qna/issues{/number}","pulls_url":"https://api.github.com/repos/dzivalli/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/dzivalli/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/dzivalli/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dzivalli/qna/labels{/name}","releases_url":"https://api.github.com/repos/dzivalli/qna/releases{/id}","created_at":"2015-03-09T13:35:46Z","updated_at":"2015-03-14T11:20:35Z","pushed_at":"2015-03-18T16:24:54Z","git_url":"git://github.com/dzivalli/qna.git","ssh_url":"git@github.com:dzivalli/qna.git","clone_url":"https://github.com/dzivalli/qna.git","svn_url":"https://github.com/dzivalli/qna","homepage":null,"size":180,"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":"dzivalli:master","ref":"master","sha":"fb7cabe024e12f2f92f9d5f9c2d8af761ed85b02","user":{"login":"dzivalli","id":8066888,"avatar_url":"https://avatars.githubusercontent.com/u/8066888?v=3","gravatar_id":"","url":"https://api.github.com/users/dzivalli","html_url":"https://github.com/dzivalli","followers_url":"https://api.github.com/users/dzivalli/followers","following_url":"https://api.github.com/users/dzivalli/following{/other_user}","gists_url":"https://api.github.com/users/dzivalli/gists{/gist_id}","starred_url":"https://api.github.com/users/dzivalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzivalli/subscriptions","organizations_url":"https://api.github.com/users/dzivalli/orgs","repos_url":"https://api.github.com/users/dzivalli/repos","events_url":"https://api.github.com/users/dzivalli/events{/privacy}","received_events_url":"https://api.github.com/users/dzivalli/received_events","type":"User","site_admin":false},"repo":{"id":31900065,"name":"qna","full_name":"dzivalli/qna","owner":{"login":"dzivalli","id":8066888,"avatar_url":"https://avatars.githubusercontent.com/u/8066888?v=3","gravatar_id":"","url":"https://api.github.com/users/dzivalli","html_url":"https://github.com/dzivalli","followers_url":"https://api.github.com/users/dzivalli/followers","following_url":"https://api.github.com/users/dzivalli/following{/other_user}","gists_url":"https://api.github.com/users/dzivalli/gists{/gist_id}","starred_url":"https://api.github.com/users/dzivalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzivalli/subscriptions","organizations_url":"https://api.github.com/users/dzivalli/orgs","repos_url":"https://api.github.com/users/dzivalli/repos","events_url":"https://api.github.com/users/dzivalli/events{/privacy}","received_events_url":"https://api.github.com/users/dzivalli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dzivalli/qna","description":"","fork":false,"url":"https://api.github.com/repos/dzivalli/qna","forks_url":"https://api.github.com/repos/dzivalli/qna/forks","keys_url":"https://api.github.com/repos/dzivalli/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dzivalli/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dzivalli/qna/teams","hooks_url":"https://api.github.com/repos/dzivalli/qna/hooks","issue_events_url":"https://api.github.com/repos/dzivalli/qna/issues/events{/number}","events_url":"https://api.github.com/repos/dzivalli/qna/events","assignees_url":"https://api.github.com/repos/dzivalli/qna/assignees{/user}","branches_url":"https://api.github.com/repos/dzivalli/qna/branches{/branch}","tags_url":"https://api.github.com/repos/dzivalli/qna/tags","blobs_url":"https://api.github.com/repos/dzivalli/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dzivalli/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dzivalli/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/dzivalli/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dzivalli/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/dzivalli/qna/languages","stargazers_url":"https://api.github.com/repos/dzivalli/qna/stargazers","contributors_url":"https://api.github.com/repos/dzivalli/qna/contributors","subscribers_url":"https://api.github.com/repos/dzivalli/qna/subscribers","subscription_url":"https://api.github.com/repos/dzivalli/qna/subscription","commits_url":"https://api.github.com/repos/dzivalli/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/dzivalli/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/dzivalli/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/dzivalli/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/dzivalli/qna/contents/{+path}","compare_url":"https://api.github.com/repos/dzivalli/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dzivalli/qna/merges","archive_url":"https://api.github.com/repos/dzivalli/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dzivalli/qna/downloads","issues_url":"https://api.github.com/repos/dzivalli/qna/issues{/number}","pulls_url":"https://api.github.com/repos/dzivalli/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/dzivalli/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/dzivalli/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dzivalli/qna/labels{/name}","releases_url":"https://api.github.com/repos/dzivalli/qna/releases{/id}","created_at":"2015-03-09T13:35:46Z","updated_at":"2015-03-14T11:20:35Z","pushed_at":"2015-03-18T16:24:54Z","git_url":"git://github.com/dzivalli/qna.git","ssh_url":"git@github.com:dzivalli/qna.git","clone_url":"https://github.com/dzivalli/qna.git","svn_url":"https://github.com/dzivalli/qna","homepage":null,"size":180,"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/dzivalli/qna/pulls/3"},"html":{"href":"https://github.com/dzivalli/qna/pull/3"},"issue":{"href":"https://api.github.com/repos/dzivalli/qna/issues/3"},"comments":{"href":"https://api.github.com/repos/dzivalli/qna/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/dzivalli/qna/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/dzivalli/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dzivalli/qna/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/dzivalli/qna/statuses/ee4c3988536626ed8186ed5caa198722f19a8b74"}}}}