{"action":"created","comment":{"url":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments/37529668","id":37529668,"diff_hunk":"@@ -0,0 +1,116 @@\n+require \"rails_helper\"\n+\n+describe SuperMemo do\n+  let(:object) { SuperMemo.new }\n+\n+  context \"calculate method\" do\n+    context \"with typos equal zero\" do\n+      it \"increases repetition\" do\n+        text = \"Sehenswürdigkeit\"\n+        typos = 0\n+        attempt = 0\n+        answer_time = \"12.0\"\n+        repetition = 6\n+        e_factor = 2.5\n+        results = object.calculate(text, typos, attempt, answer_time, repetition, e_factor)\n+        expect(results[:repetition]).to be > repetition\n+      end\n+\n+      it \"increases e-factor\" do\n+        text = \"Sehenswürdigkeit\"\n+        typos = 0\n+        attempt = 0\n+        answer_time = \"12.0\"\n+        repetition = 6\n+        e_factor = 2.5\n+        results = object.calculate(text, typos, attempt, answer_time, repetition, e_factor)\n+        expect(results[:e_factor]).to be > e_factor\n+      end\n+\n+      it \"returns success = true\" do\n+        text = \"Sehenswürdigkeit\"\n+        typos = 0\n+        attempt = 0\n+        answer_time = \"12.0\"\n+        repetition = 6\n+        e_factor = 2.5\n+        results = object.calculate(text, typos, attempt, answer_time, repetition, e_factor)","path":"spec/services/super_memo_spec.rb","position":37,"original_position":37,"commit_id":"332d4908e59761bf53772f701788ab95804a2f81","original_commit_id":"332d4908e59761bf53772f701788ab95804a2f81","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [91/80]","created_at":"2015-08-20T13:42:02Z","updated_at":"2015-08-20T13:42:02Z","html_url":"https://github.com/esaulkov/flashcards/pull/17#discussion_r37529668","pull_request_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments/37529668"},"html":{"href":"https://github.com/esaulkov/flashcards/pull/17#discussion_r37529668"},"pull_request":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/esaulkov/flashcards/pulls/17","id":42681852,"html_url":"https://github.com/esaulkov/flashcards/pull/17","diff_url":"https://github.com/esaulkov/flashcards/pull/17.diff","patch_url":"https://github.com/esaulkov/flashcards/pull/17.patch","issue_url":"https://api.github.com/repos/esaulkov/flashcards/issues/17","number":17,"state":"open","locked":false,"title":"Seventeenth task","user":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-18T10:13:43Z","updated_at":"2015-08-20T13:42:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"894bb3080a808ebee16623a8924d630d2e2313cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/17/commits","review_comments_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/17/comments","review_comment_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esaulkov/flashcards/issues/17/comments","statuses_url":"https://api.github.com/repos/esaulkov/flashcards/statuses/332d4908e59761bf53772f701788ab95804a2f81","head":{"label":"esaulkov:seventeenth-task","ref":"seventeenth-task","sha":"332d4908e59761bf53772f701788ab95804a2f81","user":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"repo":{"id":39287813,"name":"flashcards","full_name":"esaulkov/flashcards","owner":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esaulkov/flashcards","description":"Training project (Ruby on Rails)","fork":false,"url":"https://api.github.com/repos/esaulkov/flashcards","forks_url":"https://api.github.com/repos/esaulkov/flashcards/forks","keys_url":"https://api.github.com/repos/esaulkov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esaulkov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esaulkov/flashcards/teams","hooks_url":"https://api.github.com/repos/esaulkov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/esaulkov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/esaulkov/flashcards/events","assignees_url":"https://api.github.com/repos/esaulkov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/esaulkov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/esaulkov/flashcards/tags","blobs_url":"https://api.github.com/repos/esaulkov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esaulkov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esaulkov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/esaulkov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esaulkov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/esaulkov/flashcards/languages","stargazers_url":"https://api.github.com/repos/esaulkov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/esaulkov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/esaulkov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/esaulkov/flashcards/subscription","commits_url":"https://api.github.com/repos/esaulkov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/esaulkov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/esaulkov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/esaulkov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/esaulkov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/esaulkov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esaulkov/flashcards/merges","archive_url":"https://api.github.com/repos/esaulkov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esaulkov/flashcards/downloads","issues_url":"https://api.github.com/repos/esaulkov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/esaulkov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/esaulkov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/esaulkov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esaulkov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/esaulkov/flashcards/releases{/id}","created_at":"2015-07-18T05:28:51Z","updated_at":"2015-08-09T04:34:51Z","pushed_at":"2015-08-20T13:41:57Z","git_url":"git://github.com/esaulkov/flashcards.git","ssh_url":"git@github.com:esaulkov/flashcards.git","clone_url":"https://github.com/esaulkov/flashcards.git","svn_url":"https://github.com/esaulkov/flashcards","homepage":"http://guarded-dawn-4617.herokuapp.com","size":748,"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":"esaulkov:master","ref":"master","sha":"4cdce0766d6bd2f6b1de5ecfddf89e0e8cc11bba","user":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"repo":{"id":39287813,"name":"flashcards","full_name":"esaulkov/flashcards","owner":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esaulkov/flashcards","description":"Training project (Ruby on Rails)","fork":false,"url":"https://api.github.com/repos/esaulkov/flashcards","forks_url":"https://api.github.com/repos/esaulkov/flashcards/forks","keys_url":"https://api.github.com/repos/esaulkov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esaulkov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esaulkov/flashcards/teams","hooks_url":"https://api.github.com/repos/esaulkov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/esaulkov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/esaulkov/flashcards/events","assignees_url":"https://api.github.com/repos/esaulkov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/esaulkov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/esaulkov/flashcards/tags","blobs_url":"https://api.github.com/repos/esaulkov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esaulkov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esaulkov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/esaulkov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esaulkov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/esaulkov/flashcards/languages","stargazers_url":"https://api.github.com/repos/esaulkov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/esaulkov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/esaulkov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/esaulkov/flashcards/subscription","commits_url":"https://api.github.com/repos/esaulkov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/esaulkov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/esaulkov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/esaulkov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/esaulkov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/esaulkov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esaulkov/flashcards/merges","archive_url":"https://api.github.com/repos/esaulkov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esaulkov/flashcards/downloads","issues_url":"https://api.github.com/repos/esaulkov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/esaulkov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/esaulkov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/esaulkov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esaulkov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/esaulkov/flashcards/releases{/id}","created_at":"2015-07-18T05:28:51Z","updated_at":"2015-08-09T04:34:51Z","pushed_at":"2015-08-20T13:41:57Z","git_url":"git://github.com/esaulkov/flashcards.git","ssh_url":"git@github.com:esaulkov/flashcards.git","clone_url":"https://github.com/esaulkov/flashcards.git","svn_url":"https://github.com/esaulkov/flashcards","homepage":"http://guarded-dawn-4617.herokuapp.com","size":748,"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/esaulkov/flashcards/pulls/17"},"html":{"href":"https://github.com/esaulkov/flashcards/pull/17"},"issue":{"href":"https://api.github.com/repos/esaulkov/flashcards/issues/17"},"comments":{"href":"https://api.github.com/repos/esaulkov/flashcards/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/esaulkov/flashcards/statuses/332d4908e59761bf53772f701788ab95804a2f81"}}}}