{"action":"created","comment":{"url":"https://api.github.com/repos/fly49/flashcards/pulls/comments/218756890","pull_request_review_id":156760982,"id":218756890,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODc1Njg5MA==","diff_hunk":"@@ -0,0 +1,83 @@\n+require \"rails_helper\"\n+\n+describe Card do\n+  describe \"scope :ready\" do\n+    before do\n+      create(:card).update_attribute(:review_date, Date.today - 1)","path":"spec/models/card_spec.rb","position":6,"original_position":6,"commit_id":"599e2459bbc8bb3b2c075c13c0961f4efb299cc7","original_commit_id":"599e2459bbc8bb3b2c075c13c0961f4efb299cc7","user":{"login":"X1ting","id":8531110,"node_id":"MDQ6VXNlcjg1MzExMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/8531110?v=4","gravatar_id":"","url":"https://api.github.com/users/X1ting","html_url":"https://github.com/X1ting","followers_url":"https://api.github.com/users/X1ting/followers","following_url":"https://api.github.com/users/X1ting/following{/other_user}","gists_url":"https://api.github.com/users/X1ting/gists{/gist_id}","starred_url":"https://api.github.com/users/X1ting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/X1ting/subscriptions","organizations_url":"https://api.github.com/users/X1ting/orgs","repos_url":"https://api.github.com/users/X1ting/repos","events_url":"https://api.github.com/users/X1ting/events{/privacy}","received_events_url":"https://api.github.com/users/X1ting/received_events","type":"User","site_admin":false},"body":"you can use trait, to avoid this. ","created_at":"2018-09-19T10:52:49Z","updated_at":"2018-09-19T10:53:58Z","html_url":"https://github.com/fly49/flashcards/pull/6#discussion_r218756890","pull_request_url":"https://api.github.com/repos/fly49/flashcards/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/comments/218756890"},"html":{"href":"https://github.com/fly49/flashcards/pull/6#discussion_r218756890"},"pull_request":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/fly49/flashcards/pulls/6","id":216370996,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MzcwOTk2","html_url":"https://github.com/fly49/flashcards/pull/6","diff_url":"https://github.com/fly49/flashcards/pull/6.diff","patch_url":"https://github.com/fly49/flashcards/pull/6.patch","issue_url":"https://api.github.com/repos/fly49/flashcards/issues/6","number":6,"state":"open","locked":false,"title":"Card model testing","user":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-18T16:33:25Z","updated_at":"2018-09-19T10:53:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62e25ae4ae70375f28defd9c419e8bc7d2b596cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fly49/flashcards/pulls/6/commits","review_comments_url":"https://api.github.com/repos/fly49/flashcards/pulls/6/comments","review_comment_url":"https://api.github.com/repos/fly49/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fly49/flashcards/issues/6/comments","statuses_url":"https://api.github.com/repos/fly49/flashcards/statuses/599e2459bbc8bb3b2c075c13c0961f4efb299cc7","head":{"label":"fly49:card_model_testing","ref":"card_model_testing","sha":"599e2459bbc8bb3b2c075c13c0961f4efb299cc7","user":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"repo":{"id":147531465,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1MzE0NjU=","name":"flashcards","full_name":"fly49/flashcards","private":false,"owner":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"html_url":"https://github.com/fly49/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/fly49/flashcards","forks_url":"https://api.github.com/repos/fly49/flashcards/forks","keys_url":"https://api.github.com/repos/fly49/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fly49/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fly49/flashcards/teams","hooks_url":"https://api.github.com/repos/fly49/flashcards/hooks","issue_events_url":"https://api.github.com/repos/fly49/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/fly49/flashcards/events","assignees_url":"https://api.github.com/repos/fly49/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/fly49/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/fly49/flashcards/tags","blobs_url":"https://api.github.com/repos/fly49/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fly49/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fly49/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/fly49/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fly49/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/fly49/flashcards/languages","stargazers_url":"https://api.github.com/repos/fly49/flashcards/stargazers","contributors_url":"https://api.github.com/repos/fly49/flashcards/contributors","subscribers_url":"https://api.github.com/repos/fly49/flashcards/subscribers","subscription_url":"https://api.github.com/repos/fly49/flashcards/subscription","commits_url":"https://api.github.com/repos/fly49/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/fly49/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/fly49/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/fly49/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/fly49/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/fly49/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fly49/flashcards/merges","archive_url":"https://api.github.com/repos/fly49/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fly49/flashcards/downloads","issues_url":"https://api.github.com/repos/fly49/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/fly49/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/fly49/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/fly49/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fly49/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/fly49/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/fly49/flashcards/deployments","created_at":"2018-09-05T14:29:02Z","updated_at":"2018-09-18T11:45:37Z","pushed_at":"2018-09-19T09:38:47Z","git_url":"git://github.com/fly49/flashcards.git","ssh_url":"git@github.com:fly49/flashcards.git","clone_url":"https://github.com/fly49/flashcards.git","svn_url":"https://github.com/fly49/flashcards","homepage":null,"size":602,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"fly49:master","ref":"master","sha":"4952a6bca92b2fc764167bf355f22b1a6bf2b8b3","user":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"repo":{"id":147531465,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1MzE0NjU=","name":"flashcards","full_name":"fly49/flashcards","private":false,"owner":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"html_url":"https://github.com/fly49/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/fly49/flashcards","forks_url":"https://api.github.com/repos/fly49/flashcards/forks","keys_url":"https://api.github.com/repos/fly49/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fly49/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fly49/flashcards/teams","hooks_url":"https://api.github.com/repos/fly49/flashcards/hooks","issue_events_url":"https://api.github.com/repos/fly49/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/fly49/flashcards/events","assignees_url":"https://api.github.com/repos/fly49/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/fly49/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/fly49/flashcards/tags","blobs_url":"https://api.github.com/repos/fly49/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fly49/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fly49/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/fly49/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fly49/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/fly49/flashcards/languages","stargazers_url":"https://api.github.com/repos/fly49/flashcards/stargazers","contributors_url":"https://api.github.com/repos/fly49/flashcards/contributors","subscribers_url":"https://api.github.com/repos/fly49/flashcards/subscribers","subscription_url":"https://api.github.com/repos/fly49/flashcards/subscription","commits_url":"https://api.github.com/repos/fly49/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/fly49/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/fly49/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/fly49/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/fly49/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/fly49/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fly49/flashcards/merges","archive_url":"https://api.github.com/repos/fly49/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fly49/flashcards/downloads","issues_url":"https://api.github.com/repos/fly49/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/fly49/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/fly49/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/fly49/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fly49/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/fly49/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/fly49/flashcards/deployments","created_at":"2018-09-05T14:29:02Z","updated_at":"2018-09-18T11:45:37Z","pushed_at":"2018-09-19T09:38:47Z","git_url":"git://github.com/fly49/flashcards.git","ssh_url":"git@github.com:fly49/flashcards.git","clone_url":"https://github.com/fly49/flashcards.git","svn_url":"https://github.com/fly49/flashcards","homepage":null,"size":602,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/6"},"html":{"href":"https://github.com/fly49/flashcards/pull/6"},"issue":{"href":"https://api.github.com/repos/fly49/flashcards/issues/6"},"comments":{"href":"https://api.github.com/repos/fly49/flashcards/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/fly49/flashcards/statuses/599e2459bbc8bb3b2c075c13c0961f4efb299cc7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"X1ting"}}