{"action":"created","comment":{"url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/comments/75346128","id":75346128,"diff_hunk":"@@ -44,15 +45,38 @@\n     expect(card.errors[:original_text]).to include(\"Words match\")\n   end\n \n-  it \"updates the review date\" do\n-    card = Card.create(\n-      original_text: \"Beer\",\n-      translated_text: \"beer\",\n-      review_date: Date.today,\n-      user: user,\n-      deck: deck\n-    )\n-    card.update_date\n-    expect(card.review_date).to eq Date.today + 3\n+  describe '#increase_count' do\n+    it 'will increase a revisions number by 1' do\n+      card.update(attempts: 3, revisions: 0)\n+      card.increase_count\n+      expect(card.revisions).to eq 1\n+      card.update(attempts: 1, revisions: 0)\n+      card.increase_count\n+      expect(card.attempts).to eq 3\n+    end\n+  end\n+\n+  describe '#decrease_count' do\n+    it 'will decrease an attempts number by 1' do\n+      card.update(attempts: 3, revisions: 0)\n+      card.decrease_count\n+      expect(card.attempts).to eq 2\n+      card.update(attempts: 1, revisions: 1)\n+      card.decrease_count\n+      expect(card.revisions).to eq 0\n+      card.update(attempts: 1, revisions: 1)\n+      card.decrease_count\n+      expect(card.attempts).to eq 3\n+    end\n+  end\n+  describe '#set_review_date' do\n+    keys = [0,1,2,3,4,5,6]","path":"spec/models/card_spec.rb","position":51,"original_position":51,"commit_id":"7512ac4711bb2402f7a4280f105caa4faee662db","original_commit_id":"7512ac4711bb2402f7a4280f105caa4faee662db","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Space missing after comma.","created_at":"2016-08-18T16:56:38Z","updated_at":"2016-08-18T16:56:38Z","html_url":"https://github.com/olegnikitashin/flashcards/pull/13#discussion_r75346128","pull_request_url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/comments/75346128"},"html":{"href":"https://github.com/olegnikitashin/flashcards/pull/13#discussion_r75346128"},"pull_request":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/13","id":81799448,"html_url":"https://github.com/olegnikitashin/flashcards/pull/13","diff_url":"https://github.com/olegnikitashin/flashcards/pull/13.diff","patch_url":"https://github.com/olegnikitashin/flashcards/pull/13.patch","issue_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues/13","number":13,"state":"open","locked":false,"title":"Add Leitner system to Cards, tests","user":{"login":"olegnikitashin","id":17151670,"avatar_url":"https://avatars.githubusercontent.com/u/17151670?v=3","gravatar_id":"","url":"https://api.github.com/users/olegnikitashin","html_url":"https://github.com/olegnikitashin","followers_url":"https://api.github.com/users/olegnikitashin/followers","following_url":"https://api.github.com/users/olegnikitashin/following{/other_user}","gists_url":"https://api.github.com/users/olegnikitashin/gists{/gist_id}","starred_url":"https://api.github.com/users/olegnikitashin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegnikitashin/subscriptions","organizations_url":"https://api.github.com/users/olegnikitashin/orgs","repos_url":"https://api.github.com/users/olegnikitashin/repos","events_url":"https://api.github.com/users/olegnikitashin/events{/privacy}","received_events_url":"https://api.github.com/users/olegnikitashin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-18T11:26:02Z","updated_at":"2016-08-18T16:56:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76609217f02f2369d73aa31582c90920c9632647","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/13/commits","review_comments_url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/13/comments","review_comment_url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues/13/comments","statuses_url":"https://api.github.com/repos/olegnikitashin/flashcards/statuses/7512ac4711bb2402f7a4280f105caa4faee662db","head":{"label":"olegnikitashin:task-thirteen","ref":"task-thirteen","sha":"7512ac4711bb2402f7a4280f105caa4faee662db","user":{"login":"olegnikitashin","id":17151670,"avatar_url":"https://avatars.githubusercontent.com/u/17151670?v=3","gravatar_id":"","url":"https://api.github.com/users/olegnikitashin","html_url":"https://github.com/olegnikitashin","followers_url":"https://api.github.com/users/olegnikitashin/followers","following_url":"https://api.github.com/users/olegnikitashin/following{/other_user}","gists_url":"https://api.github.com/users/olegnikitashin/gists{/gist_id}","starred_url":"https://api.github.com/users/olegnikitashin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegnikitashin/subscriptions","organizations_url":"https://api.github.com/users/olegnikitashin/orgs","repos_url":"https://api.github.com/users/olegnikitashin/repos","events_url":"https://api.github.com/users/olegnikitashin/events{/privacy}","received_events_url":"https://api.github.com/users/olegnikitashin/received_events","type":"User","site_admin":false},"repo":{"id":64682100,"name":"flashcards","full_name":"olegnikitashin/flashcards","owner":{"login":"olegnikitashin","id":17151670,"avatar_url":"https://avatars.githubusercontent.com/u/17151670?v=3","gravatar_id":"","url":"https://api.github.com/users/olegnikitashin","html_url":"https://github.com/olegnikitashin","followers_url":"https://api.github.com/users/olegnikitashin/followers","following_url":"https://api.github.com/users/olegnikitashin/following{/other_user}","gists_url":"https://api.github.com/users/olegnikitashin/gists{/gist_id}","starred_url":"https://api.github.com/users/olegnikitashin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegnikitashin/subscriptions","organizations_url":"https://api.github.com/users/olegnikitashin/orgs","repos_url":"https://api.github.com/users/olegnikitashin/repos","events_url":"https://api.github.com/users/olegnikitashin/events{/privacy}","received_events_url":"https://api.github.com/users/olegnikitashin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olegnikitashin/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/olegnikitashin/flashcards","forks_url":"https://api.github.com/repos/olegnikitashin/flashcards/forks","keys_url":"https://api.github.com/repos/olegnikitashin/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olegnikitashin/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olegnikitashin/flashcards/teams","hooks_url":"https://api.github.com/repos/olegnikitashin/flashcards/hooks","issue_events_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/olegnikitashin/flashcards/events","assignees_url":"https://api.github.com/repos/olegnikitashin/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/olegnikitashin/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/olegnikitashin/flashcards/tags","blobs_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olegnikitashin/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/olegnikitashin/flashcards/languages","stargazers_url":"https://api.github.com/repos/olegnikitashin/flashcards/stargazers","contributors_url":"https://api.github.com/repos/olegnikitashin/flashcards/contributors","subscribers_url":"https://api.github.com/repos/olegnikitashin/flashcards/subscribers","subscription_url":"https://api.github.com/repos/olegnikitashin/flashcards/subscription","commits_url":"https://api.github.com/repos/olegnikitashin/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/olegnikitashin/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/olegnikitashin/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/olegnikitashin/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olegnikitashin/flashcards/merges","archive_url":"https://api.github.com/repos/olegnikitashin/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olegnikitashin/flashcards/downloads","issues_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/olegnikitashin/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/olegnikitashin/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olegnikitashin/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/olegnikitashin/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/olegnikitashin/flashcards/deployments","created_at":"2016-08-01T16:11:01Z","updated_at":"2016-08-01T17:32:00Z","pushed_at":"2016-08-18T16:56:30Z","git_url":"git://github.com/olegnikitashin/flashcards.git","ssh_url":"git@github.com:olegnikitashin/flashcards.git","clone_url":"https://github.com/olegnikitashin/flashcards.git","svn_url":"https://github.com/olegnikitashin/flashcards","homepage":null,"size":1379,"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":"olegnikitashin:master","ref":"master","sha":"9be0726c3ace7226ae4387a9e0a1bde0ace3bc82","user":{"login":"olegnikitashin","id":17151670,"avatar_url":"https://avatars.githubusercontent.com/u/17151670?v=3","gravatar_id":"","url":"https://api.github.com/users/olegnikitashin","html_url":"https://github.com/olegnikitashin","followers_url":"https://api.github.com/users/olegnikitashin/followers","following_url":"https://api.github.com/users/olegnikitashin/following{/other_user}","gists_url":"https://api.github.com/users/olegnikitashin/gists{/gist_id}","starred_url":"https://api.github.com/users/olegnikitashin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegnikitashin/subscriptions","organizations_url":"https://api.github.com/users/olegnikitashin/orgs","repos_url":"https://api.github.com/users/olegnikitashin/repos","events_url":"https://api.github.com/users/olegnikitashin/events{/privacy}","received_events_url":"https://api.github.com/users/olegnikitashin/received_events","type":"User","site_admin":false},"repo":{"id":64682100,"name":"flashcards","full_name":"olegnikitashin/flashcards","owner":{"login":"olegnikitashin","id":17151670,"avatar_url":"https://avatars.githubusercontent.com/u/17151670?v=3","gravatar_id":"","url":"https://api.github.com/users/olegnikitashin","html_url":"https://github.com/olegnikitashin","followers_url":"https://api.github.com/users/olegnikitashin/followers","following_url":"https://api.github.com/users/olegnikitashin/following{/other_user}","gists_url":"https://api.github.com/users/olegnikitashin/gists{/gist_id}","starred_url":"https://api.github.com/users/olegnikitashin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegnikitashin/subscriptions","organizations_url":"https://api.github.com/users/olegnikitashin/orgs","repos_url":"https://api.github.com/users/olegnikitashin/repos","events_url":"https://api.github.com/users/olegnikitashin/events{/privacy}","received_events_url":"https://api.github.com/users/olegnikitashin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olegnikitashin/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/olegnikitashin/flashcards","forks_url":"https://api.github.com/repos/olegnikitashin/flashcards/forks","keys_url":"https://api.github.com/repos/olegnikitashin/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olegnikitashin/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olegnikitashin/flashcards/teams","hooks_url":"https://api.github.com/repos/olegnikitashin/flashcards/hooks","issue_events_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/olegnikitashin/flashcards/events","assignees_url":"https://api.github.com/repos/olegnikitashin/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/olegnikitashin/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/olegnikitashin/flashcards/tags","blobs_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olegnikitashin/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/olegnikitashin/flashcards/languages","stargazers_url":"https://api.github.com/repos/olegnikitashin/flashcards/stargazers","contributors_url":"https://api.github.com/repos/olegnikitashin/flashcards/contributors","subscribers_url":"https://api.github.com/repos/olegnikitashin/flashcards/subscribers","subscription_url":"https://api.github.com/repos/olegnikitashin/flashcards/subscription","commits_url":"https://api.github.com/repos/olegnikitashin/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/olegnikitashin/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/olegnikitashin/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/olegnikitashin/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/olegnikitashin/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olegnikitashin/flashcards/merges","archive_url":"https://api.github.com/repos/olegnikitashin/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olegnikitashin/flashcards/downloads","issues_url":"https://api.github.com/repos/olegnikitashin/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/olegnikitashin/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/olegnikitashin/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/olegnikitashin/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olegnikitashin/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/olegnikitashin/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/olegnikitashin/flashcards/deployments","created_at":"2016-08-01T16:11:01Z","updated_at":"2016-08-01T17:32:00Z","pushed_at":"2016-08-18T16:56:30Z","git_url":"git://github.com/olegnikitashin/flashcards.git","ssh_url":"git@github.com:olegnikitashin/flashcards.git","clone_url":"https://github.com/olegnikitashin/flashcards.git","svn_url":"https://github.com/olegnikitashin/flashcards","homepage":null,"size":1379,"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/olegnikitashin/flashcards/pulls/13"},"html":{"href":"https://github.com/olegnikitashin/flashcards/pull/13"},"issue":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/issues/13"},"comments":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/olegnikitashin/flashcards/statuses/7512ac4711bb2402f7a4280f105caa4faee662db"}}}}
{"actor":{"display_login":"houndci-bot"}}