{"action":"created","comment":{"url":"https://api.github.com/repos/superedriver/flashcards/pulls/comments/65821380","id":65821380,"diff_hunk":"@@ -31,23 +31,41 @@\n       it \"blank\" do\n         @user = build(:user, email: \"\", password: \"123456\", password_confirmation: \"123456\")\n         @user.valid?\n-        expect(@user.errors.messages[:email].length).to eq(1)\n+        expect(@user.errors.messages[:email].length).to eq(2)\n         expect(@user.errors.messages[:email][0]).\n             to eq(I18n.t(\"activerecord.errors.models.user.attributes.email.blank\"))\n+        expect(@user.errors.messages[:email][1]).\n+            to eq(I18n.t(\"activerecord.errors.models.user.attributes.email.invalid\"))\n+      end\n+\n+      it \"without @\" do\n+        @user = build(:user, email: \"cvsdfv\", password: \"123456\", password_confirmation: \"123456\")\n+        @user.valid?\n+        expect(@user.errors.messages[:email].length).to eq(1)\n+        expect(@user.errors.messages[:email][0]).\n+            to eq(I18n.t(\"activerecord.errors.models.user.attributes.email.invalid\"))\n+      end\n+\n+      it \"with @ but without '.' \" do\n+        @user = build(:user, email: \"cvsdfv@sdfv\", password: \"123456\", password_confirmation: \"123456\")\n+        @user.valid?\n+        expect(@user.errors.messages[:email].length).to eq(1)\n+        expect(@user.errors.messages[:email][0]).\n+            to eq(I18n.t(\"activerecord.errors.models.user.attributes.email.invalid\"))\n       end\n \n       it \"not unique\" do\n-        create(:user, email: \"qwerty\", password: \"123456\", password_confirmation: \"123456\")\n-        @user = build(:user, email: \"qwerty\", password: \"123456\", password_confirmation: \"123456\")\n+        create(:user, email: \"qwerty@gmail.com\", password: \"123456\", password_confirmation: \"123456\")\n+        @user = build(:user, email: \"qwerty@gmail.com\", password: \"123456\", password_confirmation: \"123456\")\n         @user.valid?\n         expect(@user.errors.messages[:email].length).to eq(1)\n         expect(@user.errors.messages[:email][0]).\n             to eq(I18n.t(\"activerecord.errors.models.user.attributes.email.taken\"))\n       end\n \n       it \"upcase\" do\n-        create(:user, email: \"UpCaSE\", password: \"123456\", password_confirmation: \"123456\")\n-        @user = build(:user, email: \"upcase\", password: \"123456\", password_confirmation: \"123456\")\n+        create(:user, email: \"UpCaSE@gmail.com\", password: \"123456\", password_confirmation: \"123456\")\n+        @user = build(:user, email: \"upcase@gmail.com\", password: \"123456\", password_confirmation: \"123456\")","path":"spec/models/user_spec.rb","position":52,"original_position":52,"commit_id":"04f4fbb50ed6d8b63f67ab38bb3a2a565a976139","original_commit_id":"04f4fbb50ed6d8b63f67ab38bb3a2a565a976139","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Line is too long. [108/80]","created_at":"2016-06-05T17:55:56Z","updated_at":"2016-06-05T17:55:56Z","html_url":"https://github.com/superedriver/flashcards/pull/15#discussion_r65821380","pull_request_url":"https://api.github.com/repos/superedriver/flashcards/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/superedriver/flashcards/pulls/comments/65821380"},"html":{"href":"https://github.com/superedriver/flashcards/pull/15#discussion_r65821380"},"pull_request":{"href":"https://api.github.com/repos/superedriver/flashcards/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/superedriver/flashcards/pulls/15","id":72635781,"html_url":"https://github.com/superedriver/flashcards/pull/15","diff_url":"https://github.com/superedriver/flashcards/pull/15.diff","patch_url":"https://github.com/superedriver/flashcards/pull/15.patch","issue_url":"https://api.github.com/repos/superedriver/flashcards/issues/15","number":15,"state":"open","locked":false,"title":"Fifteenth task","user":{"login":"superedriver","id":10393906,"avatar_url":"https://avatars.githubusercontent.com/u/10393906?v=3","gravatar_id":"","url":"https://api.github.com/users/superedriver","html_url":"https://github.com/superedriver","followers_url":"https://api.github.com/users/superedriver/followers","following_url":"https://api.github.com/users/superedriver/following{/other_user}","gists_url":"https://api.github.com/users/superedriver/gists{/gist_id}","starred_url":"https://api.github.com/users/superedriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superedriver/subscriptions","organizations_url":"https://api.github.com/users/superedriver/orgs","repos_url":"https://api.github.com/users/superedriver/repos","events_url":"https://api.github.com/users/superedriver/events{/privacy}","received_events_url":"https://api.github.com/users/superedriver/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-05T17:55:48Z","updated_at":"2016-06-05T17:55:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aca0ee2266b5718d8ef3220a2bb07bac0e712c21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/superedriver/flashcards/pulls/15/commits","review_comments_url":"https://api.github.com/repos/superedriver/flashcards/pulls/15/comments","review_comment_url":"https://api.github.com/repos/superedriver/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superedriver/flashcards/issues/15/comments","statuses_url":"https://api.github.com/repos/superedriver/flashcards/statuses/04f4fbb50ed6d8b63f67ab38bb3a2a565a976139","head":{"label":"superedriver:fifteenth-task","ref":"fifteenth-task","sha":"04f4fbb50ed6d8b63f67ab38bb3a2a565a976139","user":{"login":"superedriver","id":10393906,"avatar_url":"https://avatars.githubusercontent.com/u/10393906?v=3","gravatar_id":"","url":"https://api.github.com/users/superedriver","html_url":"https://github.com/superedriver","followers_url":"https://api.github.com/users/superedriver/followers","following_url":"https://api.github.com/users/superedriver/following{/other_user}","gists_url":"https://api.github.com/users/superedriver/gists{/gist_id}","starred_url":"https://api.github.com/users/superedriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superedriver/subscriptions","organizations_url":"https://api.github.com/users/superedriver/orgs","repos_url":"https://api.github.com/users/superedriver/repos","events_url":"https://api.github.com/users/superedriver/events{/privacy}","received_events_url":"https://api.github.com/users/superedriver/received_events","type":"User","site_admin":false},"repo":{"id":48127238,"name":"flashcards","full_name":"superedriver/flashcards","owner":{"login":"superedriver","id":10393906,"avatar_url":"https://avatars.githubusercontent.com/u/10393906?v=3","gravatar_id":"","url":"https://api.github.com/users/superedriver","html_url":"https://github.com/superedriver","followers_url":"https://api.github.com/users/superedriver/followers","following_url":"https://api.github.com/users/superedriver/following{/other_user}","gists_url":"https://api.github.com/users/superedriver/gists{/gist_id}","starred_url":"https://api.github.com/users/superedriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superedriver/subscriptions","organizations_url":"https://api.github.com/users/superedriver/orgs","repos_url":"https://api.github.com/users/superedriver/repos","events_url":"https://api.github.com/users/superedriver/events{/privacy}","received_events_url":"https://api.github.com/users/superedriver/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/superedriver/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/superedriver/flashcards","forks_url":"https://api.github.com/repos/superedriver/flashcards/forks","keys_url":"https://api.github.com/repos/superedriver/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superedriver/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superedriver/flashcards/teams","hooks_url":"https://api.github.com/repos/superedriver/flashcards/hooks","issue_events_url":"https://api.github.com/repos/superedriver/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/superedriver/flashcards/events","assignees_url":"https://api.github.com/repos/superedriver/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/superedriver/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/superedriver/flashcards/tags","blobs_url":"https://api.github.com/repos/superedriver/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superedriver/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superedriver/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/superedriver/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superedriver/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/superedriver/flashcards/languages","stargazers_url":"https://api.github.com/repos/superedriver/flashcards/stargazers","contributors_url":"https://api.github.com/repos/superedriver/flashcards/contributors","subscribers_url":"https://api.github.com/repos/superedriver/flashcards/subscribers","subscription_url":"https://api.github.com/repos/superedriver/flashcards/subscription","commits_url":"https://api.github.com/repos/superedriver/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/superedriver/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/superedriver/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/superedriver/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/superedriver/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/superedriver/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superedriver/flashcards/merges","archive_url":"https://api.github.com/repos/superedriver/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superedriver/flashcards/downloads","issues_url":"https://api.github.com/repos/superedriver/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/superedriver/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/superedriver/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/superedriver/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superedriver/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/superedriver/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/superedriver/flashcards/deployments","created_at":"2015-12-16T18:17:48Z","updated_at":"2016-05-12T18:46:47Z","pushed_at":"2016-06-05T17:55:48Z","git_url":"git://github.com/superedriver/flashcards.git","ssh_url":"git@github.com:superedriver/flashcards.git","clone_url":"https://github.com/superedriver/flashcards.git","svn_url":"https://github.com/superedriver/flashcards","homepage":null,"size":645,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"superedriver:master","ref":"master","sha":"1dd7338bf656d1bccd7fe92f943626e98dcccc22","user":{"login":"superedriver","id":10393906,"avatar_url":"https://avatars.githubusercontent.com/u/10393906?v=3","gravatar_id":"","url":"https://api.github.com/users/superedriver","html_url":"https://github.com/superedriver","followers_url":"https://api.github.com/users/superedriver/followers","following_url":"https://api.github.com/users/superedriver/following{/other_user}","gists_url":"https://api.github.com/users/superedriver/gists{/gist_id}","starred_url":"https://api.github.com/users/superedriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superedriver/subscriptions","organizations_url":"https://api.github.com/users/superedriver/orgs","repos_url":"https://api.github.com/users/superedriver/repos","events_url":"https://api.github.com/users/superedriver/events{/privacy}","received_events_url":"https://api.github.com/users/superedriver/received_events","type":"User","site_admin":false},"repo":{"id":48127238,"name":"flashcards","full_name":"superedriver/flashcards","owner":{"login":"superedriver","id":10393906,"avatar_url":"https://avatars.githubusercontent.com/u/10393906?v=3","gravatar_id":"","url":"https://api.github.com/users/superedriver","html_url":"https://github.com/superedriver","followers_url":"https://api.github.com/users/superedriver/followers","following_url":"https://api.github.com/users/superedriver/following{/other_user}","gists_url":"https://api.github.com/users/superedriver/gists{/gist_id}","starred_url":"https://api.github.com/users/superedriver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superedriver/subscriptions","organizations_url":"https://api.github.com/users/superedriver/orgs","repos_url":"https://api.github.com/users/superedriver/repos","events_url":"https://api.github.com/users/superedriver/events{/privacy}","received_events_url":"https://api.github.com/users/superedriver/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/superedriver/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/superedriver/flashcards","forks_url":"https://api.github.com/repos/superedriver/flashcards/forks","keys_url":"https://api.github.com/repos/superedriver/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superedriver/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superedriver/flashcards/teams","hooks_url":"https://api.github.com/repos/superedriver/flashcards/hooks","issue_events_url":"https://api.github.com/repos/superedriver/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/superedriver/flashcards/events","assignees_url":"https://api.github.com/repos/superedriver/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/superedriver/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/superedriver/flashcards/tags","blobs_url":"https://api.github.com/repos/superedriver/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superedriver/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superedriver/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/superedriver/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superedriver/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/superedriver/flashcards/languages","stargazers_url":"https://api.github.com/repos/superedriver/flashcards/stargazers","contributors_url":"https://api.github.com/repos/superedriver/flashcards/contributors","subscribers_url":"https://api.github.com/repos/superedriver/flashcards/subscribers","subscription_url":"https://api.github.com/repos/superedriver/flashcards/subscription","commits_url":"https://api.github.com/repos/superedriver/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/superedriver/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/superedriver/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/superedriver/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/superedriver/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/superedriver/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superedriver/flashcards/merges","archive_url":"https://api.github.com/repos/superedriver/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superedriver/flashcards/downloads","issues_url":"https://api.github.com/repos/superedriver/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/superedriver/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/superedriver/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/superedriver/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superedriver/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/superedriver/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/superedriver/flashcards/deployments","created_at":"2015-12-16T18:17:48Z","updated_at":"2016-05-12T18:46:47Z","pushed_at":"2016-06-05T17:55:48Z","git_url":"git://github.com/superedriver/flashcards.git","ssh_url":"git@github.com:superedriver/flashcards.git","clone_url":"https://github.com/superedriver/flashcards.git","svn_url":"https://github.com/superedriver/flashcards","homepage":null,"size":645,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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/superedriver/flashcards/pulls/15"},"html":{"href":"https://github.com/superedriver/flashcards/pull/15"},"issue":{"href":"https://api.github.com/repos/superedriver/flashcards/issues/15"},"comments":{"href":"https://api.github.com/repos/superedriver/flashcards/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/superedriver/flashcards/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/superedriver/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superedriver/flashcards/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/superedriver/flashcards/statuses/04f4fbb50ed6d8b63f67ab38bb3a2a565a976139"}}}}
{"actor":{"display_login":"houndci-bot"}}