{"action":"created","comment":{"url":"https://api.github.com/repos/Keman/card_app/pulls/comments/41138597","id":41138597,"diff_hunk":"@@ -25,9 +23,7 @@\n     end\n \n     it \"should set right default review date\" do\n-      user = User.create\n-      card = Card.create(original_text: \"Test\", translated_text: \"Тест\", user_id: user.id)\n-\n+      card = Card.create(original_text: \"Test\", translated_text: \"Тест\", user_id: 0)","path":"spec/models/card_spec.rb","position":18,"original_position":18,"commit_id":"316daddec6fcfc9570d00beac8ad17327f67e1d7","original_commit_id":"87accad46e31cc66ebe2b99288595052db8af8f6","user":{"login":"Keman","id":686602,"avatar_url":"https://avatars.githubusercontent.com/u/686602?v=3","gravatar_id":"","url":"https://api.github.com/users/Keman","html_url":"https://github.com/Keman","followers_url":"https://api.github.com/users/Keman/followers","following_url":"https://api.github.com/users/Keman/following{/other_user}","gists_url":"https://api.github.com/users/Keman/gists{/gist_id}","starred_url":"https://api.github.com/users/Keman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keman/subscriptions","organizations_url":"https://api.github.com/users/Keman/orgs","repos_url":"https://api.github.com/users/Keman/repos","events_url":"https://api.github.com/users/Keman/events{/privacy}","received_events_url":"https://api.github.com/users/Keman/received_events","type":"User","site_admin":false},"body":"А по другому не получается. Тут нужно карточку создать, но без пользовательского ID она валидаций не пройдет. Факторией создать не вариант т.к. тогда почему-то не работает Timecop, а без него время у карточки записывается без учета UTC и в итоге получается провальный тест. ","created_at":"2015-10-05T12:41:20Z","updated_at":"2015-10-05T12:41:20Z","html_url":"https://github.com/Keman/card_app/pull/9#discussion_r41138597","pull_request_url":"https://api.github.com/repos/Keman/card_app/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/Keman/card_app/pulls/comments/41138597"},"html":{"href":"https://github.com/Keman/card_app/pull/9#discussion_r41138597"},"pull_request":{"href":"https://api.github.com/repos/Keman/card_app/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/Keman/card_app/pulls/9","id":46769929,"html_url":"https://github.com/Keman/card_app/pull/9","diff_url":"https://github.com/Keman/card_app/pull/9.diff","patch_url":"https://github.com/Keman/card_app/pull/9.patch","issue_url":"https://api.github.com/repos/Keman/card_app/issues/9","number":9,"state":"open","locked":false,"title":"Sorcery ON!","user":{"login":"Keman","id":686602,"avatar_url":"https://avatars.githubusercontent.com/u/686602?v=3","gravatar_id":"","url":"https://api.github.com/users/Keman","html_url":"https://github.com/Keman","followers_url":"https://api.github.com/users/Keman/followers","following_url":"https://api.github.com/users/Keman/following{/other_user}","gists_url":"https://api.github.com/users/Keman/gists{/gist_id}","starred_url":"https://api.github.com/users/Keman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keman/subscriptions","organizations_url":"https://api.github.com/users/Keman/orgs","repos_url":"https://api.github.com/users/Keman/repos","events_url":"https://api.github.com/users/Keman/events{/privacy}","received_events_url":"https://api.github.com/users/Keman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-05T11:33:02Z","updated_at":"2015-10-05T12:41:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"356c7003d64a6ba1cde0ffc19f474c3c5662661b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Keman/card_app/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Keman/card_app/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Keman/card_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Keman/card_app/issues/9/comments","statuses_url":"https://api.github.com/repos/Keman/card_app/statuses/316daddec6fcfc9570d00beac8ad17327f67e1d7","head":{"label":"Keman:task-9","ref":"task-9","sha":"316daddec6fcfc9570d00beac8ad17327f67e1d7","user":{"login":"Keman","id":686602,"avatar_url":"https://avatars.githubusercontent.com/u/686602?v=3","gravatar_id":"","url":"https://api.github.com/users/Keman","html_url":"https://github.com/Keman","followers_url":"https://api.github.com/users/Keman/followers","following_url":"https://api.github.com/users/Keman/following{/other_user}","gists_url":"https://api.github.com/users/Keman/gists{/gist_id}","starred_url":"https://api.github.com/users/Keman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keman/subscriptions","organizations_url":"https://api.github.com/users/Keman/orgs","repos_url":"https://api.github.com/users/Keman/repos","events_url":"https://api.github.com/users/Keman/events{/privacy}","received_events_url":"https://api.github.com/users/Keman/received_events","type":"User","site_admin":false},"repo":{"id":37678950,"name":"card_app","full_name":"Keman/card_app","owner":{"login":"Keman","id":686602,"avatar_url":"https://avatars.githubusercontent.com/u/686602?v=3","gravatar_id":"","url":"https://api.github.com/users/Keman","html_url":"https://github.com/Keman","followers_url":"https://api.github.com/users/Keman/followers","following_url":"https://api.github.com/users/Keman/following{/other_user}","gists_url":"https://api.github.com/users/Keman/gists{/gist_id}","starred_url":"https://api.github.com/users/Keman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keman/subscriptions","organizations_url":"https://api.github.com/users/Keman/orgs","repos_url":"https://api.github.com/users/Keman/repos","events_url":"https://api.github.com/users/Keman/events{/privacy}","received_events_url":"https://api.github.com/users/Keman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Keman/card_app","description":"","fork":false,"url":"https://api.github.com/repos/Keman/card_app","forks_url":"https://api.github.com/repos/Keman/card_app/forks","keys_url":"https://api.github.com/repos/Keman/card_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Keman/card_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Keman/card_app/teams","hooks_url":"https://api.github.com/repos/Keman/card_app/hooks","issue_events_url":"https://api.github.com/repos/Keman/card_app/issues/events{/number}","events_url":"https://api.github.com/repos/Keman/card_app/events","assignees_url":"https://api.github.com/repos/Keman/card_app/assignees{/user}","branches_url":"https://api.github.com/repos/Keman/card_app/branches{/branch}","tags_url":"https://api.github.com/repos/Keman/card_app/tags","blobs_url":"https://api.github.com/repos/Keman/card_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Keman/card_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Keman/card_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Keman/card_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Keman/card_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Keman/card_app/languages","stargazers_url":"https://api.github.com/repos/Keman/card_app/stargazers","contributors_url":"https://api.github.com/repos/Keman/card_app/contributors","subscribers_url":"https://api.github.com/repos/Keman/card_app/subscribers","subscription_url":"https://api.github.com/repos/Keman/card_app/subscription","commits_url":"https://api.github.com/repos/Keman/card_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Keman/card_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Keman/card_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Keman/card_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Keman/card_app/contents/{+path}","compare_url":"https://api.github.com/repos/Keman/card_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Keman/card_app/merges","archive_url":"https://api.github.com/repos/Keman/card_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Keman/card_app/downloads","issues_url":"https://api.github.com/repos/Keman/card_app/issues{/number}","pulls_url":"https://api.github.com/repos/Keman/card_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Keman/card_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Keman/card_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Keman/card_app/labels{/name}","releases_url":"https://api.github.com/repos/Keman/card_app/releases{/id}","created_at":"2015-06-18T19:03:46Z","updated_at":"2015-06-23T11:42:00Z","pushed_at":"2015-10-05T11:50:24Z","git_url":"git://github.com/Keman/card_app.git","ssh_url":"git@github.com:Keman/card_app.git","clone_url":"https://github.com/Keman/card_app.git","svn_url":"https://github.com/Keman/card_app","homepage":null,"size":436,"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":"Keman:master","ref":"master","sha":"7889fa2018a7b49b24a5162932153725a49e980f","user":{"login":"Keman","id":686602,"avatar_url":"https://avatars.githubusercontent.com/u/686602?v=3","gravatar_id":"","url":"https://api.github.com/users/Keman","html_url":"https://github.com/Keman","followers_url":"https://api.github.com/users/Keman/followers","following_url":"https://api.github.com/users/Keman/following{/other_user}","gists_url":"https://api.github.com/users/Keman/gists{/gist_id}","starred_url":"https://api.github.com/users/Keman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keman/subscriptions","organizations_url":"https://api.github.com/users/Keman/orgs","repos_url":"https://api.github.com/users/Keman/repos","events_url":"https://api.github.com/users/Keman/events{/privacy}","received_events_url":"https://api.github.com/users/Keman/received_events","type":"User","site_admin":false},"repo":{"id":37678950,"name":"card_app","full_name":"Keman/card_app","owner":{"login":"Keman","id":686602,"avatar_url":"https://avatars.githubusercontent.com/u/686602?v=3","gravatar_id":"","url":"https://api.github.com/users/Keman","html_url":"https://github.com/Keman","followers_url":"https://api.github.com/users/Keman/followers","following_url":"https://api.github.com/users/Keman/following{/other_user}","gists_url":"https://api.github.com/users/Keman/gists{/gist_id}","starred_url":"https://api.github.com/users/Keman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keman/subscriptions","organizations_url":"https://api.github.com/users/Keman/orgs","repos_url":"https://api.github.com/users/Keman/repos","events_url":"https://api.github.com/users/Keman/events{/privacy}","received_events_url":"https://api.github.com/users/Keman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Keman/card_app","description":"","fork":false,"url":"https://api.github.com/repos/Keman/card_app","forks_url":"https://api.github.com/repos/Keman/card_app/forks","keys_url":"https://api.github.com/repos/Keman/card_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Keman/card_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Keman/card_app/teams","hooks_url":"https://api.github.com/repos/Keman/card_app/hooks","issue_events_url":"https://api.github.com/repos/Keman/card_app/issues/events{/number}","events_url":"https://api.github.com/repos/Keman/card_app/events","assignees_url":"https://api.github.com/repos/Keman/card_app/assignees{/user}","branches_url":"https://api.github.com/repos/Keman/card_app/branches{/branch}","tags_url":"https://api.github.com/repos/Keman/card_app/tags","blobs_url":"https://api.github.com/repos/Keman/card_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Keman/card_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Keman/card_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Keman/card_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Keman/card_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Keman/card_app/languages","stargazers_url":"https://api.github.com/repos/Keman/card_app/stargazers","contributors_url":"https://api.github.com/repos/Keman/card_app/contributors","subscribers_url":"https://api.github.com/repos/Keman/card_app/subscribers","subscription_url":"https://api.github.com/repos/Keman/card_app/subscription","commits_url":"https://api.github.com/repos/Keman/card_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Keman/card_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Keman/card_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Keman/card_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Keman/card_app/contents/{+path}","compare_url":"https://api.github.com/repos/Keman/card_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Keman/card_app/merges","archive_url":"https://api.github.com/repos/Keman/card_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Keman/card_app/downloads","issues_url":"https://api.github.com/repos/Keman/card_app/issues{/number}","pulls_url":"https://api.github.com/repos/Keman/card_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Keman/card_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Keman/card_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Keman/card_app/labels{/name}","releases_url":"https://api.github.com/repos/Keman/card_app/releases{/id}","created_at":"2015-06-18T19:03:46Z","updated_at":"2015-06-23T11:42:00Z","pushed_at":"2015-10-05T11:50:24Z","git_url":"git://github.com/Keman/card_app.git","ssh_url":"git@github.com:Keman/card_app.git","clone_url":"https://github.com/Keman/card_app.git","svn_url":"https://github.com/Keman/card_app","homepage":null,"size":436,"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/Keman/card_app/pulls/9"},"html":{"href":"https://github.com/Keman/card_app/pull/9"},"issue":{"href":"https://api.github.com/repos/Keman/card_app/issues/9"},"comments":{"href":"https://api.github.com/repos/Keman/card_app/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Keman/card_app/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Keman/card_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Keman/card_app/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Keman/card_app/statuses/316daddec6fcfc9570d00beac8ad17327f67e1d7"}}}}