{"action":"created","comment":{"url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/comments/111236736","pull_request_review_id":32468504,"id":111236736,"diff_hunk":"@@ -0,0 +1,58 @@\n+require 'rails_helper'\n+\n+describe \"User can login\" do\n+  before :each do\n+    @user = create(:user)\n+  end\n+  context \"when using the navbar\" do\n+    scenario \"user is directed to login page from navbar\" do\n+      visit root_path\n+\n+      click_on \"Login\"\n+\n+      expect(current_path).to eq(login_path)\n+    end\n+  end\n+  context \"when providing all information\" do\n+    scenario \"they can log in\" do\n+      visit login_path\n+\n+      fill_in \"session[email]\", with: @user.email\n+      fill_in \"session[password]\", with: @user.password\n+      click_button \"Log In\"\n+\n+      expect(current_path).to eq(user_path(@user))\n+      expect(page).to have_content(\"Welcome, #{@user.first_name}l!\")\n+      expect(page).to have_content(\"Logout\")\n+\n+      expect(page).to_not have_content \"Sign Up\"\n+      expect(page).to_not have_content \"Login\"\n+    end\n+    scenario \"they provide invalid email\" do\n+      visit login_path\n+\n+      fill_in \"session[email]\", with: \"lollllll@lol.com\"\n+      fill_in \"session[password]\", with: @user.password\n+      click_button \"Log In\"\n+\n+      expect(current_path).to eq(login_path)\n+      expect(page).to have_content(\"Invalid Username or Password!\")\n+\n+      expect(page).to have_content \"Sign Up\"\n+      expect(page).to have_content \"Login\"\n+    end\n+    scenario \"they provide invalid password\" do\n+      visit login_path\n+\n+      fill_in \"session[email]\", with: @user.email\n+      fill_in \"session[password]\", with: \"blah\"\n+      click_on \"Log In\"\n+\n+      expect(current_path).to eq(login_path)\n+      expect(page).to have_content(\"Invalid Username or Password!\")\n+\n+      expect(page).to have_content \"Sign Up\"\n+      expect(page).to have_content \"Login\"","path":"spec/features/users/user_can_login_spec.rb","position":42,"original_position":55,"commit_id":"764e58c66f5409a0a44855383e32a73482e65348","original_commit_id":"764e58c66f5409a0a44855383e32a73482e65348","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":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2017-04-12T19:15:35Z","updated_at":"2017-04-12T19:15:36Z","html_url":"https://github.com/lao9/we_can_pickle_that/pull/39#discussion_r111236736","pull_request_url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/comments/111236736"},"html":{"href":"https://github.com/lao9/we_can_pickle_that/pull/39#discussion_r111236736"},"pull_request":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39","id":115466282,"html_url":"https://github.com/lao9/we_can_pickle_that/pull/39","diff_url":"https://github.com/lao9/we_can_pickle_that/pull/39.diff","patch_url":"https://github.com/lao9/we_can_pickle_that/pull/39.patch","issue_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/39","number":39,"state":"open","locked":false,"title":"User auth lo","user":{"login":"lao9","id":4068853,"avatar_url":"https://avatars1.githubusercontent.com/u/4068853?v=3","gravatar_id":"","url":"https://api.github.com/users/lao9","html_url":"https://github.com/lao9","followers_url":"https://api.github.com/users/lao9/followers","following_url":"https://api.github.com/users/lao9/following{/other_user}","gists_url":"https://api.github.com/users/lao9/gists{/gist_id}","starred_url":"https://api.github.com/users/lao9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lao9/subscriptions","organizations_url":"https://api.github.com/users/lao9/orgs","repos_url":"https://api.github.com/users/lao9/repos","events_url":"https://api.github.com/users/lao9/events{/privacy}","received_events_url":"https://api.github.com/users/lao9/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-12T05:28:46Z","updated_at":"2017-04-12T19:15:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"698a5143932cdc3d6bffe678295cd3d81c8fd5cf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39/commits","review_comments_url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39/comments","review_comment_url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/39/comments","statuses_url":"https://api.github.com/repos/lao9/we_can_pickle_that/statuses/764e58c66f5409a0a44855383e32a73482e65348","head":{"label":"lao9:user-auth-lo","ref":"user-auth-lo","sha":"764e58c66f5409a0a44855383e32a73482e65348","user":{"login":"lao9","id":4068853,"avatar_url":"https://avatars1.githubusercontent.com/u/4068853?v=3","gravatar_id":"","url":"https://api.github.com/users/lao9","html_url":"https://github.com/lao9","followers_url":"https://api.github.com/users/lao9/followers","following_url":"https://api.github.com/users/lao9/following{/other_user}","gists_url":"https://api.github.com/users/lao9/gists{/gist_id}","starred_url":"https://api.github.com/users/lao9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lao9/subscriptions","organizations_url":"https://api.github.com/users/lao9/orgs","repos_url":"https://api.github.com/users/lao9/repos","events_url":"https://api.github.com/users/lao9/events{/privacy}","received_events_url":"https://api.github.com/users/lao9/received_events","type":"User","site_admin":false},"repo":{"id":87850452,"name":"we_can_pickle_that","full_name":"lao9/we_can_pickle_that","owner":{"login":"lao9","id":4068853,"avatar_url":"https://avatars1.githubusercontent.com/u/4068853?v=3","gravatar_id":"","url":"https://api.github.com/users/lao9","html_url":"https://github.com/lao9","followers_url":"https://api.github.com/users/lao9/followers","following_url":"https://api.github.com/users/lao9/following{/other_user}","gists_url":"https://api.github.com/users/lao9/gists{/gist_id}","starred_url":"https://api.github.com/users/lao9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lao9/subscriptions","organizations_url":"https://api.github.com/users/lao9/orgs","repos_url":"https://api.github.com/users/lao9/repos","events_url":"https://api.github.com/users/lao9/events{/privacy}","received_events_url":"https://api.github.com/users/lao9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lao9/we_can_pickle_that","description":null,"fork":false,"url":"https://api.github.com/repos/lao9/we_can_pickle_that","forks_url":"https://api.github.com/repos/lao9/we_can_pickle_that/forks","keys_url":"https://api.github.com/repos/lao9/we_can_pickle_that/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lao9/we_can_pickle_that/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lao9/we_can_pickle_that/teams","hooks_url":"https://api.github.com/repos/lao9/we_can_pickle_that/hooks","issue_events_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/events{/number}","events_url":"https://api.github.com/repos/lao9/we_can_pickle_that/events","assignees_url":"https://api.github.com/repos/lao9/we_can_pickle_that/assignees{/user}","branches_url":"https://api.github.com/repos/lao9/we_can_pickle_that/branches{/branch}","tags_url":"https://api.github.com/repos/lao9/we_can_pickle_that/tags","blobs_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/refs{/sha}","trees_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lao9/we_can_pickle_that/statuses/{sha}","languages_url":"https://api.github.com/repos/lao9/we_can_pickle_that/languages","stargazers_url":"https://api.github.com/repos/lao9/we_can_pickle_that/stargazers","contributors_url":"https://api.github.com/repos/lao9/we_can_pickle_that/contributors","subscribers_url":"https://api.github.com/repos/lao9/we_can_pickle_that/subscribers","subscription_url":"https://api.github.com/repos/lao9/we_can_pickle_that/subscription","commits_url":"https://api.github.com/repos/lao9/we_can_pickle_that/commits{/sha}","git_commits_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/commits{/sha}","comments_url":"https://api.github.com/repos/lao9/we_can_pickle_that/comments{/number}","issue_comment_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/comments{/number}","contents_url":"https://api.github.com/repos/lao9/we_can_pickle_that/contents/{+path}","compare_url":"https://api.github.com/repos/lao9/we_can_pickle_that/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lao9/we_can_pickle_that/merges","archive_url":"https://api.github.com/repos/lao9/we_can_pickle_that/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lao9/we_can_pickle_that/downloads","issues_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues{/number}","pulls_url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls{/number}","milestones_url":"https://api.github.com/repos/lao9/we_can_pickle_that/milestones{/number}","notifications_url":"https://api.github.com/repos/lao9/we_can_pickle_that/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lao9/we_can_pickle_that/labels{/name}","releases_url":"https://api.github.com/repos/lao9/we_can_pickle_that/releases{/id}","deployments_url":"https://api.github.com/repos/lao9/we_can_pickle_that/deployments","created_at":"2017-04-10T19:38:46Z","updated_at":"2017-04-10T19:44:46Z","pushed_at":"2017-04-12T19:15:20Z","git_url":"git://github.com/lao9/we_can_pickle_that.git","ssh_url":"git@github.com:lao9/we_can_pickle_that.git","clone_url":"https://github.com/lao9/we_can_pickle_that.git","svn_url":"https://github.com/lao9/we_can_pickle_that","homepage":null,"size":80,"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":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"lao9:master","ref":"master","sha":"c9e5436e3f482a039f190ba0c8f96e842e6a4065","user":{"login":"lao9","id":4068853,"avatar_url":"https://avatars1.githubusercontent.com/u/4068853?v=3","gravatar_id":"","url":"https://api.github.com/users/lao9","html_url":"https://github.com/lao9","followers_url":"https://api.github.com/users/lao9/followers","following_url":"https://api.github.com/users/lao9/following{/other_user}","gists_url":"https://api.github.com/users/lao9/gists{/gist_id}","starred_url":"https://api.github.com/users/lao9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lao9/subscriptions","organizations_url":"https://api.github.com/users/lao9/orgs","repos_url":"https://api.github.com/users/lao9/repos","events_url":"https://api.github.com/users/lao9/events{/privacy}","received_events_url":"https://api.github.com/users/lao9/received_events","type":"User","site_admin":false},"repo":{"id":87850452,"name":"we_can_pickle_that","full_name":"lao9/we_can_pickle_that","owner":{"login":"lao9","id":4068853,"avatar_url":"https://avatars1.githubusercontent.com/u/4068853?v=3","gravatar_id":"","url":"https://api.github.com/users/lao9","html_url":"https://github.com/lao9","followers_url":"https://api.github.com/users/lao9/followers","following_url":"https://api.github.com/users/lao9/following{/other_user}","gists_url":"https://api.github.com/users/lao9/gists{/gist_id}","starred_url":"https://api.github.com/users/lao9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lao9/subscriptions","organizations_url":"https://api.github.com/users/lao9/orgs","repos_url":"https://api.github.com/users/lao9/repos","events_url":"https://api.github.com/users/lao9/events{/privacy}","received_events_url":"https://api.github.com/users/lao9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lao9/we_can_pickle_that","description":null,"fork":false,"url":"https://api.github.com/repos/lao9/we_can_pickle_that","forks_url":"https://api.github.com/repos/lao9/we_can_pickle_that/forks","keys_url":"https://api.github.com/repos/lao9/we_can_pickle_that/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lao9/we_can_pickle_that/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lao9/we_can_pickle_that/teams","hooks_url":"https://api.github.com/repos/lao9/we_can_pickle_that/hooks","issue_events_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/events{/number}","events_url":"https://api.github.com/repos/lao9/we_can_pickle_that/events","assignees_url":"https://api.github.com/repos/lao9/we_can_pickle_that/assignees{/user}","branches_url":"https://api.github.com/repos/lao9/we_can_pickle_that/branches{/branch}","tags_url":"https://api.github.com/repos/lao9/we_can_pickle_that/tags","blobs_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/refs{/sha}","trees_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lao9/we_can_pickle_that/statuses/{sha}","languages_url":"https://api.github.com/repos/lao9/we_can_pickle_that/languages","stargazers_url":"https://api.github.com/repos/lao9/we_can_pickle_that/stargazers","contributors_url":"https://api.github.com/repos/lao9/we_can_pickle_that/contributors","subscribers_url":"https://api.github.com/repos/lao9/we_can_pickle_that/subscribers","subscription_url":"https://api.github.com/repos/lao9/we_can_pickle_that/subscription","commits_url":"https://api.github.com/repos/lao9/we_can_pickle_that/commits{/sha}","git_commits_url":"https://api.github.com/repos/lao9/we_can_pickle_that/git/commits{/sha}","comments_url":"https://api.github.com/repos/lao9/we_can_pickle_that/comments{/number}","issue_comment_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/comments{/number}","contents_url":"https://api.github.com/repos/lao9/we_can_pickle_that/contents/{+path}","compare_url":"https://api.github.com/repos/lao9/we_can_pickle_that/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lao9/we_can_pickle_that/merges","archive_url":"https://api.github.com/repos/lao9/we_can_pickle_that/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lao9/we_can_pickle_that/downloads","issues_url":"https://api.github.com/repos/lao9/we_can_pickle_that/issues{/number}","pulls_url":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls{/number}","milestones_url":"https://api.github.com/repos/lao9/we_can_pickle_that/milestones{/number}","notifications_url":"https://api.github.com/repos/lao9/we_can_pickle_that/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lao9/we_can_pickle_that/labels{/name}","releases_url":"https://api.github.com/repos/lao9/we_can_pickle_that/releases{/id}","deployments_url":"https://api.github.com/repos/lao9/we_can_pickle_that/deployments","created_at":"2017-04-10T19:38:46Z","updated_at":"2017-04-10T19:44:46Z","pushed_at":"2017-04-12T19:15:20Z","git_url":"git://github.com/lao9/we_can_pickle_that.git","ssh_url":"git@github.com:lao9/we_can_pickle_that.git","clone_url":"https://github.com/lao9/we_can_pickle_that.git","svn_url":"https://github.com/lao9/we_can_pickle_that","homepage":null,"size":80,"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":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39"},"html":{"href":"https://github.com/lao9/we_can_pickle_that/pull/39"},"issue":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/39"},"comments":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/lao9/we_can_pickle_that/statuses/764e58c66f5409a0a44855383e32a73482e65348"}}}}
{"actor":{"display_login":"houndci-bot"}}