{"action":"created","comment":{"url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/23187037","id":23187037,"diff_hunk":"@@ -0,0 +1,21 @@\n+require \"rails_helper\"\n+\n+RSpec.describe Card, type: :model do\n+  test_card = Card.create(original_text: \"Тест\",\n+                          translated_text: \"test \")\n+\n+  it \"checks for correct translation without capitalization,\n+  leading and trailing spaces\" do\n+    expect(test_card.review(\" tESt   \")).to eql true\n+  end\n+\n+  it \"checks for correct translation\" do\n+    expect(test_card.review(\"not test\")).to eql false\n+  end\n+\n+  it \"moves the review date if answer is correct 3 days from today\" do\n+    test_card.review_date = nil","path":"spec/models/card_spec.rb","position":17,"original_position":17,"commit_id":"4dbef99334df25439b152d3d6a3aed2a2d47bd89","original_commit_id":"4dbef99334df25439b152d3d6a3aed2a2d47bd89","user":{"login":"Fodoj","id":78866,"avatar_url":"https://avatars.githubusercontent.com/u/78866?v=3","gravatar_id":"","url":"https://api.github.com/users/Fodoj","html_url":"https://github.com/Fodoj","followers_url":"https://api.github.com/users/Fodoj/followers","following_url":"https://api.github.com/users/Fodoj/following{/other_user}","gists_url":"https://api.github.com/users/Fodoj/gists{/gist_id}","starred_url":"https://api.github.com/users/Fodoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fodoj/subscriptions","organizations_url":"https://api.github.com/users/Fodoj/orgs","repos_url":"https://api.github.com/users/Fodoj/repos","events_url":"https://api.github.com/users/Fodoj/events{/privacy}","received_events_url":"https://api.github.com/users/Fodoj/received_events","type":"User","site_admin":false},"body":"так проверяй `review_date + 3.days` а не `Date.today + 3.days`","created_at":"2015-01-19T21:09:15Z","updated_at":"2015-01-19T21:09:15Z","html_url":"https://github.com/bvanyushin/cardsharper/pull/5#discussion_r23187037","pull_request_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/23187037"},"html":{"href":"https://github.com/bvanyushin/cardsharper/pull/5#discussion_r23187037"},"pull_request":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/5","id":27613736,"html_url":"https://github.com/bvanyushin/cardsharper/pull/5","diff_url":"https://github.com/bvanyushin/cardsharper/pull/5.diff","patch_url":"https://github.com/bvanyushin/cardsharper/pull/5.patch","issue_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/5","number":5,"state":"open","locked":false,"title":"Fifth task","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-19T15:20:17Z","updated_at":"2015-01-19T21:09:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0283973bae7a119dbddc63890b3913d6acc25a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/5/commits","review_comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/5/comments","review_comment_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/5/comments","statuses_url":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/4dbef99334df25439b152d3d6a3aed2a2d47bd89","head":{"label":"bvanyushin:fifth-task","ref":"fifth-task","sha":"4dbef99334df25439b152d3d6a3aed2a2d47bd89","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"repo":{"id":29139550,"name":"cardsharper","full_name":"bvanyushin/cardsharper","owner":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bvanyushin/cardsharper","description":"","fork":false,"url":"https://api.github.com/repos/bvanyushin/cardsharper","forks_url":"https://api.github.com/repos/bvanyushin/cardsharper/forks","keys_url":"https://api.github.com/repos/bvanyushin/cardsharper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bvanyushin/cardsharper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bvanyushin/cardsharper/teams","hooks_url":"https://api.github.com/repos/bvanyushin/cardsharper/hooks","issue_events_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/events{/number}","events_url":"https://api.github.com/repos/bvanyushin/cardsharper/events","assignees_url":"https://api.github.com/repos/bvanyushin/cardsharper/assignees{/user}","branches_url":"https://api.github.com/repos/bvanyushin/cardsharper/branches{/branch}","tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/tags","blobs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/refs{/sha}","trees_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/{sha}","languages_url":"https://api.github.com/repos/bvanyushin/cardsharper/languages","stargazers_url":"https://api.github.com/repos/bvanyushin/cardsharper/stargazers","contributors_url":"https://api.github.com/repos/bvanyushin/cardsharper/contributors","subscribers_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscribers","subscription_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscription","commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/commits{/sha}","git_commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/commits{/sha}","comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/comments{/number}","issue_comment_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/comments/{number}","contents_url":"https://api.github.com/repos/bvanyushin/cardsharper/contents/{+path}","compare_url":"https://api.github.com/repos/bvanyushin/cardsharper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bvanyushin/cardsharper/merges","archive_url":"https://api.github.com/repos/bvanyushin/cardsharper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bvanyushin/cardsharper/downloads","issues_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues{/number}","pulls_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls{/number}","milestones_url":"https://api.github.com/repos/bvanyushin/cardsharper/milestones{/number}","notifications_url":"https://api.github.com/repos/bvanyushin/cardsharper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bvanyushin/cardsharper/labels{/name}","releases_url":"https://api.github.com/repos/bvanyushin/cardsharper/releases{/id}","created_at":"2015-01-12T14:37:00Z","updated_at":"2015-01-19T13:40:25Z","pushed_at":"2015-01-19T15:30:29Z","git_url":"git://github.com/bvanyushin/cardsharper.git","ssh_url":"git@github.com:bvanyushin/cardsharper.git","clone_url":"https://github.com/bvanyushin/cardsharper.git","svn_url":"https://github.com/bvanyushin/cardsharper","homepage":null,"size":556,"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":"bvanyushin:master","ref":"master","sha":"54333ed3036790d35a08601cda824fb8e61dc733","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"repo":{"id":29139550,"name":"cardsharper","full_name":"bvanyushin/cardsharper","owner":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bvanyushin/cardsharper","description":"","fork":false,"url":"https://api.github.com/repos/bvanyushin/cardsharper","forks_url":"https://api.github.com/repos/bvanyushin/cardsharper/forks","keys_url":"https://api.github.com/repos/bvanyushin/cardsharper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bvanyushin/cardsharper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bvanyushin/cardsharper/teams","hooks_url":"https://api.github.com/repos/bvanyushin/cardsharper/hooks","issue_events_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/events{/number}","events_url":"https://api.github.com/repos/bvanyushin/cardsharper/events","assignees_url":"https://api.github.com/repos/bvanyushin/cardsharper/assignees{/user}","branches_url":"https://api.github.com/repos/bvanyushin/cardsharper/branches{/branch}","tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/tags","blobs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/refs{/sha}","trees_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/{sha}","languages_url":"https://api.github.com/repos/bvanyushin/cardsharper/languages","stargazers_url":"https://api.github.com/repos/bvanyushin/cardsharper/stargazers","contributors_url":"https://api.github.com/repos/bvanyushin/cardsharper/contributors","subscribers_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscribers","subscription_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscription","commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/commits{/sha}","git_commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/commits{/sha}","comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/comments{/number}","issue_comment_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/comments/{number}","contents_url":"https://api.github.com/repos/bvanyushin/cardsharper/contents/{+path}","compare_url":"https://api.github.com/repos/bvanyushin/cardsharper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bvanyushin/cardsharper/merges","archive_url":"https://api.github.com/repos/bvanyushin/cardsharper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bvanyushin/cardsharper/downloads","issues_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues{/number}","pulls_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls{/number}","milestones_url":"https://api.github.com/repos/bvanyushin/cardsharper/milestones{/number}","notifications_url":"https://api.github.com/repos/bvanyushin/cardsharper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bvanyushin/cardsharper/labels{/name}","releases_url":"https://api.github.com/repos/bvanyushin/cardsharper/releases{/id}","created_at":"2015-01-12T14:37:00Z","updated_at":"2015-01-19T13:40:25Z","pushed_at":"2015-01-19T15:30:29Z","git_url":"git://github.com/bvanyushin/cardsharper.git","ssh_url":"git@github.com:bvanyushin/cardsharper.git","clone_url":"https://github.com/bvanyushin/cardsharper.git","svn_url":"https://github.com/bvanyushin/cardsharper","homepage":null,"size":556,"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/bvanyushin/cardsharper/pulls/5"},"html":{"href":"https://github.com/bvanyushin/cardsharper/pull/5"},"issue":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/issues/5"},"comments":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/4dbef99334df25439b152d3d6a3aed2a2d47bd89"}}}}