{"action":"created","comment":{"url":"https://api.github.com/repos/mellhime/flashcards/pulls/comments/137204521","pull_request_review_id":60838757,"id":137204521,"diff_hunk":"@@ -104,15 +104,48 @@\n \n   describe \"delete links\" do\n \n-    let(:card) { create(:card) }\n-\n     before do\n+      create(:card)\n       visit cards_path\n     end\n \n-    it { should have_link('delete', href: card_path(card)) }\n+    it { should have_link('delete') }\n     it \"should be able to delete card\" do\n       expect{click_link('delete', match: :first)}.to change(Card, :count).by(-1)\n     end\n   end\n+\n+  describe \"check card translation\" do\n+\n+    let!(:card)  { create(:card)}\n+    let!(:second_card) { create(:card)}  \n+\n+    before do\n+      card.update_attributes(review_date: Date.today)\n+      second_card.update_attributes(review_date: Date.today)\n+      visit root_path\n+    end\n+    \n+    describe \"with valid translation\" do\n+\n+      before do\n+        fill_in :user_text, with: card.original_text\n+        click_button \"Check\"\n+      end\n+\n+      it { expect(page).to have_content('Правильно!') }\n+      it { expect(Card.can_be_reviewed.count).to eq(1) }\n+    end\n+\n+    describe \"with ivalid translation\" do\n+","path":"spec/features/card_pages_spec.rb","position":41,"original_position":41,"commit_id":"23cb657ab533b320b9c92176bf95dc52b1990e54","original_commit_id":"23cb657ab533b320b9c92176bf95dc52b1990e54","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.","created_at":"2017-09-06T08:37:13Z","updated_at":"2017-09-06T08:37:14Z","html_url":"https://github.com/mellhime/flashcards/pull/9#discussion_r137204521","pull_request_url":"https://api.github.com/repos/mellhime/flashcards/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mellhime/flashcards/pulls/comments/137204521"},"html":{"href":"https://github.com/mellhime/flashcards/pull/9#discussion_r137204521"},"pull_request":{"href":"https://api.github.com/repos/mellhime/flashcards/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/mellhime/flashcards/pulls/9","id":139499046,"html_url":"https://github.com/mellhime/flashcards/pull/9","diff_url":"https://github.com/mellhime/flashcards/pull/9.diff","patch_url":"https://github.com/mellhime/flashcards/pull/9.patch","issue_url":"https://api.github.com/repos/mellhime/flashcards/issues/9","number":9,"state":"open","locked":false,"title":"Test","user":{"login":"mellhime","id":29705976,"avatar_url":"https://avatars0.githubusercontent.com/u/29705976?v=4","gravatar_id":"","url":"https://api.github.com/users/mellhime","html_url":"https://github.com/mellhime","followers_url":"https://api.github.com/users/mellhime/followers","following_url":"https://api.github.com/users/mellhime/following{/other_user}","gists_url":"https://api.github.com/users/mellhime/gists{/gist_id}","starred_url":"https://api.github.com/users/mellhime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellhime/subscriptions","organizations_url":"https://api.github.com/users/mellhime/orgs","repos_url":"https://api.github.com/users/mellhime/repos","events_url":"https://api.github.com/users/mellhime/events{/privacy}","received_events_url":"https://api.github.com/users/mellhime/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-06T08:22:37Z","updated_at":"2017-09-06T08:37:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/mellhime/flashcards/pulls/9/commits","review_comments_url":"https://api.github.com/repos/mellhime/flashcards/pulls/9/comments","review_comment_url":"https://api.github.com/repos/mellhime/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mellhime/flashcards/issues/9/comments","statuses_url":"https://api.github.com/repos/mellhime/flashcards/statuses/23cb657ab533b320b9c92176bf95dc52b1990e54","head":{"label":"mellhime:test","ref":"test","sha":"23cb657ab533b320b9c92176bf95dc52b1990e54","user":{"login":"mellhime","id":29705976,"avatar_url":"https://avatars0.githubusercontent.com/u/29705976?v=4","gravatar_id":"","url":"https://api.github.com/users/mellhime","html_url":"https://github.com/mellhime","followers_url":"https://api.github.com/users/mellhime/followers","following_url":"https://api.github.com/users/mellhime/following{/other_user}","gists_url":"https://api.github.com/users/mellhime/gists{/gist_id}","starred_url":"https://api.github.com/users/mellhime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellhime/subscriptions","organizations_url":"https://api.github.com/users/mellhime/orgs","repos_url":"https://api.github.com/users/mellhime/repos","events_url":"https://api.github.com/users/mellhime/events{/privacy}","received_events_url":"https://api.github.com/users/mellhime/received_events","type":"User","site_admin":false},"repo":{"id":101040207,"name":"flashcards","full_name":"mellhime/flashcards","owner":{"login":"mellhime","id":29705976,"avatar_url":"https://avatars0.githubusercontent.com/u/29705976?v=4","gravatar_id":"","url":"https://api.github.com/users/mellhime","html_url":"https://github.com/mellhime","followers_url":"https://api.github.com/users/mellhime/followers","following_url":"https://api.github.com/users/mellhime/following{/other_user}","gists_url":"https://api.github.com/users/mellhime/gists{/gist_id}","starred_url":"https://api.github.com/users/mellhime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellhime/subscriptions","organizations_url":"https://api.github.com/users/mellhime/orgs","repos_url":"https://api.github.com/users/mellhime/repos","events_url":"https://api.github.com/users/mellhime/events{/privacy}","received_events_url":"https://api.github.com/users/mellhime/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mellhime/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/mellhime/flashcards","forks_url":"https://api.github.com/repos/mellhime/flashcards/forks","keys_url":"https://api.github.com/repos/mellhime/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mellhime/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mellhime/flashcards/teams","hooks_url":"https://api.github.com/repos/mellhime/flashcards/hooks","issue_events_url":"https://api.github.com/repos/mellhime/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/mellhime/flashcards/events","assignees_url":"https://api.github.com/repos/mellhime/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/mellhime/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/mellhime/flashcards/tags","blobs_url":"https://api.github.com/repos/mellhime/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mellhime/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mellhime/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/mellhime/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mellhime/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/mellhime/flashcards/languages","stargazers_url":"https://api.github.com/repos/mellhime/flashcards/stargazers","contributors_url":"https://api.github.com/repos/mellhime/flashcards/contributors","subscribers_url":"https://api.github.com/repos/mellhime/flashcards/subscribers","subscription_url":"https://api.github.com/repos/mellhime/flashcards/subscription","commits_url":"https://api.github.com/repos/mellhime/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/mellhime/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/mellhime/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/mellhime/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/mellhime/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/mellhime/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mellhime/flashcards/merges","archive_url":"https://api.github.com/repos/mellhime/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mellhime/flashcards/downloads","issues_url":"https://api.github.com/repos/mellhime/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/mellhime/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/mellhime/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/mellhime/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mellhime/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/mellhime/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/mellhime/flashcards/deployments","created_at":"2017-08-22T08:28:22Z","updated_at":"2017-08-22T08:29:39Z","pushed_at":"2017-09-06T08:37:02Z","git_url":"git://github.com/mellhime/flashcards.git","ssh_url":"git@github.com:mellhime/flashcards.git","clone_url":"https://github.com/mellhime/flashcards.git","svn_url":"https://github.com/mellhime/flashcards","homepage":null,"size":114,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"mellhime:master","ref":"master","sha":"45e44922f32d042e2c95eed823524f93dee0da4b","user":{"login":"mellhime","id":29705976,"avatar_url":"https://avatars0.githubusercontent.com/u/29705976?v=4","gravatar_id":"","url":"https://api.github.com/users/mellhime","html_url":"https://github.com/mellhime","followers_url":"https://api.github.com/users/mellhime/followers","following_url":"https://api.github.com/users/mellhime/following{/other_user}","gists_url":"https://api.github.com/users/mellhime/gists{/gist_id}","starred_url":"https://api.github.com/users/mellhime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellhime/subscriptions","organizations_url":"https://api.github.com/users/mellhime/orgs","repos_url":"https://api.github.com/users/mellhime/repos","events_url":"https://api.github.com/users/mellhime/events{/privacy}","received_events_url":"https://api.github.com/users/mellhime/received_events","type":"User","site_admin":false},"repo":{"id":101040207,"name":"flashcards","full_name":"mellhime/flashcards","owner":{"login":"mellhime","id":29705976,"avatar_url":"https://avatars0.githubusercontent.com/u/29705976?v=4","gravatar_id":"","url":"https://api.github.com/users/mellhime","html_url":"https://github.com/mellhime","followers_url":"https://api.github.com/users/mellhime/followers","following_url":"https://api.github.com/users/mellhime/following{/other_user}","gists_url":"https://api.github.com/users/mellhime/gists{/gist_id}","starred_url":"https://api.github.com/users/mellhime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mellhime/subscriptions","organizations_url":"https://api.github.com/users/mellhime/orgs","repos_url":"https://api.github.com/users/mellhime/repos","events_url":"https://api.github.com/users/mellhime/events{/privacy}","received_events_url":"https://api.github.com/users/mellhime/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mellhime/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/mellhime/flashcards","forks_url":"https://api.github.com/repos/mellhime/flashcards/forks","keys_url":"https://api.github.com/repos/mellhime/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mellhime/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mellhime/flashcards/teams","hooks_url":"https://api.github.com/repos/mellhime/flashcards/hooks","issue_events_url":"https://api.github.com/repos/mellhime/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/mellhime/flashcards/events","assignees_url":"https://api.github.com/repos/mellhime/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/mellhime/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/mellhime/flashcards/tags","blobs_url":"https://api.github.com/repos/mellhime/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mellhime/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mellhime/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/mellhime/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mellhime/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/mellhime/flashcards/languages","stargazers_url":"https://api.github.com/repos/mellhime/flashcards/stargazers","contributors_url":"https://api.github.com/repos/mellhime/flashcards/contributors","subscribers_url":"https://api.github.com/repos/mellhime/flashcards/subscribers","subscription_url":"https://api.github.com/repos/mellhime/flashcards/subscription","commits_url":"https://api.github.com/repos/mellhime/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/mellhime/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/mellhime/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/mellhime/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/mellhime/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/mellhime/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mellhime/flashcards/merges","archive_url":"https://api.github.com/repos/mellhime/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mellhime/flashcards/downloads","issues_url":"https://api.github.com/repos/mellhime/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/mellhime/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/mellhime/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/mellhime/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mellhime/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/mellhime/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/mellhime/flashcards/deployments","created_at":"2017-08-22T08:28:22Z","updated_at":"2017-08-22T08:29:39Z","pushed_at":"2017-09-06T08:37:02Z","git_url":"git://github.com/mellhime/flashcards.git","ssh_url":"git@github.com:mellhime/flashcards.git","clone_url":"https://github.com/mellhime/flashcards.git","svn_url":"https://github.com/mellhime/flashcards","homepage":null,"size":114,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mellhime/flashcards/pulls/9"},"html":{"href":"https://github.com/mellhime/flashcards/pull/9"},"issue":{"href":"https://api.github.com/repos/mellhime/flashcards/issues/9"},"comments":{"href":"https://api.github.com/repos/mellhime/flashcards/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/mellhime/flashcards/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/mellhime/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mellhime/flashcards/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/mellhime/flashcards/statuses/23cb657ab533b320b9c92176bf95dc52b1990e54"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}