{"action":"created","comment":{"url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/comments/40501069","id":40501069,"diff_hunk":"@@ -10,14 +11,69 @@\n       fill_in('new_user[password]', with: 'pass')\n       fill_in('new_user[password_confirmation]', with: 'pass')\n       click_button \"Create\"\n-      expect(current_path).to eq(dashboard_path)\n       click_link(\"Logout\")\n+    end\n+\n+    it \"logs in the new user properly with valid info submitted\" do\n       click_link(\"Login\")\n-      fill_in(\"Email\", with: \"J@gmail.com\")\n+      fill_in(\"Email\", with: 'J@gmail.com')\n       fill_in(\"Password\", with: 'pass')\n-      click_button 'Login'\n+      click_button \"Login\"\n       expect(current_path).to eq(dashboard_path)\n     end\n \n+    it \"won't allow a logged in user to log in\" do\n+      click_link(\"Login\")\n+      fill_in(\"Email\", with: 'J@gmail.com')\n+      fill_in(\"Password\", with: 'pass')\n+      click_button \"Login\"\n+      visit '/login'\n+      expect(page).to have_content(\"Please log out Before switching User\")\n+      expect(page).not_to have_content(\"Login\")\n+    end\n+  end\n+\n+  describe \"the registered user can't log in with invalid info\" do\n+    before(:each) do\n+      visit \"/\"\n+      click_link(\"Create Account\")\n+      fill_in('new_user[email]', with: 'J@gmail.com')\n+      fill_in('new_user[user_name]', with: 'Jeffy')\n+      fill_in('new_user[password]', with: 'pass')","path":"spec/features/user_login_logout_functionality_spec.rb","position":47,"original_position":47,"commit_id":"9ef3d98ef49fbdab3fa2f4524f5cb0e31a108fd1","original_commit_id":"9ef3d98ef49fbdab3fa2f4524f5cb0e31a108fd1","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-09-27T03:49:00Z","updated_at":"2015-09-27T03:49:00Z","html_url":"https://github.com/HoffsMH/dad_jokes_for_days/pull/70#discussion_r40501069","pull_request_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/comments/40501069"},"html":{"href":"https://github.com/HoffsMH/dad_jokes_for_days/pull/70#discussion_r40501069"},"pull_request":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70","id":46094648,"html_url":"https://github.com/HoffsMH/dad_jokes_for_days/pull/70","diff_url":"https://github.com/HoffsMH/dad_jokes_for_days/pull/70.diff","patch_url":"https://github.com/HoffsMH/dad_jokes_for_days/pull/70.patch","issue_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/70","number":70,"state":"open","locked":false,"title":"tests login and log out scenarios","user":{"login":"Jpease1020","id":10360311,"avatar_url":"https://avatars.githubusercontent.com/u/10360311?v=3","gravatar_id":"","url":"https://api.github.com/users/Jpease1020","html_url":"https://github.com/Jpease1020","followers_url":"https://api.github.com/users/Jpease1020/followers","following_url":"https://api.github.com/users/Jpease1020/following{/other_user}","gists_url":"https://api.github.com/users/Jpease1020/gists{/gist_id}","starred_url":"https://api.github.com/users/Jpease1020/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jpease1020/subscriptions","organizations_url":"https://api.github.com/users/Jpease1020/orgs","repos_url":"https://api.github.com/users/Jpease1020/repos","events_url":"https://api.github.com/users/Jpease1020/events{/privacy}","received_events_url":"https://api.github.com/users/Jpease1020/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-27T03:48:57Z","updated_at":"2015-09-27T03:49:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a513c858a87d458522018e007694e6c8e6c6f8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70/commits","review_comments_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70/comments","review_comment_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/70/comments","statuses_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/statuses/9ef3d98ef49fbdab3fa2f4524f5cb0e31a108fd1","head":{"label":"HoffsMH:login-logout-test","ref":"login-logout-test","sha":"9ef3d98ef49fbdab3fa2f4524f5cb0e31a108fd1","user":{"login":"HoffsMH","id":10203160,"avatar_url":"https://avatars.githubusercontent.com/u/10203160?v=3","gravatar_id":"","url":"https://api.github.com/users/HoffsMH","html_url":"https://github.com/HoffsMH","followers_url":"https://api.github.com/users/HoffsMH/followers","following_url":"https://api.github.com/users/HoffsMH/following{/other_user}","gists_url":"https://api.github.com/users/HoffsMH/gists{/gist_id}","starred_url":"https://api.github.com/users/HoffsMH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoffsMH/subscriptions","organizations_url":"https://api.github.com/users/HoffsMH/orgs","repos_url":"https://api.github.com/users/HoffsMH/repos","events_url":"https://api.github.com/users/HoffsMH/events{/privacy}","received_events_url":"https://api.github.com/users/HoffsMH/received_events","type":"User","site_admin":false},"repo":{"id":42894784,"name":"dad_jokes_for_days","full_name":"HoffsMH/dad_jokes_for_days","owner":{"login":"HoffsMH","id":10203160,"avatar_url":"https://avatars.githubusercontent.com/u/10203160?v=3","gravatar_id":"","url":"https://api.github.com/users/HoffsMH","html_url":"https://github.com/HoffsMH","followers_url":"https://api.github.com/users/HoffsMH/followers","following_url":"https://api.github.com/users/HoffsMH/following{/other_user}","gists_url":"https://api.github.com/users/HoffsMH/gists{/gist_id}","starred_url":"https://api.github.com/users/HoffsMH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoffsMH/subscriptions","organizations_url":"https://api.github.com/users/HoffsMH/orgs","repos_url":"https://api.github.com/users/HoffsMH/repos","events_url":"https://api.github.com/users/HoffsMH/events{/privacy}","received_events_url":"https://api.github.com/users/HoffsMH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HoffsMH/dad_jokes_for_days","description":"We got the dad jokes","fork":false,"url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days","forks_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/forks","keys_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/teams","hooks_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/hooks","issue_events_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/events{/number}","events_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/events","assignees_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/assignees{/user}","branches_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/branches{/branch}","tags_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/tags","blobs_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/refs{/sha}","trees_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/statuses/{sha}","languages_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/languages","stargazers_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/stargazers","contributors_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/contributors","subscribers_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/subscribers","subscription_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/subscription","commits_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/commits{/sha}","git_commits_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/commits{/sha}","comments_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/comments{/number}","issue_comment_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/comments{/number}","contents_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/contents/{+path}","compare_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/merges","archive_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/downloads","issues_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues{/number}","pulls_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls{/number}","milestones_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/milestones{/number}","notifications_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/labels{/name}","releases_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/releases{/id}","created_at":"2015-09-21T21:31:46Z","updated_at":"2015-09-26T22:00:42Z","pushed_at":"2015-09-27T03:48:57Z","git_url":"git://github.com/HoffsMH/dad_jokes_for_days.git","ssh_url":"git@github.com:HoffsMH/dad_jokes_for_days.git","clone_url":"https://github.com/HoffsMH/dad_jokes_for_days.git","svn_url":"https://github.com/HoffsMH/dad_jokes_for_days","homepage":null,"size":8912,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"HoffsMH:master","ref":"master","sha":"0b83bb3cba1969471fc56e62a6927fb39aa03742","user":{"login":"HoffsMH","id":10203160,"avatar_url":"https://avatars.githubusercontent.com/u/10203160?v=3","gravatar_id":"","url":"https://api.github.com/users/HoffsMH","html_url":"https://github.com/HoffsMH","followers_url":"https://api.github.com/users/HoffsMH/followers","following_url":"https://api.github.com/users/HoffsMH/following{/other_user}","gists_url":"https://api.github.com/users/HoffsMH/gists{/gist_id}","starred_url":"https://api.github.com/users/HoffsMH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoffsMH/subscriptions","organizations_url":"https://api.github.com/users/HoffsMH/orgs","repos_url":"https://api.github.com/users/HoffsMH/repos","events_url":"https://api.github.com/users/HoffsMH/events{/privacy}","received_events_url":"https://api.github.com/users/HoffsMH/received_events","type":"User","site_admin":false},"repo":{"id":42894784,"name":"dad_jokes_for_days","full_name":"HoffsMH/dad_jokes_for_days","owner":{"login":"HoffsMH","id":10203160,"avatar_url":"https://avatars.githubusercontent.com/u/10203160?v=3","gravatar_id":"","url":"https://api.github.com/users/HoffsMH","html_url":"https://github.com/HoffsMH","followers_url":"https://api.github.com/users/HoffsMH/followers","following_url":"https://api.github.com/users/HoffsMH/following{/other_user}","gists_url":"https://api.github.com/users/HoffsMH/gists{/gist_id}","starred_url":"https://api.github.com/users/HoffsMH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoffsMH/subscriptions","organizations_url":"https://api.github.com/users/HoffsMH/orgs","repos_url":"https://api.github.com/users/HoffsMH/repos","events_url":"https://api.github.com/users/HoffsMH/events{/privacy}","received_events_url":"https://api.github.com/users/HoffsMH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HoffsMH/dad_jokes_for_days","description":"We got the dad jokes","fork":false,"url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days","forks_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/forks","keys_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/teams","hooks_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/hooks","issue_events_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/events{/number}","events_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/events","assignees_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/assignees{/user}","branches_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/branches{/branch}","tags_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/tags","blobs_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/refs{/sha}","trees_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/statuses/{sha}","languages_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/languages","stargazers_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/stargazers","contributors_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/contributors","subscribers_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/subscribers","subscription_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/subscription","commits_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/commits{/sha}","git_commits_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/git/commits{/sha}","comments_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/comments{/number}","issue_comment_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/comments{/number}","contents_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/contents/{+path}","compare_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/merges","archive_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/downloads","issues_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues{/number}","pulls_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls{/number}","milestones_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/milestones{/number}","notifications_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/labels{/name}","releases_url":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/releases{/id}","created_at":"2015-09-21T21:31:46Z","updated_at":"2015-09-26T22:00:42Z","pushed_at":"2015-09-27T03:48:57Z","git_url":"git://github.com/HoffsMH/dad_jokes_for_days.git","ssh_url":"git@github.com:HoffsMH/dad_jokes_for_days.git","clone_url":"https://github.com/HoffsMH/dad_jokes_for_days.git","svn_url":"https://github.com/HoffsMH/dad_jokes_for_days","homepage":null,"size":8912,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70"},"html":{"href":"https://github.com/HoffsMH/dad_jokes_for_days/pull/70"},"issue":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/70"},"comments":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/HoffsMH/dad_jokes_for_days/statuses/9ef3d98ef49fbdab3fa2f4524f5cb0e31a108fd1"}}}}