{"action":"created","comment":{"url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments/27201804","id":27201804,"diff_hunk":"@@ -0,0 +1,107 @@\n+require 'rails_helper'\n+\n+RSpec.describe Card, type: :model do\n+  it 'create card with empty original text' do\n+    card = Card.create(original_text: '', translated_text: 'house')\n+    expect(card.errors[:original_text]).to include('Необходимо заполнить поле.')\n+  end\n+\n+  it 'create card with empty translated text' do\n+    card = Card.create(original_text: 'дом', translated_text: '')\n+    expect(card.errors[:translated_text])\n+        .to include('Необходимо заполнить поле.')\n+  end\n+\n+  it 'create card with empty texts' do\n+    card = Card.create(original_text: '', translated_text: '')\n+    expect(card.errors[:original_text])\n+        .to include('Вводимые значения должны отличаться.')\n+    expect(card.errors[:original_text]).to include(\"Необходимо заполнить поле.\")\n+    expect(card.errors[:translated_text])\n+        .to include(\"Необходимо заполнить поле.\")\n+  end\n+\n+  it 'equal_texts Eng' do\n+    card = Card.create(original_text: 'house', translated_text: 'house')\n+    expect(card.errors[:original_text])\n+        .to include('Вводимые значения должны отличаться.')\n+  end\n+\n+  it 'equal_texts Rus' do\n+    card = Card.create(original_text: 'дом', translated_text: 'дом')\n+    expect(card.errors[:original_text])\n+        .to include('Вводимые значения должны отличаться.')\n+  end\n+\n+  it 'full_downcase Eng' do\n+    card = Card.create(original_text: 'hOuse', translated_text: 'houSe')\n+    expect(card.errors[:original_text])\n+        .to include('Вводимые значения должны отличаться.')\n+  end\n+\n+  it 'full_downcase Rus' do\n+    card = Card.create(original_text: 'Дом', translated_text: 'доМ')\n+    expect(card.errors[:original_text])\n+        .to include('Вводимые значения должны отличаться.')\n+  end\n+\n+  it 'create card OK' do\n+    card = Card.create(original_text: 'дом', translated_text: 'house')\n+    expect(card.errors[:original_text])\n+        .to_not include('Вводимые значения должны отличаться.')\n+    expect(card.errors[:translated_text])\n+        .to_not include(\"Необходимо заполнить поле.\")\n+    expect(card.errors[:original_text])\n+        .to_not include(\"Необходимо заполнить поле.\")","path":"spec/models/card_spec.rb","position":55,"original_position":55,"commit_id":"784fcb15b722c8d6711be7a80e640ab70252c7f0","original_commit_id":"784fcb15b722c8d6711be7a80e640ab70252c7f0","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":"Place the . on the previous line, together with the method call receiver.<br>Use 2 (not 4) spaces for indenting an expression spanning multiple lines.","created_at":"2015-03-26T10:31:59Z","updated_at":"2015-03-26T10:31:59Z","html_url":"https://github.com/elavretskiy/flashcards/pull/6#discussion_r27201804","pull_request_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments/27201804"},"html":{"href":"https://github.com/elavretskiy/flashcards/pull/6#discussion_r27201804"},"pull_request":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6","id":32004741,"html_url":"https://github.com/elavretskiy/flashcards/pull/6","diff_url":"https://github.com/elavretskiy/flashcards/pull/6.diff","patch_url":"https://github.com/elavretskiy/flashcards/pull/6.patch","issue_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/6","number":6,"state":"open","locked":false,"title":"Задание 6: Тесты","user":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-26T10:28:53Z","updated_at":"2015-03-26T10:31:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"077ca6af843d3f39e4fd5605d2c9f0ba912835e1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6/commits","review_comments_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6/comments","review_comment_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/6/comments","statuses_url":"https://api.github.com/repos/elavretskiy/flashcards/statuses/784fcb15b722c8d6711be7a80e640ab70252c7f0","head":{"label":"elavretskiy:sixth-task","ref":"sixth-task","sha":"784fcb15b722c8d6711be7a80e640ab70252c7f0","user":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"repo":{"id":32740872,"name":"flashcards","full_name":"elavretskiy/flashcards","owner":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elavretskiy/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/elavretskiy/flashcards","forks_url":"https://api.github.com/repos/elavretskiy/flashcards/forks","keys_url":"https://api.github.com/repos/elavretskiy/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elavretskiy/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elavretskiy/flashcards/teams","hooks_url":"https://api.github.com/repos/elavretskiy/flashcards/hooks","issue_events_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/elavretskiy/flashcards/events","assignees_url":"https://api.github.com/repos/elavretskiy/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/elavretskiy/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/elavretskiy/flashcards/tags","blobs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elavretskiy/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/elavretskiy/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elavretskiy/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/elavretskiy/flashcards/languages","stargazers_url":"https://api.github.com/repos/elavretskiy/flashcards/stargazers","contributors_url":"https://api.github.com/repos/elavretskiy/flashcards/contributors","subscribers_url":"https://api.github.com/repos/elavretskiy/flashcards/subscribers","subscription_url":"https://api.github.com/repos/elavretskiy/flashcards/subscription","commits_url":"https://api.github.com/repos/elavretskiy/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/elavretskiy/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/elavretskiy/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/elavretskiy/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/elavretskiy/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elavretskiy/flashcards/merges","archive_url":"https://api.github.com/repos/elavretskiy/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elavretskiy/flashcards/downloads","issues_url":"https://api.github.com/repos/elavretskiy/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/elavretskiy/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/elavretskiy/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elavretskiy/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/elavretskiy/flashcards/releases{/id}","created_at":"2015-03-23T15:28:49Z","updated_at":"2015-03-26T10:28:36Z","pushed_at":"2015-03-26T10:31:52Z","git_url":"git://github.com/elavretskiy/flashcards.git","ssh_url":"git@github.com:elavretskiy/flashcards.git","clone_url":"https://github.com/elavretskiy/flashcards.git","svn_url":"https://github.com/elavretskiy/flashcards","homepage":null,"size":512,"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":"first-task"}},"base":{"label":"elavretskiy:first-task","ref":"first-task","sha":"04d94b6070b46648310f53ee5b2a5583132c6cff","user":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"repo":{"id":32740872,"name":"flashcards","full_name":"elavretskiy/flashcards","owner":{"login":"elavretskiy","id":10075473,"avatar_url":"https://avatars.githubusercontent.com/u/10075473?v=3","gravatar_id":"","url":"https://api.github.com/users/elavretskiy","html_url":"https://github.com/elavretskiy","followers_url":"https://api.github.com/users/elavretskiy/followers","following_url":"https://api.github.com/users/elavretskiy/following{/other_user}","gists_url":"https://api.github.com/users/elavretskiy/gists{/gist_id}","starred_url":"https://api.github.com/users/elavretskiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elavretskiy/subscriptions","organizations_url":"https://api.github.com/users/elavretskiy/orgs","repos_url":"https://api.github.com/users/elavretskiy/repos","events_url":"https://api.github.com/users/elavretskiy/events{/privacy}","received_events_url":"https://api.github.com/users/elavretskiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elavretskiy/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/elavretskiy/flashcards","forks_url":"https://api.github.com/repos/elavretskiy/flashcards/forks","keys_url":"https://api.github.com/repos/elavretskiy/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elavretskiy/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elavretskiy/flashcards/teams","hooks_url":"https://api.github.com/repos/elavretskiy/flashcards/hooks","issue_events_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/elavretskiy/flashcards/events","assignees_url":"https://api.github.com/repos/elavretskiy/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/elavretskiy/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/elavretskiy/flashcards/tags","blobs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elavretskiy/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elavretskiy/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/elavretskiy/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elavretskiy/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/elavretskiy/flashcards/languages","stargazers_url":"https://api.github.com/repos/elavretskiy/flashcards/stargazers","contributors_url":"https://api.github.com/repos/elavretskiy/flashcards/contributors","subscribers_url":"https://api.github.com/repos/elavretskiy/flashcards/subscribers","subscription_url":"https://api.github.com/repos/elavretskiy/flashcards/subscription","commits_url":"https://api.github.com/repos/elavretskiy/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/elavretskiy/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/elavretskiy/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/elavretskiy/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/elavretskiy/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/elavretskiy/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elavretskiy/flashcards/merges","archive_url":"https://api.github.com/repos/elavretskiy/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elavretskiy/flashcards/downloads","issues_url":"https://api.github.com/repos/elavretskiy/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/elavretskiy/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/elavretskiy/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/elavretskiy/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elavretskiy/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/elavretskiy/flashcards/releases{/id}","created_at":"2015-03-23T15:28:49Z","updated_at":"2015-03-26T10:28:36Z","pushed_at":"2015-03-26T10:31:52Z","git_url":"git://github.com/elavretskiy/flashcards.git","ssh_url":"git@github.com:elavretskiy/flashcards.git","clone_url":"https://github.com/elavretskiy/flashcards.git","svn_url":"https://github.com/elavretskiy/flashcards","homepage":null,"size":512,"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":"first-task"}},"_links":{"self":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6"},"html":{"href":"https://github.com/elavretskiy/flashcards/pull/6"},"issue":{"href":"https://api.github.com/repos/elavretskiy/flashcards/issues/6"},"comments":{"href":"https://api.github.com/repos/elavretskiy/flashcards/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elavretskiy/flashcards/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/elavretskiy/flashcards/statuses/784fcb15b722c8d6711be7a80e640ab70252c7f0"}}}}