GitHub PullRequestReviewCommentEvent at 2014-11-24 02:56:50
Repository: flashcard
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Frylock13/flashcard/pulls/comments/20771486","id":20771486,"diff_hunk":"@@ -2,25 +2,73 @@\n \n describe Card do\n   before :each do\n-    @pack = create(:pack)\n-    @card = create(:card)\n+    @pack = create(:pack) # factories/packs.rb\n+    @card = create(:card) # factories/cards.rb\n   end\n \n-  it \"check the right answer\" do\n+  it \"checks the right answer\" do\n     expect(@card.check_answer(\"яблоко\")).to be true\n   end\n \n-  it \"check the right answer uppercase\" do\n+  it \"checks the right answer uppercase\" do\n     expect(@card.check_answer(\"ЯБЛОКО\")).to be true\n   end\n \n-  it \"check date changing if answer is right\" do\n+  it \"checks date changing if answer is wrong\" do\n+    @card.check_answer(\"вишня\")\n+    expect(@card.review_date).to eq Date.today\n+  end\n+\n+  it \"checks change right_repetition_count after first right answer\" do\n+    expect { @card.check_answer(\"яблоко\") }.to change{ @card.right_repetition_count }.from(0).to(1)","path":"spec/models/card_spec.rb","position":27,"original_position":27,"commit_id":"561ba41f642152bf683356376d3b4f26c85a12b5","original_commit_id":"561ba41f642152bf683356376d3b4f26c85a12b5","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. [99/80]<br>Space missing to the left of {.","created_at":"2014-11-24T02:56:50Z","updated_at":"2014-11-24T02:56:50Z","html_url":"https://github.com/Frylock13/flashcard/pull/17#discussion_r20771486","pull_request_url":"https://api.github.com/repos/Frylock13/flashcard/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/Frylock13/flashcard/pulls/comments/20771486"},"html":{"href":"https://github.com/Frylock13/flashcard/pull/17#discussion_r20771486"},"pull_request":{"href":"https://api.github.com/repos/Frylock13/flashcard/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/Frylock13/flashcard/pulls/17","id":24885309,"html_url":"https://github.com/Frylock13/flashcard/pull/17","diff_url":"https://github.com/Frylock13/flashcard/pull/17.diff","patch_url":"https://github.com/Frylock13/flashcard/pull/17.patch","issue_url":"https://api.github.com/repos/Frylock13/flashcard/issues/17","number":17,"state":"open","locked":false,"title":"Leitner","user":{"login":"Frylock13","id":9208395,"avatar_url":"https://avatars.githubusercontent.com/u/9208395?v=3","gravatar_id":"","url":"https://api.github.com/users/Frylock13","html_url":"https://github.com/Frylock13","followers_url":"https://api.github.com/users/Frylock13/followers","following_url":"https://api.github.com/users/Frylock13/following{/other_user}","gists_url":"https://api.github.com/users/Frylock13/gists{/gist_id}","starred_url":"https://api.github.com/users/Frylock13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frylock13/subscriptions","organizations_url":"https://api.github.com/users/Frylock13/orgs","repos_url":"https://api.github.com/users/Frylock13/repos","events_url":"https://api.github.com/users/Frylock13/events{/privacy}","received_events_url":"https://api.github.com/users/Frylock13/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-22T07:06:47Z","updated_at":"2014-11-24T02:56:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Frylock13/flashcard/pulls/17/commits","review_comments_url":"https://api.github.com/repos/Frylock13/flashcard/pulls/17/comments","review_comment_url":"https://api.github.com/repos/Frylock13/flashcard/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Frylock13/flashcard/issues/17/comments","statuses_url":"https://api.github.com/repos/Frylock13/flashcard/statuses/561ba41f642152bf683356376d3b4f26c85a12b5","head":{"label":"Frylock13:leitner","ref":"leitner","sha":"561ba41f642152bf683356376d3b4f26c85a12b5","user":{"login":"Frylock13","id":9208395,"avatar_url":"https://avatars.githubusercontent.com/u/9208395?v=3","gravatar_id":"","url":"https://api.github.com/users/Frylock13","html_url":"https://github.com/Frylock13","followers_url":"https://api.github.com/users/Frylock13/followers","following_url":"https://api.github.com/users/Frylock13/following{/other_user}","gists_url":"https://api.github.com/users/Frylock13/gists{/gist_id}","starred_url":"https://api.github.com/users/Frylock13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frylock13/subscriptions","organizations_url":"https://api.github.com/users/Frylock13/orgs","repos_url":"https://api.github.com/users/Frylock13/repos","events_url":"https://api.github.com/users/Frylock13/events{/privacy}","received_events_url":"https://api.github.com/users/Frylock13/received_events","type":"User","site_admin":false},"repo":{"id":25297930,"name":"flashcard","full_name":"Frylock13/flashcard","owner":{"login":"Frylock13","id":9208395,"avatar_url":"https://avatars.githubusercontent.com/u/9208395?v=3","gravatar_id":"","url":"https://api.github.com/users/Frylock13","html_url":"https://github.com/Frylock13","followers_url":"https://api.github.com/users/Frylock13/followers","following_url":"https://api.github.com/users/Frylock13/following{/other_user}","gists_url":"https://api.github.com/users/Frylock13/gists{/gist_id}","starred_url":"https://api.github.com/users/Frylock13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frylock13/subscriptions","organizations_url":"https://api.github.com/users/Frylock13/orgs","repos_url":"https://api.github.com/users/Frylock13/repos","events_url":"https://api.github.com/users/Frylock13/events{/privacy}","received_events_url":"https://api.github.com/users/Frylock13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Frylock13/flashcard","description":"","fork":false,"url":"https://api.github.com/repos/Frylock13/flashcard","forks_url":"https://api.github.com/repos/Frylock13/flashcard/forks","keys_url":"https://api.github.com/repos/Frylock13/flashcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Frylock13/flashcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Frylock13/flashcard/teams","hooks_url":"https://api.github.com/repos/Frylock13/flashcard/hooks","issue_events_url":"https://api.github.com/repos/Frylock13/flashcard/issues/events{/number}","events_url":"https://api.github.com/repos/Frylock13/flashcard/events","assignees_url":"https://api.github.com/repos/Frylock13/flashcard/assignees{/user}","branches_url":"https://api.github.com/repos/Frylock13/flashcard/branches{/branch}","tags_url":"https://api.github.com/repos/Frylock13/flashcard/tags","blobs_url":"https://api.github.com/repos/Frylock13/flashcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Frylock13/flashcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Frylock13/flashcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Frylock13/flashcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Frylock13/flashcard/statuses/{sha}","languages_url":"https://api.github.com/repos/Frylock13/flashcard/languages","stargazers_url":"https://api.github.com/repos/Frylock13/flashcard/stargazers","contributors_url":"https://api.github.com/repos/Frylock13/flashcard/contributors","subscribers_url":"https://api.github.com/repos/Frylock13/flashcard/subscribers","subscription_url":"https://api.github.com/repos/Frylock13/flashcard/subscription","commits_url":"https://api.github.com/repos/Frylock13/flashcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Frylock13/flashcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Frylock13/flashcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Frylock13/flashcard/issues/comments/{number}","contents_url":"https://api.github.com/repos/Frylock13/flashcard/contents/{+path}","compare_url":"https://api.github.com/repos/Frylock13/flashcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Frylock13/flashcard/merges","archive_url":"https://api.github.com/repos/Frylock13/flashcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Frylock13/flashcard/downloads","issues_url":"https://api.github.com/repos/Frylock13/flashcard/issues{/number}","pulls_url":"https://api.github.com/repos/Frylock13/flashcard/pulls{/number}","milestones_url":"https://api.github.com/repos/Frylock13/flashcard/milestones{/number}","notifications_url":"https://api.github.com/repos/Frylock13/flashcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Frylock13/flashcard/labels{/name}","releases_url":"https://api.github.com/repos/Frylock13/flashcard/releases{/id}","created_at":"2014-10-16T10:48:22Z","updated_at":"2014-11-22T21:52:07Z","pushed_at":"2014-11-24T02:56:46Z","git_url":"git://github.com/Frylock13/flashcard.git","ssh_url":"git@github.com:Frylock13/flashcard.git","clone_url":"https://github.com/Frylock13/flashcard.git","svn_url":"https://github.com/Frylock13/flashcard","homepage":"","size":1624,"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":"Frylock13:master","ref":"master","sha":"44b22289c923900c24c7fba0a02144b7a7bd89f3","user":{"login":"Frylock13","id":9208395,"avatar_url":"https://avatars.githubusercontent.com/u/9208395?v=3","gravatar_id":"","url":"https://api.github.com/users/Frylock13","html_url":"https://github.com/Frylock13","followers_url":"https://api.github.com/users/Frylock13/followers","following_url":"https://api.github.com/users/Frylock13/following{/other_user}","gists_url":"https://api.github.com/users/Frylock13/gists{/gist_id}","starred_url":"https://api.github.com/users/Frylock13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frylock13/subscriptions","organizations_url":"https://api.github.com/users/Frylock13/orgs","repos_url":"https://api.github.com/users/Frylock13/repos","events_url":"https://api.github.com/users/Frylock13/events{/privacy}","received_events_url":"https://api.github.com/users/Frylock13/received_events","type":"User","site_admin":false},"repo":{"id":25297930,"name":"flashcard","full_name":"Frylock13/flashcard","owner":{"login":"Frylock13","id":9208395,"avatar_url":"https://avatars.githubusercontent.com/u/9208395?v=3","gravatar_id":"","url":"https://api.github.com/users/Frylock13","html_url":"https://github.com/Frylock13","followers_url":"https://api.github.com/users/Frylock13/followers","following_url":"https://api.github.com/users/Frylock13/following{/other_user}","gists_url":"https://api.github.com/users/Frylock13/gists{/gist_id}","starred_url":"https://api.github.com/users/Frylock13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frylock13/subscriptions","organizations_url":"https://api.github.com/users/Frylock13/orgs","repos_url":"https://api.github.com/users/Frylock13/repos","events_url":"https://api.github.com/users/Frylock13/events{/privacy}","received_events_url":"https://api.github.com/users/Frylock13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Frylock13/flashcard","description":"","fork":false,"url":"https://api.github.com/repos/Frylock13/flashcard","forks_url":"https://api.github.com/repos/Frylock13/flashcard/forks","keys_url":"https://api.github.com/repos/Frylock13/flashcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Frylock13/flashcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Frylock13/flashcard/teams","hooks_url":"https://api.github.com/repos/Frylock13/flashcard/hooks","issue_events_url":"https://api.github.com/repos/Frylock13/flashcard/issues/events{/number}","events_url":"https://api.github.com/repos/Frylock13/flashcard/events","assignees_url":"https://api.github.com/repos/Frylock13/flashcard/assignees{/user}","branches_url":"https://api.github.com/repos/Frylock13/flashcard/branches{/branch}","tags_url":"https://api.github.com/repos/Frylock13/flashcard/tags","blobs_url":"https://api.github.com/repos/Frylock13/flashcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Frylock13/flashcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Frylock13/flashcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Frylock13/flashcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Frylock13/flashcard/statuses/{sha}","languages_url":"https://api.github.com/repos/Frylock13/flashcard/languages","stargazers_url":"https://api.github.com/repos/Frylock13/flashcard/stargazers","contributors_url":"https://api.github.com/repos/Frylock13/flashcard/contributors","subscribers_url":"https://api.github.com/repos/Frylock13/flashcard/subscribers","subscription_url":"https://api.github.com/repos/Frylock13/flashcard/subscription","commits_url":"https://api.github.com/repos/Frylock13/flashcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Frylock13/flashcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Frylock13/flashcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Frylock13/flashcard/issues/comments/{number}","contents_url":"https://api.github.com/repos/Frylock13/flashcard/contents/{+path}","compare_url":"https://api.github.com/repos/Frylock13/flashcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Frylock13/flashcard/merges","archive_url":"https://api.github.com/repos/Frylock13/flashcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Frylock13/flashcard/downloads","issues_url":"https://api.github.com/repos/Frylock13/flashcard/issues{/number}","pulls_url":"https://api.github.com/repos/Frylock13/flashcard/pulls{/number}","milestones_url":"https://api.github.com/repos/Frylock13/flashcard/milestones{/number}","notifications_url":"https://api.github.com/repos/Frylock13/flashcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Frylock13/flashcard/labels{/name}","releases_url":"https://api.github.com/repos/Frylock13/flashcard/releases{/id}","created_at":"2014-10-16T10:48:22Z","updated_at":"2014-11-22T21:52:07Z","pushed_at":"2014-11-24T02:56:46Z","git_url":"git://github.com/Frylock13/flashcard.git","ssh_url":"git@github.com:Frylock13/flashcard.git","clone_url":"https://github.com/Frylock13/flashcard.git","svn_url":"https://github.com/Frylock13/flashcard","homepage":"","size":1624,"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/Frylock13/flashcard/pulls/17"},"html":{"href":"https://github.com/Frylock13/flashcard/pull/17"},"issue":{"href":"https://api.github.com/repos/Frylock13/flashcard/issues/17"},"comments":{"href":"https://api.github.com/repos/Frylock13/flashcard/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/Frylock13/flashcard/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/Frylock13/flashcard/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Frylock13/flashcard/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/Frylock13/flashcard/statuses/561ba41f642152bf683356376d3b4f26c85a12b5"}}}}