{"action":"created","comment":{"url":"https://api.github.com/repos/strongqa/howitzer_example/pulls/comments/27771392","id":27771392,"diff_hunk":"@@ -36,4 +43,103 @@\n     HomePage.wait_for_opened\n   end\n \n+  scenario \"User can not sign up with blank data\" do\n+    user = Gen::given_user_by_number(0)\n+    SignUpPage.\n+        open.fill_form(\n+        user_name:nil,\n+        email:nil,\n+        password:nil,\n+        password_confirmation:nil\n+    ).\n+        submit_form\n+\n+    expect(HomePage).to_not be_authenticated\n+    error_text = \"2 errors prohibited this user from being saved: Email can't be blank Password can't be blank\"\n+    expect(SignUpPage.given.text).to include(error_text)\n+\n+    SignUpPage.\n+        open.fill_form(\n+        user_name:nil,\n+        email:user.email,\n+        password:nil,\n+        password_confirmation:nil\n+    ).\n+        submit_form\n+\n+    expect(HomePage).to_not be_authenticated\n+    error_text = \"1 error prohibited this user from being saved: Password can't be blank\"\n+    expect(SignUpPage.given.text).to include(error_text)\n+\n+    SignUpPage.\n+        open.fill_form(\n+        user_name:nil,\n+        email:nil,\n+        password:user.password,\n+        password_confirmation:user.password\n+    ).\n+        submit_form\n+\n+    expect(HomePage).to_not be_authenticated\n+    error_text = \"1 error prohibited this user from being saved: Email can't be blank\"\n+    expect(SignUpPage.given.text).to include(error_text)\n+  end\n+\n+  scenario \"User can not sign up with incorrect data\" do\n+    user = Gen::given_user_by_number(0)\n+    SignUpPage.\n+        open.fill_form(\n+        user_name:nil,\n+        email:'test.1234567890',\n+        password:nil,\n+        password_confirmation:nil\n+    ).\n+        submit_form\n+    expect(HomePage).to_not be_authenticated\n+    error_text = \"2 errors prohibited this user from being saved: Email is invalid Password can't be blank\"\n+    expect(SignUpPage.given.text).to include(error_text)\n+\n+    SignUpPage.\n+        open.fill_form(\n+        user_name:nil,\n+        email:user.email,\n+        password:'1234567',\n+        password_confirmation:'1234567'\n+    ).\n+        submit_form\n+\n+    expect(HomePage).to_not be_authenticated\n+    error_text = \"1 error prohibited this user from being saved: Password is too short (minimum is 8 characters)\"\n+    expect(SignUpPage.given.text).to include(error_text)\n+\n+    SignUpPage.\n+        open.fill_form(\n+        user_name:nil,\n+        email:user.email,\n+        password:'1234567890',\n+        password_confirmation:'1234567890123'\n+    ).\n+        submit_form\n+\n+    expect(HomePage).to_not be_authenticated\n+    error_text = \"1 error prohibited this user from being saved: Password confirmation doesn't match Password\"\n+    expect(SignUpPage.given.text).to include(error_text)\n+  end\n+\n+  scenario \"User cannot sign up with duplicated email\" do\n+    user_signs_up","path":"spec/bvt/functionality/auth/sign_up_spec.rb","position":112,"original_position":112,"commit_id":"52a2351c10fa8811979eb6fa2bbf5b26a8815228","original_commit_id":"52a2351c10fa8811979eb6fa2bbf5b26a8815228","user":{"login":"irchik","id":11393921,"avatar_url":"https://avatars.githubusercontent.com/u/11393921?v=3","gravatar_id":"","url":"https://api.github.com/users/irchik","html_url":"https://github.com/irchik","followers_url":"https://api.github.com/users/irchik/followers","following_url":"https://api.github.com/users/irchik/following{/other_user}","gists_url":"https://api.github.com/users/irchik/gists{/gist_id}","starred_url":"https://api.github.com/users/irchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irchik/subscriptions","organizations_url":"https://api.github.com/users/irchik/orgs","repos_url":"https://api.github.com/users/irchik/repos","events_url":"https://api.github.com/users/irchik/events{/privacy}","received_events_url":"https://api.github.com/users/irchik/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2015-04-04T19:34:03Z","updated_at":"2015-04-04T19:34:03Z","html_url":"https://github.com/strongqa/howitzer_example/pull/51#discussion_r27771392","pull_request_url":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/strongqa/howitzer_example/pulls/comments/27771392"},"html":{"href":"https://github.com/strongqa/howitzer_example/pull/51#discussion_r27771392"},"pull_request":{"href":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51","id":32465093,"html_url":"https://github.com/strongqa/howitzer_example/pull/51","diff_url":"https://github.com/strongqa/howitzer_example/pull/51.diff","patch_url":"https://github.com/strongqa/howitzer_example/pull/51.patch","issue_url":"https://api.github.com/repos/strongqa/howitzer_example/issues/51","number":51,"state":"open","locked":false,"title":"rspec for sign up feature ready","user":{"login":"irchik","id":11393921,"avatar_url":"https://avatars.githubusercontent.com/u/11393921?v=3","gravatar_id":"","url":"https://api.github.com/users/irchik","html_url":"https://github.com/irchik","followers_url":"https://api.github.com/users/irchik/followers","following_url":"https://api.github.com/users/irchik/following{/other_user}","gists_url":"https://api.github.com/users/irchik/gists{/gist_id}","starred_url":"https://api.github.com/users/irchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irchik/subscriptions","organizations_url":"https://api.github.com/users/irchik/orgs","repos_url":"https://api.github.com/users/irchik/repos","events_url":"https://api.github.com/users/irchik/events{/privacy}","received_events_url":"https://api.github.com/users/irchik/received_events","type":"User","site_admin":false},"body":"need review","created_at":"2015-04-01T21:56:46Z","updated_at":"2015-04-04T19:34:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2786f5f6ad1a58e655bf6bfa79a5fe943faf11d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51/commits","review_comments_url":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51/comments","review_comment_url":"https://api.github.com/repos/strongqa/howitzer_example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongqa/howitzer_example/issues/51/comments","statuses_url":"https://api.github.com/repos/strongqa/howitzer_example/statuses/52a2351c10fa8811979eb6fa2bbf5b26a8815228","head":{"label":"irchik:master","ref":"master","sha":"52a2351c10fa8811979eb6fa2bbf5b26a8815228","user":{"login":"irchik","id":11393921,"avatar_url":"https://avatars.githubusercontent.com/u/11393921?v=3","gravatar_id":"","url":"https://api.github.com/users/irchik","html_url":"https://github.com/irchik","followers_url":"https://api.github.com/users/irchik/followers","following_url":"https://api.github.com/users/irchik/following{/other_user}","gists_url":"https://api.github.com/users/irchik/gists{/gist_id}","starred_url":"https://api.github.com/users/irchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irchik/subscriptions","organizations_url":"https://api.github.com/users/irchik/orgs","repos_url":"https://api.github.com/users/irchik/repos","events_url":"https://api.github.com/users/irchik/events{/privacy}","received_events_url":"https://api.github.com/users/irchik/received_events","type":"User","site_admin":false},"repo":{"id":32484270,"name":"howitzer_example","full_name":"irchik/howitzer_example","owner":{"login":"irchik","id":11393921,"avatar_url":"https://avatars.githubusercontent.com/u/11393921?v=3","gravatar_id":"","url":"https://api.github.com/users/irchik","html_url":"https://github.com/irchik","followers_url":"https://api.github.com/users/irchik/followers","following_url":"https://api.github.com/users/irchik/following{/other_user}","gists_url":"https://api.github.com/users/irchik/gists{/gist_id}","starred_url":"https://api.github.com/users/irchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irchik/subscriptions","organizations_url":"https://api.github.com/users/irchik/orgs","repos_url":"https://api.github.com/users/irchik/repos","events_url":"https://api.github.com/users/irchik/events{/privacy}","received_events_url":"https://api.github.com/users/irchik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irchik/howitzer_example","description":"Howitzer example project for demo web application ","fork":true,"url":"https://api.github.com/repos/irchik/howitzer_example","forks_url":"https://api.github.com/repos/irchik/howitzer_example/forks","keys_url":"https://api.github.com/repos/irchik/howitzer_example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irchik/howitzer_example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irchik/howitzer_example/teams","hooks_url":"https://api.github.com/repos/irchik/howitzer_example/hooks","issue_events_url":"https://api.github.com/repos/irchik/howitzer_example/issues/events{/number}","events_url":"https://api.github.com/repos/irchik/howitzer_example/events","assignees_url":"https://api.github.com/repos/irchik/howitzer_example/assignees{/user}","branches_url":"https://api.github.com/repos/irchik/howitzer_example/branches{/branch}","tags_url":"https://api.github.com/repos/irchik/howitzer_example/tags","blobs_url":"https://api.github.com/repos/irchik/howitzer_example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irchik/howitzer_example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irchik/howitzer_example/git/refs{/sha}","trees_url":"https://api.github.com/repos/irchik/howitzer_example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irchik/howitzer_example/statuses/{sha}","languages_url":"https://api.github.com/repos/irchik/howitzer_example/languages","stargazers_url":"https://api.github.com/repos/irchik/howitzer_example/stargazers","contributors_url":"https://api.github.com/repos/irchik/howitzer_example/contributors","subscribers_url":"https://api.github.com/repos/irchik/howitzer_example/subscribers","subscription_url":"https://api.github.com/repos/irchik/howitzer_example/subscription","commits_url":"https://api.github.com/repos/irchik/howitzer_example/commits{/sha}","git_commits_url":"https://api.github.com/repos/irchik/howitzer_example/git/commits{/sha}","comments_url":"https://api.github.com/repos/irchik/howitzer_example/comments{/number}","issue_comment_url":"https://api.github.com/repos/irchik/howitzer_example/issues/comments{/number}","contents_url":"https://api.github.com/repos/irchik/howitzer_example/contents/{+path}","compare_url":"https://api.github.com/repos/irchik/howitzer_example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irchik/howitzer_example/merges","archive_url":"https://api.github.com/repos/irchik/howitzer_example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irchik/howitzer_example/downloads","issues_url":"https://api.github.com/repos/irchik/howitzer_example/issues{/number}","pulls_url":"https://api.github.com/repos/irchik/howitzer_example/pulls{/number}","milestones_url":"https://api.github.com/repos/irchik/howitzer_example/milestones{/number}","notifications_url":"https://api.github.com/repos/irchik/howitzer_example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irchik/howitzer_example/labels{/name}","releases_url":"https://api.github.com/repos/irchik/howitzer_example/releases{/id}","created_at":"2015-03-18T21:03:56Z","updated_at":"2015-04-01T21:54:19Z","pushed_at":"2015-04-01T21:54:19Z","git_url":"git://github.com/irchik/howitzer_example.git","ssh_url":"git@github.com:irchik/howitzer_example.git","clone_url":"https://github.com/irchik/howitzer_example.git","svn_url":"https://github.com/irchik/howitzer_example","homepage":null,"size":320,"stargazers_count":0,"watchers_count":0,"language":"Cucumber","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"strongqa:master","ref":"master","sha":"cddf815f956d879fbfe4406cf885e8bdd5515a27","user":{"login":"strongqa","id":7290435,"avatar_url":"https://avatars.githubusercontent.com/u/7290435?v=3","gravatar_id":"","url":"https://api.github.com/users/strongqa","html_url":"https://github.com/strongqa","followers_url":"https://api.github.com/users/strongqa/followers","following_url":"https://api.github.com/users/strongqa/following{/other_user}","gists_url":"https://api.github.com/users/strongqa/gists{/gist_id}","starred_url":"https://api.github.com/users/strongqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongqa/subscriptions","organizations_url":"https://api.github.com/users/strongqa/orgs","repos_url":"https://api.github.com/users/strongqa/repos","events_url":"https://api.github.com/users/strongqa/events{/privacy}","received_events_url":"https://api.github.com/users/strongqa/received_events","type":"Organization","site_admin":false},"repo":{"id":18636985,"name":"howitzer_example","full_name":"strongqa/howitzer_example","owner":{"login":"strongqa","id":7290435,"avatar_url":"https://avatars.githubusercontent.com/u/7290435?v=3","gravatar_id":"","url":"https://api.github.com/users/strongqa","html_url":"https://github.com/strongqa","followers_url":"https://api.github.com/users/strongqa/followers","following_url":"https://api.github.com/users/strongqa/following{/other_user}","gists_url":"https://api.github.com/users/strongqa/gists{/gist_id}","starred_url":"https://api.github.com/users/strongqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongqa/subscriptions","organizations_url":"https://api.github.com/users/strongqa/orgs","repos_url":"https://api.github.com/users/strongqa/repos","events_url":"https://api.github.com/users/strongqa/events{/privacy}","received_events_url":"https://api.github.com/users/strongqa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongqa/howitzer_example","description":"Howitzer example project for demo web application ","fork":false,"url":"https://api.github.com/repos/strongqa/howitzer_example","forks_url":"https://api.github.com/repos/strongqa/howitzer_example/forks","keys_url":"https://api.github.com/repos/strongqa/howitzer_example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongqa/howitzer_example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongqa/howitzer_example/teams","hooks_url":"https://api.github.com/repos/strongqa/howitzer_example/hooks","issue_events_url":"https://api.github.com/repos/strongqa/howitzer_example/issues/events{/number}","events_url":"https://api.github.com/repos/strongqa/howitzer_example/events","assignees_url":"https://api.github.com/repos/strongqa/howitzer_example/assignees{/user}","branches_url":"https://api.github.com/repos/strongqa/howitzer_example/branches{/branch}","tags_url":"https://api.github.com/repos/strongqa/howitzer_example/tags","blobs_url":"https://api.github.com/repos/strongqa/howitzer_example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongqa/howitzer_example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongqa/howitzer_example/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongqa/howitzer_example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongqa/howitzer_example/statuses/{sha}","languages_url":"https://api.github.com/repos/strongqa/howitzer_example/languages","stargazers_url":"https://api.github.com/repos/strongqa/howitzer_example/stargazers","contributors_url":"https://api.github.com/repos/strongqa/howitzer_example/contributors","subscribers_url":"https://api.github.com/repos/strongqa/howitzer_example/subscribers","subscription_url":"https://api.github.com/repos/strongqa/howitzer_example/subscription","commits_url":"https://api.github.com/repos/strongqa/howitzer_example/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongqa/howitzer_example/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongqa/howitzer_example/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongqa/howitzer_example/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongqa/howitzer_example/contents/{+path}","compare_url":"https://api.github.com/repos/strongqa/howitzer_example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongqa/howitzer_example/merges","archive_url":"https://api.github.com/repos/strongqa/howitzer_example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongqa/howitzer_example/downloads","issues_url":"https://api.github.com/repos/strongqa/howitzer_example/issues{/number}","pulls_url":"https://api.github.com/repos/strongqa/howitzer_example/pulls{/number}","milestones_url":"https://api.github.com/repos/strongqa/howitzer_example/milestones{/number}","notifications_url":"https://api.github.com/repos/strongqa/howitzer_example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongqa/howitzer_example/labels{/name}","releases_url":"https://api.github.com/repos/strongqa/howitzer_example/releases{/id}","created_at":"2014-04-10T13:14:46Z","updated_at":"2015-03-30T20:41:27Z","pushed_at":"2015-04-01T21:56:46Z","git_url":"git://github.com/strongqa/howitzer_example.git","ssh_url":"git@github.com:strongqa/howitzer_example.git","clone_url":"https://github.com/strongqa/howitzer_example.git","svn_url":"https://github.com/strongqa/howitzer_example","homepage":null,"size":1053,"stargazers_count":4,"watchers_count":4,"language":"Cucumber","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":14,"forks":6,"open_issues":14,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51"},"html":{"href":"https://github.com/strongqa/howitzer_example/pull/51"},"issue":{"href":"https://api.github.com/repos/strongqa/howitzer_example/issues/51"},"comments":{"href":"https://api.github.com/repos/strongqa/howitzer_example/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/strongqa/howitzer_example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongqa/howitzer_example/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/strongqa/howitzer_example/statuses/52a2351c10fa8811979eb6fa2bbf5b26a8815228"}}}}