{"action":"created","comment":{"url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/comments/112684019","pull_request_review_id":34019086,"id":112684019,"diff_hunk":"@@ -0,0 +1,134 @@\n+require 'rails_helper'\n+\n+feature \"Sign up\" do\n+  # As a prospective user\n+  # I want to create an account\n+  # So that I can post venues and review them\n+\n+  scenario \"Specifying valid and required information\" do\n+    visit root_path\n+    click_link 'Sign Up'\n+    fill_in 'Username', with: 'skohto'\n+    fill_in 'Password', with: 'password123'\n+    fill_in 'Password Confirmation', with: 'password123'\n+    fill_in 'Email', with: 'sakura@dts.com'\n+\n+    click_button 'Sign Up'\n+\n+    expect(page).to have_content \"Welcome! You have signed up successfully.\"\n+    expect(page).to have_content \"Signed in as skohto\"\n+    expect(page).not_to have_content \"Sign Up\"\n+    expect(page).not_to have_content \"Sign In\"\n+    expect(page).to have_content \"Sign Out\"\n+  end\n+\n+  scenario \"User omits required information\" do\n+    visit root_path\n+    click_link 'Sign Up'\n+    click_button 'Sign Up'\n+\n+    expect(page).to have_content \"Username can't be blank\"\n+    expect(page).to have_content \"Password can't be blank\"\n+    expect(page).to have_content \"Email can't be blank\"\n+  end\n+\n+  scenario \"User gives invalid information\" do\n+    visit root_path\n+    click_link 'Sign Up'\n+    fill_in 'Username', with: 'mkaiba'\n+    fill_in 'Password', with: '123'\n+    fill_in 'Password Confirmation', with: '321'\n+    fill_in 'Email', with: 'skohto@dts'\n+    click_button 'Sign Up'\n+\n+    expect(page).to have_content \"Password is too short (minimum is 6 characters)\"\n+    expect(page).to have_content \"Password confirmation doesn't match Password\"\n+    expect(page).to have_content \"Email is not formatted properly\"\n+  end\n+\n+  scenario \"User gives email address that already has an account\" do\n+    user = FactoryGirl.create(:user)\n+\n+    visit root_path\n+    click_link 'Sign Up'\n+    fill_in 'Username', with: 'skaiba'\n+    fill_in 'Password', with: 'password123'\n+    fill_in 'Password Confirmation', with: 'password123'\n+    fill_in 'Email', with: user.email\n+    click_button 'Sign Up'\n+\n+    expect(page).to have_content \"An account already exists for that email address!\"\n+  end\n+\n+  scenario \"User gives username that already has an account\" do\n+    user = FactoryGirl.create(:user,\n+      username: \"skohto\")\n+\n+    visit root_path\n+    click_link 'Sign Up'\n+    fill_in 'Username', with: 'skohto'\n+    fill_in 'Password', with: 'password123'\n+    fill_in 'Password Confirmation', with: 'password123'\n+    fill_in 'Email', with: 'skaiba@kaibacorp.com'\n+    click_button 'Sign Up'\n+\n+    expect(page).to have_content \"An account already exists for that username!\"\n+  end\n+end\n+\n+feature \"sign in\" do\n+  # As an unauthenticated user\n+  # I want to sign in\n+  # So that I can post venues and review them\n+\n+  scenario \"user signs in successfully\" do\n+    user = FactoryGirl.create(:user)\n+\n+    visit root_path\n+    click_link 'Sign In'\n+    fill_in 'Username', with: user.username\n+    fill_in 'Password', with: \"password123\"\n+    click_button 'Sign In'\n+\n+    expect(page).to have_content \"Welcome back!\"\n+    expect(page).to have_content \"Signed in as #{user.username}\"\n+    expect(page).not_to have_content \"Sign Up\"\n+    expect(page).not_to have_content \"Sign In\"\n+    expect(page).to have_content \"Sign Out\"\n+  end\n+\n+  scenario \"user enters incorrect password\" do\n+    user = FactoryGirl.create(:user)\n+\n+    visit root_path\n+    click_link 'Sign In'\n+    fill_in 'Username', with: user.username\n+    fill_in 'Password', with: 'wrongpassword'\n+    click_button 'Sign In'\n+\n+    expect(page).to have_content \"Sorry! Invalid Username or Password. Please try again.\"","path":"spec/features/01_user_signs_into_site_spec.rb","position":109,"original_position":109,"commit_id":"26e1dc2c7ba4b17d1c5c2e9e94c1a0b2d6dd8c6d","original_commit_id":"26e1dc2c7ba4b17d1c5c2e9e94c1a0b2d6dd8c6d","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.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. [89/80]","created_at":"2017-04-21T13:14:12Z","updated_at":"2017-04-21T13:14:13Z","html_url":"https://github.com/kisaraofpern/kaiwa/pull/1#discussion_r112684019","pull_request_url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/comments/112684019"},"html":{"href":"https://github.com/kisaraofpern/kaiwa/pull/1#discussion_r112684019"},"pull_request":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1","id":116982428,"html_url":"https://github.com/kisaraofpern/kaiwa/pull/1","diff_url":"https://github.com/kisaraofpern/kaiwa/pull/1.diff","patch_url":"https://github.com/kisaraofpern/kaiwa/pull/1.patch","issue_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/1","number":1,"state":"open","locked":false,"title":"Install devise","user":{"login":"kisaraofpern","id":24724261,"avatar_url":"https://avatars3.githubusercontent.com/u/24724261?v=3","gravatar_id":"","url":"https://api.github.com/users/kisaraofpern","html_url":"https://github.com/kisaraofpern","followers_url":"https://api.github.com/users/kisaraofpern/followers","following_url":"https://api.github.com/users/kisaraofpern/following{/other_user}","gists_url":"https://api.github.com/users/kisaraofpern/gists{/gist_id}","starred_url":"https://api.github.com/users/kisaraofpern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisaraofpern/subscriptions","organizations_url":"https://api.github.com/users/kisaraofpern/orgs","repos_url":"https://api.github.com/users/kisaraofpern/repos","events_url":"https://api.github.com/users/kisaraofpern/events{/privacy}","received_events_url":"https://api.github.com/users/kisaraofpern/received_events","type":"User","site_admin":false},"body":"Installed devise and completed tests for basic user functionality.","created_at":"2017-04-21T13:14:00Z","updated_at":"2017-04-21T13:14:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"302752073231fa9ef9571ddda9a1683e73b234ff","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/1/comments","statuses_url":"https://api.github.com/repos/kisaraofpern/kaiwa/statuses/26e1dc2c7ba4b17d1c5c2e9e94c1a0b2d6dd8c6d","head":{"label":"kisaraofpern:install_devise","ref":"install_devise","sha":"26e1dc2c7ba4b17d1c5c2e9e94c1a0b2d6dd8c6d","user":{"login":"kisaraofpern","id":24724261,"avatar_url":"https://avatars3.githubusercontent.com/u/24724261?v=3","gravatar_id":"","url":"https://api.github.com/users/kisaraofpern","html_url":"https://github.com/kisaraofpern","followers_url":"https://api.github.com/users/kisaraofpern/followers","following_url":"https://api.github.com/users/kisaraofpern/following{/other_user}","gists_url":"https://api.github.com/users/kisaraofpern/gists{/gist_id}","starred_url":"https://api.github.com/users/kisaraofpern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisaraofpern/subscriptions","organizations_url":"https://api.github.com/users/kisaraofpern/orgs","repos_url":"https://api.github.com/users/kisaraofpern/repos","events_url":"https://api.github.com/users/kisaraofpern/events{/privacy}","received_events_url":"https://api.github.com/users/kisaraofpern/received_events","type":"User","site_admin":false},"repo":{"id":88804937,"name":"kaiwa","full_name":"kisaraofpern/kaiwa","owner":{"login":"kisaraofpern","id":24724261,"avatar_url":"https://avatars3.githubusercontent.com/u/24724261?v=3","gravatar_id":"","url":"https://api.github.com/users/kisaraofpern","html_url":"https://github.com/kisaraofpern","followers_url":"https://api.github.com/users/kisaraofpern/followers","following_url":"https://api.github.com/users/kisaraofpern/following{/other_user}","gists_url":"https://api.github.com/users/kisaraofpern/gists{/gist_id}","starred_url":"https://api.github.com/users/kisaraofpern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisaraofpern/subscriptions","organizations_url":"https://api.github.com/users/kisaraofpern/orgs","repos_url":"https://api.github.com/users/kisaraofpern/repos","events_url":"https://api.github.com/users/kisaraofpern/events{/privacy}","received_events_url":"https://api.github.com/users/kisaraofpern/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kisaraofpern/kaiwa","description":null,"fork":false,"url":"https://api.github.com/repos/kisaraofpern/kaiwa","forks_url":"https://api.github.com/repos/kisaraofpern/kaiwa/forks","keys_url":"https://api.github.com/repos/kisaraofpern/kaiwa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kisaraofpern/kaiwa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kisaraofpern/kaiwa/teams","hooks_url":"https://api.github.com/repos/kisaraofpern/kaiwa/hooks","issue_events_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/events{/number}","events_url":"https://api.github.com/repos/kisaraofpern/kaiwa/events","assignees_url":"https://api.github.com/repos/kisaraofpern/kaiwa/assignees{/user}","branches_url":"https://api.github.com/repos/kisaraofpern/kaiwa/branches{/branch}","tags_url":"https://api.github.com/repos/kisaraofpern/kaiwa/tags","blobs_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/refs{/sha}","trees_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kisaraofpern/kaiwa/statuses/{sha}","languages_url":"https://api.github.com/repos/kisaraofpern/kaiwa/languages","stargazers_url":"https://api.github.com/repos/kisaraofpern/kaiwa/stargazers","contributors_url":"https://api.github.com/repos/kisaraofpern/kaiwa/contributors","subscribers_url":"https://api.github.com/repos/kisaraofpern/kaiwa/subscribers","subscription_url":"https://api.github.com/repos/kisaraofpern/kaiwa/subscription","commits_url":"https://api.github.com/repos/kisaraofpern/kaiwa/commits{/sha}","git_commits_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/commits{/sha}","comments_url":"https://api.github.com/repos/kisaraofpern/kaiwa/comments{/number}","issue_comment_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/comments{/number}","contents_url":"https://api.github.com/repos/kisaraofpern/kaiwa/contents/{+path}","compare_url":"https://api.github.com/repos/kisaraofpern/kaiwa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kisaraofpern/kaiwa/merges","archive_url":"https://api.github.com/repos/kisaraofpern/kaiwa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kisaraofpern/kaiwa/downloads","issues_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues{/number}","pulls_url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls{/number}","milestones_url":"https://api.github.com/repos/kisaraofpern/kaiwa/milestones{/number}","notifications_url":"https://api.github.com/repos/kisaraofpern/kaiwa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kisaraofpern/kaiwa/labels{/name}","releases_url":"https://api.github.com/repos/kisaraofpern/kaiwa/releases{/id}","deployments_url":"https://api.github.com/repos/kisaraofpern/kaiwa/deployments","created_at":"2017-04-20T00:56:16Z","updated_at":"2017-04-21T00:16:09Z","pushed_at":"2017-04-21T13:14:00Z","git_url":"git://github.com/kisaraofpern/kaiwa.git","ssh_url":"git@github.com:kisaraofpern/kaiwa.git","clone_url":"https://github.com/kisaraofpern/kaiwa.git","svn_url":"https://github.com/kisaraofpern/kaiwa","homepage":null,"size":56,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kisaraofpern:master","ref":"master","sha":"d445cb39fdad50d2b90cef3fd6ac0438c7cc6c70","user":{"login":"kisaraofpern","id":24724261,"avatar_url":"https://avatars3.githubusercontent.com/u/24724261?v=3","gravatar_id":"","url":"https://api.github.com/users/kisaraofpern","html_url":"https://github.com/kisaraofpern","followers_url":"https://api.github.com/users/kisaraofpern/followers","following_url":"https://api.github.com/users/kisaraofpern/following{/other_user}","gists_url":"https://api.github.com/users/kisaraofpern/gists{/gist_id}","starred_url":"https://api.github.com/users/kisaraofpern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisaraofpern/subscriptions","organizations_url":"https://api.github.com/users/kisaraofpern/orgs","repos_url":"https://api.github.com/users/kisaraofpern/repos","events_url":"https://api.github.com/users/kisaraofpern/events{/privacy}","received_events_url":"https://api.github.com/users/kisaraofpern/received_events","type":"User","site_admin":false},"repo":{"id":88804937,"name":"kaiwa","full_name":"kisaraofpern/kaiwa","owner":{"login":"kisaraofpern","id":24724261,"avatar_url":"https://avatars3.githubusercontent.com/u/24724261?v=3","gravatar_id":"","url":"https://api.github.com/users/kisaraofpern","html_url":"https://github.com/kisaraofpern","followers_url":"https://api.github.com/users/kisaraofpern/followers","following_url":"https://api.github.com/users/kisaraofpern/following{/other_user}","gists_url":"https://api.github.com/users/kisaraofpern/gists{/gist_id}","starred_url":"https://api.github.com/users/kisaraofpern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisaraofpern/subscriptions","organizations_url":"https://api.github.com/users/kisaraofpern/orgs","repos_url":"https://api.github.com/users/kisaraofpern/repos","events_url":"https://api.github.com/users/kisaraofpern/events{/privacy}","received_events_url":"https://api.github.com/users/kisaraofpern/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kisaraofpern/kaiwa","description":null,"fork":false,"url":"https://api.github.com/repos/kisaraofpern/kaiwa","forks_url":"https://api.github.com/repos/kisaraofpern/kaiwa/forks","keys_url":"https://api.github.com/repos/kisaraofpern/kaiwa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kisaraofpern/kaiwa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kisaraofpern/kaiwa/teams","hooks_url":"https://api.github.com/repos/kisaraofpern/kaiwa/hooks","issue_events_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/events{/number}","events_url":"https://api.github.com/repos/kisaraofpern/kaiwa/events","assignees_url":"https://api.github.com/repos/kisaraofpern/kaiwa/assignees{/user}","branches_url":"https://api.github.com/repos/kisaraofpern/kaiwa/branches{/branch}","tags_url":"https://api.github.com/repos/kisaraofpern/kaiwa/tags","blobs_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/refs{/sha}","trees_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kisaraofpern/kaiwa/statuses/{sha}","languages_url":"https://api.github.com/repos/kisaraofpern/kaiwa/languages","stargazers_url":"https://api.github.com/repos/kisaraofpern/kaiwa/stargazers","contributors_url":"https://api.github.com/repos/kisaraofpern/kaiwa/contributors","subscribers_url":"https://api.github.com/repos/kisaraofpern/kaiwa/subscribers","subscription_url":"https://api.github.com/repos/kisaraofpern/kaiwa/subscription","commits_url":"https://api.github.com/repos/kisaraofpern/kaiwa/commits{/sha}","git_commits_url":"https://api.github.com/repos/kisaraofpern/kaiwa/git/commits{/sha}","comments_url":"https://api.github.com/repos/kisaraofpern/kaiwa/comments{/number}","issue_comment_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/comments{/number}","contents_url":"https://api.github.com/repos/kisaraofpern/kaiwa/contents/{+path}","compare_url":"https://api.github.com/repos/kisaraofpern/kaiwa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kisaraofpern/kaiwa/merges","archive_url":"https://api.github.com/repos/kisaraofpern/kaiwa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kisaraofpern/kaiwa/downloads","issues_url":"https://api.github.com/repos/kisaraofpern/kaiwa/issues{/number}","pulls_url":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls{/number}","milestones_url":"https://api.github.com/repos/kisaraofpern/kaiwa/milestones{/number}","notifications_url":"https://api.github.com/repos/kisaraofpern/kaiwa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kisaraofpern/kaiwa/labels{/name}","releases_url":"https://api.github.com/repos/kisaraofpern/kaiwa/releases{/id}","deployments_url":"https://api.github.com/repos/kisaraofpern/kaiwa/deployments","created_at":"2017-04-20T00:56:16Z","updated_at":"2017-04-21T00:16:09Z","pushed_at":"2017-04-21T13:14:00Z","git_url":"git://github.com/kisaraofpern/kaiwa.git","ssh_url":"git@github.com:kisaraofpern/kaiwa.git","clone_url":"https://github.com/kisaraofpern/kaiwa.git","svn_url":"https://github.com/kisaraofpern/kaiwa","homepage":null,"size":56,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1"},"html":{"href":"https://github.com/kisaraofpern/kaiwa/pull/1"},"issue":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/1"},"comments":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kisaraofpern/kaiwa/statuses/26e1dc2c7ba4b17d1c5c2e9e94c1a0b2d6dd8c6d"}}}}
{"actor":{"display_login":"houndci-bot"}}