{"action":"created","comment":{"url":"https://api.github.com/repos/duytsev/flashcards/pulls/comments/33991203","id":33991203,"diff_hunk":"@@ -0,0 +1,39 @@\n+require 'rails_helper'\n+require 'spec_helper'\n+\n+feature 'review card' do\n+\n+  given!(:card) { create(:card, review_date: Date.today) }\n+\n+  scenario 'success and not last' do\n+    create(:card, original_text: 'house',\n+           translated_text: 'дом', review_date: Date.today)\n+    visit new_review_path(card_id: card.id)\n+    expect(page).to have_content 'Проверка знаний'\n+    fill_in 'review_original_text', with: card.original_text\n+    click_button 'review_button'\n+    expect(page).to have_content 'Правильно, следующая карточка:'\n+    expect(page).to have_content 'Проверка знаний'\n+  end\n+\n+  scenario 'success and last' do\n+    visit root_path\n+    click_link 'Начать тренировку'\n+    expect(page).to have_content 'Проверка знаний'\n+    fill_in 'review_original_text', with: card.original_text\n+    click_button 'review_button'\n+    expect(page).to have_content 'Правильно!'\n+    expect(page).not_to have_content 'Проверка знаний'\n+    expect(page).to have_content 'Нет карточек на проверку ):'\n+  end\n+\n+  scenario 'fail' do\n+    visit root_path\n+    click_link 'Начать тренировку'\n+    expect(page).to have_content 'Проверка знаний'\n+    fill_in 'review_original_text', with: card.original_text + 'str'","path":"spec/features/reviews_spec.rb","position":34,"original_position":34,"commit_id":"b65e0f91dd21296c14b39fef12bf18b0b46cad25","original_commit_id":"b65e0f91dd21296c14b39fef12bf18b0b46cad25","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-07-06T22:45:24Z","updated_at":"2015-07-06T22:45:24Z","html_url":"https://github.com/duytsev/flashcards/pull/7#discussion_r33991203","pull_request_url":"https://api.github.com/repos/duytsev/flashcards/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/duytsev/flashcards/pulls/comments/33991203"},"html":{"href":"https://github.com/duytsev/flashcards/pull/7#discussion_r33991203"},"pull_request":{"href":"https://api.github.com/repos/duytsev/flashcards/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/duytsev/flashcards/pulls/7","id":39316887,"html_url":"https://github.com/duytsev/flashcards/pull/7","diff_url":"https://github.com/duytsev/flashcards/pull/7.diff","patch_url":"https://github.com/duytsev/flashcards/pull/7.patch","issue_url":"https://api.github.com/repos/duytsev/flashcards/issues/7","number":7,"state":"open","locked":false,"title":"Task 7","user":{"login":"duytsev","id":4367738,"avatar_url":"https://avatars.githubusercontent.com/u/4367738?v=3","gravatar_id":"","url":"https://api.github.com/users/duytsev","html_url":"https://github.com/duytsev","followers_url":"https://api.github.com/users/duytsev/followers","following_url":"https://api.github.com/users/duytsev/following{/other_user}","gists_url":"https://api.github.com/users/duytsev/gists{/gist_id}","starred_url":"https://api.github.com/users/duytsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duytsev/subscriptions","organizations_url":"https://api.github.com/users/duytsev/orgs","repos_url":"https://api.github.com/users/duytsev/repos","events_url":"https://api.github.com/users/duytsev/events{/privacy}","received_events_url":"https://api.github.com/users/duytsev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-06T22:17:13Z","updated_at":"2015-07-06T22:45:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cc6b1f89cf3e98d6c3be23ac96273a06e877103","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duytsev/flashcards/pulls/7/commits","review_comments_url":"https://api.github.com/repos/duytsev/flashcards/pulls/7/comments","review_comment_url":"https://api.github.com/repos/duytsev/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duytsev/flashcards/issues/7/comments","statuses_url":"https://api.github.com/repos/duytsev/flashcards/statuses/b65e0f91dd21296c14b39fef12bf18b0b46cad25","head":{"label":"duytsev:task-7","ref":"task-7","sha":"b65e0f91dd21296c14b39fef12bf18b0b46cad25","user":{"login":"duytsev","id":4367738,"avatar_url":"https://avatars.githubusercontent.com/u/4367738?v=3","gravatar_id":"","url":"https://api.github.com/users/duytsev","html_url":"https://github.com/duytsev","followers_url":"https://api.github.com/users/duytsev/followers","following_url":"https://api.github.com/users/duytsev/following{/other_user}","gists_url":"https://api.github.com/users/duytsev/gists{/gist_id}","starred_url":"https://api.github.com/users/duytsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duytsev/subscriptions","organizations_url":"https://api.github.com/users/duytsev/orgs","repos_url":"https://api.github.com/users/duytsev/repos","events_url":"https://api.github.com/users/duytsev/events{/privacy}","received_events_url":"https://api.github.com/users/duytsev/received_events","type":"User","site_admin":false},"repo":{"id":37420964,"name":"flashcards","full_name":"duytsev/flashcards","owner":{"login":"duytsev","id":4367738,"avatar_url":"https://avatars.githubusercontent.com/u/4367738?v=3","gravatar_id":"","url":"https://api.github.com/users/duytsev","html_url":"https://github.com/duytsev","followers_url":"https://api.github.com/users/duytsev/followers","following_url":"https://api.github.com/users/duytsev/following{/other_user}","gists_url":"https://api.github.com/users/duytsev/gists{/gist_id}","starred_url":"https://api.github.com/users/duytsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duytsev/subscriptions","organizations_url":"https://api.github.com/users/duytsev/orgs","repos_url":"https://api.github.com/users/duytsev/repos","events_url":"https://api.github.com/users/duytsev/events{/privacy}","received_events_url":"https://api.github.com/users/duytsev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duytsev/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/duytsev/flashcards","forks_url":"https://api.github.com/repos/duytsev/flashcards/forks","keys_url":"https://api.github.com/repos/duytsev/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duytsev/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duytsev/flashcards/teams","hooks_url":"https://api.github.com/repos/duytsev/flashcards/hooks","issue_events_url":"https://api.github.com/repos/duytsev/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/duytsev/flashcards/events","assignees_url":"https://api.github.com/repos/duytsev/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/duytsev/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/duytsev/flashcards/tags","blobs_url":"https://api.github.com/repos/duytsev/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duytsev/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duytsev/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/duytsev/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duytsev/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/duytsev/flashcards/languages","stargazers_url":"https://api.github.com/repos/duytsev/flashcards/stargazers","contributors_url":"https://api.github.com/repos/duytsev/flashcards/contributors","subscribers_url":"https://api.github.com/repos/duytsev/flashcards/subscribers","subscription_url":"https://api.github.com/repos/duytsev/flashcards/subscription","commits_url":"https://api.github.com/repos/duytsev/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/duytsev/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/duytsev/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/duytsev/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/duytsev/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/duytsev/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duytsev/flashcards/merges","archive_url":"https://api.github.com/repos/duytsev/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duytsev/flashcards/downloads","issues_url":"https://api.github.com/repos/duytsev/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/duytsev/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/duytsev/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/duytsev/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duytsev/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/duytsev/flashcards/releases{/id}","created_at":"2015-06-14T16:53:43Z","updated_at":"2015-06-15T18:15:57Z","pushed_at":"2015-07-06T22:17:13Z","git_url":"git://github.com/duytsev/flashcards.git","ssh_url":"git@github.com:duytsev/flashcards.git","clone_url":"https://github.com/duytsev/flashcards.git","svn_url":"https://github.com/duytsev/flashcards","homepage":null,"size":692,"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":"duytsev:master","ref":"master","sha":"a4d1704169bc3577f62412df320860bd95656168","user":{"login":"duytsev","id":4367738,"avatar_url":"https://avatars.githubusercontent.com/u/4367738?v=3","gravatar_id":"","url":"https://api.github.com/users/duytsev","html_url":"https://github.com/duytsev","followers_url":"https://api.github.com/users/duytsev/followers","following_url":"https://api.github.com/users/duytsev/following{/other_user}","gists_url":"https://api.github.com/users/duytsev/gists{/gist_id}","starred_url":"https://api.github.com/users/duytsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duytsev/subscriptions","organizations_url":"https://api.github.com/users/duytsev/orgs","repos_url":"https://api.github.com/users/duytsev/repos","events_url":"https://api.github.com/users/duytsev/events{/privacy}","received_events_url":"https://api.github.com/users/duytsev/received_events","type":"User","site_admin":false},"repo":{"id":37420964,"name":"flashcards","full_name":"duytsev/flashcards","owner":{"login":"duytsev","id":4367738,"avatar_url":"https://avatars.githubusercontent.com/u/4367738?v=3","gravatar_id":"","url":"https://api.github.com/users/duytsev","html_url":"https://github.com/duytsev","followers_url":"https://api.github.com/users/duytsev/followers","following_url":"https://api.github.com/users/duytsev/following{/other_user}","gists_url":"https://api.github.com/users/duytsev/gists{/gist_id}","starred_url":"https://api.github.com/users/duytsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duytsev/subscriptions","organizations_url":"https://api.github.com/users/duytsev/orgs","repos_url":"https://api.github.com/users/duytsev/repos","events_url":"https://api.github.com/users/duytsev/events{/privacy}","received_events_url":"https://api.github.com/users/duytsev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duytsev/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/duytsev/flashcards","forks_url":"https://api.github.com/repos/duytsev/flashcards/forks","keys_url":"https://api.github.com/repos/duytsev/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duytsev/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duytsev/flashcards/teams","hooks_url":"https://api.github.com/repos/duytsev/flashcards/hooks","issue_events_url":"https://api.github.com/repos/duytsev/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/duytsev/flashcards/events","assignees_url":"https://api.github.com/repos/duytsev/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/duytsev/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/duytsev/flashcards/tags","blobs_url":"https://api.github.com/repos/duytsev/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duytsev/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duytsev/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/duytsev/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duytsev/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/duytsev/flashcards/languages","stargazers_url":"https://api.github.com/repos/duytsev/flashcards/stargazers","contributors_url":"https://api.github.com/repos/duytsev/flashcards/contributors","subscribers_url":"https://api.github.com/repos/duytsev/flashcards/subscribers","subscription_url":"https://api.github.com/repos/duytsev/flashcards/subscription","commits_url":"https://api.github.com/repos/duytsev/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/duytsev/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/duytsev/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/duytsev/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/duytsev/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/duytsev/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duytsev/flashcards/merges","archive_url":"https://api.github.com/repos/duytsev/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duytsev/flashcards/downloads","issues_url":"https://api.github.com/repos/duytsev/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/duytsev/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/duytsev/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/duytsev/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duytsev/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/duytsev/flashcards/releases{/id}","created_at":"2015-06-14T16:53:43Z","updated_at":"2015-06-15T18:15:57Z","pushed_at":"2015-07-06T22:17:13Z","git_url":"git://github.com/duytsev/flashcards.git","ssh_url":"git@github.com:duytsev/flashcards.git","clone_url":"https://github.com/duytsev/flashcards.git","svn_url":"https://github.com/duytsev/flashcards","homepage":null,"size":692,"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/duytsev/flashcards/pulls/7"},"html":{"href":"https://github.com/duytsev/flashcards/pull/7"},"issue":{"href":"https://api.github.com/repos/duytsev/flashcards/issues/7"},"comments":{"href":"https://api.github.com/repos/duytsev/flashcards/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/duytsev/flashcards/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/duytsev/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duytsev/flashcards/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/duytsev/flashcards/statuses/b65e0f91dd21296c14b39fef12bf18b0b46cad25"}}}}