{"action":"created","comment":{"url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments/81752568","pull_request_review_id":2708099,"id":81752568,"diff_hunk":"@@ -0,0 +1,102 @@\n+require 'rails_helper'\n+\n+# As an unauthenticated user\n+# I want to sign in\n+# So that I can post items and review them\n+\n+# Accpetance Criteria\n+# [] Unauthenticated user visits the site and sees an option to log in.\n+# [] Unauthenticated user visits the site and clicks on the link to sign in.\n+# [] Unauthenticated user is directed to sign in page where the user can fill in username and password.\n+# [] Unauthenticated user correctly fills in the form for the sign in page and is redirected to the home page, so that you can post and review movie items.\n+# [] Unauthenticated user incorrectly fills in the form for the sign in page and is redirected to the sign in page where the site tells the user to try again because username is incorrect.\n+# [] Unauthenticated user correctly fills in the username, but types in incorrect password. The user is then redirected to the sign in page where the site tells the user to provide the correct password.\n+# [] Unauthenticated user signs in and clicks on a movie to make a review\n+\n+\n+feature \"Unauthenticated user\" do\n+  context \"as as unauthenticated user\" do\n+    user1 = User.create(first_name: \"John\", last_name: \"Doe\", username: \"johndoe\", email: \"john@doe.com\", password: \"abcdef1\",  newsletter: true)\n+    movie1 = Movie.create(title: \"Citizen Kane\", studio: \"Studio\", year: 1940, rating: \"R\", genre: \"drama\", cast: \"Cast Member 1, Cast Member 2\", director: \"Director 1\", screen_writer: \"Screen Writer 1\")\n+\n+    scenario \"sees sign in link\" do\n+      visit \"/\"\n+      expect(page).to have_link(\"Sign In\")\n+    end\n+\n+    scenario \"click sign up link and see fields to complete form registration\" do\n+      visit \"/\"\n+      click_link(\"Sign In\")\n+      expect(page).to have_content(\"Email\")\n+      expect(page).to have_content(\"Password\")\n+    end\n+\n+    scenario \"user fills in sign-in form correctly and is redirected to the homepage\" do\n+      user1 = User.create(first_name: \"John\", last_name: \"Doe\", username: \"johndoe\", email: \"john@doe.com\", password: \"abcdef1\",  newsletter: true)\n+      visit \"/\"\n+      click_link(\"Sign In\")\n+      fill_in \"Email\", with: user1.email\n+      fill_in \"Password\", with: user1.password\n+      click_button \"Sign In\"\n+      expect(page).to have_content(\"Welcome to Cinephile!\")\n+      expect(page).to have_current_path(\"/\")\n+    end\n+\n+    scenario \"user fills in sign-in form correctly and sees flash message confirming signin\" do\n+      user1 = User.create(first_name: \"John\", last_name: \"Doe\", username: \"johndoe\", email: \"john@doe.com\", password: \"abcdef1\",  newsletter: true)\n+      visit \"/\"\n+      click_link(\"Sign In\")\n+      fill_in \"Email\", with: user1.email\n+      fill_in \"Password\", with: user1.password\n+      click_button \"Sign In\"\n+      expect(page).to have_content(\"Welcome to Cinephile!\")\n+      expect(page).to have_current_path(\"/\")\n+      expect(page).to have_content(\"Signed in successfully.\")\n+    end\n+\n+    scenario \"user fills in sign-in form incorrectly and sees flash message with error\" do\n+      user1 = User.create(first_name: \"John\", last_name: \"Doe\", username: \"johndoe\", email: \"john@doe.com\", password: \"abcdef1\",  newsletter: true)\n+      visit \"/\"\n+      click_link(\"Sign In\")\n+      fill_in \"Email\", with: \"incorrect\"\n+      fill_in \"Password\", with: user1.password\n+      click_button \"Sign In\"\n+      expect(page).to have_current_path(new_user_session_path)\n+      expect(page).to have_content(\"Invalid Email or password.\")\n+    end\n+\n+    scenario \"user fills in sign-up form incorrectly and sees flash message with error\" do\n+      user1 = User.create(first_name: \"John\", last_name: \"Doe\", username: \"johndoe\", email: \"john@doe.com\", password: \"abcdef1\",  newsletter: true)\n+      visit \"/\"\n+      click_link(\"Sign In\")\n+      fill_in \"Email\", with: user1.email\n+      fill_in \"Password\", with: \"incorrect\"\n+      click_button \"Sign In\"\n+      expect(page).to have_current_path(new_user_session_path)\n+      expect(page).to have_content(\"Invalid Email or password.\")\n+    end\n+\n+    scenario \"user fills in sign-in form correctly, sees flash message confirming signin, and successfully clicks on a movie_link.\" do\n+      user1 = User.create(first_name: \"John\", last_name: \"Doe\", username: \"johndoe\", email: \"john@doe.com\", password: \"abcdef1\",  newsletter: true)\n+      movie1 = Movie.create(title: \"Citizen Kane\", studio: \"Studio\", year: 1940, rating: \"R\", genre: \"drama\", cast: \"Cast Member 1, Cast Member 2\", director: \"Director 1\", screen_writer: \"Screen Writer 1\")\n+      visit \"/\"\n+      click_link(\"Sign In\")\n+      fill_in \"Email\", with: user1.email\n+      fill_in \"Password\", with: user1.password\n+      click_button \"Sign In\"\n+      expect(page).to have_content(\"Welcome to Cinephile!\")\n+      expect(page).to have_current_path(\"/\")","path":"spec/features/02_unauthenticated_user_spec.rb","position":42,"original_position":88,"commit_id":"e0f01498c181f40e2fef1cd90756a2d45be20494","original_commit_id":"e0f01498c181f40e2fef1cd90756a2d45be20494","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":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-10-04T13:12:39Z","updated_at":"2016-10-04T13:12:39Z","html_url":"https://github.com/noahmilstein/cinephile/pull/3#discussion_r81752568","pull_request_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments/81752568"},"html":{"href":"https://github.com/noahmilstein/cinephile/pull/3#discussion_r81752568"},"pull_request":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3","id":87891040,"html_url":"https://github.com/noahmilstein/cinephile/pull/3","diff_url":"https://github.com/noahmilstein/cinephile/pull/3.diff","patch_url":"https://github.com/noahmilstein/cinephile/pull/3.patch","issue_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/3","number":3,"state":"open","locked":false,"title":"Completed tests, migrated tables, implemented logout","user":{"login":"jeffreyfriedman","id":20387583,"avatar_url":"https://avatars.githubusercontent.com/u/20387583?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffreyfriedman","html_url":"https://github.com/jeffreyfriedman","followers_url":"https://api.github.com/users/jeffreyfriedman/followers","following_url":"https://api.github.com/users/jeffreyfriedman/following{/other_user}","gists_url":"https://api.github.com/users/jeffreyfriedman/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffreyfriedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffreyfriedman/subscriptions","organizations_url":"https://api.github.com/users/jeffreyfriedman/orgs","repos_url":"https://api.github.com/users/jeffreyfriedman/repos","events_url":"https://api.github.com/users/jeffreyfriedman/events{/privacy}","received_events_url":"https://api.github.com/users/jeffreyfriedman/received_events","type":"User","site_admin":false},"body":"Completed first three user authentication tests\r\nRemoved newsletter constraint on users table\r\nimplemented logout functionality","created_at":"2016-10-04T13:12:24Z","updated_at":"2016-10-04T13:12:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7c0ce8344cf194855bc4164ddf5f6cda7a38ada","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3/commits","review_comments_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3/comments","review_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/3/comments","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/e0f01498c181f40e2fef1cd90756a2d45be20494","head":{"label":"noahmilstein:feature_tests","ref":"feature_tests","sha":"e0f01498c181f40e2fef1cd90756a2d45be20494","user":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"repo":{"id":69880248,"name":"cinephile","full_name":"noahmilstein/cinephile","owner":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noahmilstein/cinephile","description":"Cinema review site","fork":false,"url":"https://api.github.com/repos/noahmilstein/cinephile","forks_url":"https://api.github.com/repos/noahmilstein/cinephile/forks","keys_url":"https://api.github.com/repos/noahmilstein/cinephile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noahmilstein/cinephile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noahmilstein/cinephile/teams","hooks_url":"https://api.github.com/repos/noahmilstein/cinephile/hooks","issue_events_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/events{/number}","events_url":"https://api.github.com/repos/noahmilstein/cinephile/events","assignees_url":"https://api.github.com/repos/noahmilstein/cinephile/assignees{/user}","branches_url":"https://api.github.com/repos/noahmilstein/cinephile/branches{/branch}","tags_url":"https://api.github.com/repos/noahmilstein/cinephile/tags","blobs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noahmilstein/cinephile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/refs{/sha}","trees_url":"https://api.github.com/repos/noahmilstein/cinephile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/{sha}","languages_url":"https://api.github.com/repos/noahmilstein/cinephile/languages","stargazers_url":"https://api.github.com/repos/noahmilstein/cinephile/stargazers","contributors_url":"https://api.github.com/repos/noahmilstein/cinephile/contributors","subscribers_url":"https://api.github.com/repos/noahmilstein/cinephile/subscribers","subscription_url":"https://api.github.com/repos/noahmilstein/cinephile/subscription","commits_url":"https://api.github.com/repos/noahmilstein/cinephile/commits{/sha}","git_commits_url":"https://api.github.com/repos/noahmilstein/cinephile/git/commits{/sha}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/comments{/number}","issue_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/comments{/number}","contents_url":"https://api.github.com/repos/noahmilstein/cinephile/contents/{+path}","compare_url":"https://api.github.com/repos/noahmilstein/cinephile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noahmilstein/cinephile/merges","archive_url":"https://api.github.com/repos/noahmilstein/cinephile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noahmilstein/cinephile/downloads","issues_url":"https://api.github.com/repos/noahmilstein/cinephile/issues{/number}","pulls_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls{/number}","milestones_url":"https://api.github.com/repos/noahmilstein/cinephile/milestones{/number}","notifications_url":"https://api.github.com/repos/noahmilstein/cinephile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noahmilstein/cinephile/labels{/name}","releases_url":"https://api.github.com/repos/noahmilstein/cinephile/releases{/id}","deployments_url":"https://api.github.com/repos/noahmilstein/cinephile/deployments","created_at":"2016-10-03T14:45:05Z","updated_at":"2016-10-03T15:08:29Z","pushed_at":"2016-10-04T13:12:24Z","git_url":"git://github.com/noahmilstein/cinephile.git","ssh_url":"git@github.com:noahmilstein/cinephile.git","clone_url":"https://github.com/noahmilstein/cinephile.git","svn_url":"https://github.com/noahmilstein/cinephile","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"noahmilstein:master","ref":"master","sha":"27bac296f024d7c47d7c98a679d5cc9d038e4d00","user":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"repo":{"id":69880248,"name":"cinephile","full_name":"noahmilstein/cinephile","owner":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noahmilstein/cinephile","description":"Cinema review site","fork":false,"url":"https://api.github.com/repos/noahmilstein/cinephile","forks_url":"https://api.github.com/repos/noahmilstein/cinephile/forks","keys_url":"https://api.github.com/repos/noahmilstein/cinephile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noahmilstein/cinephile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noahmilstein/cinephile/teams","hooks_url":"https://api.github.com/repos/noahmilstein/cinephile/hooks","issue_events_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/events{/number}","events_url":"https://api.github.com/repos/noahmilstein/cinephile/events","assignees_url":"https://api.github.com/repos/noahmilstein/cinephile/assignees{/user}","branches_url":"https://api.github.com/repos/noahmilstein/cinephile/branches{/branch}","tags_url":"https://api.github.com/repos/noahmilstein/cinephile/tags","blobs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noahmilstein/cinephile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/refs{/sha}","trees_url":"https://api.github.com/repos/noahmilstein/cinephile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/{sha}","languages_url":"https://api.github.com/repos/noahmilstein/cinephile/languages","stargazers_url":"https://api.github.com/repos/noahmilstein/cinephile/stargazers","contributors_url":"https://api.github.com/repos/noahmilstein/cinephile/contributors","subscribers_url":"https://api.github.com/repos/noahmilstein/cinephile/subscribers","subscription_url":"https://api.github.com/repos/noahmilstein/cinephile/subscription","commits_url":"https://api.github.com/repos/noahmilstein/cinephile/commits{/sha}","git_commits_url":"https://api.github.com/repos/noahmilstein/cinephile/git/commits{/sha}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/comments{/number}","issue_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/comments{/number}","contents_url":"https://api.github.com/repos/noahmilstein/cinephile/contents/{+path}","compare_url":"https://api.github.com/repos/noahmilstein/cinephile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noahmilstein/cinephile/merges","archive_url":"https://api.github.com/repos/noahmilstein/cinephile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noahmilstein/cinephile/downloads","issues_url":"https://api.github.com/repos/noahmilstein/cinephile/issues{/number}","pulls_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls{/number}","milestones_url":"https://api.github.com/repos/noahmilstein/cinephile/milestones{/number}","notifications_url":"https://api.github.com/repos/noahmilstein/cinephile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noahmilstein/cinephile/labels{/name}","releases_url":"https://api.github.com/repos/noahmilstein/cinephile/releases{/id}","deployments_url":"https://api.github.com/repos/noahmilstein/cinephile/deployments","created_at":"2016-10-03T14:45:05Z","updated_at":"2016-10-03T15:08:29Z","pushed_at":"2016-10-04T13:12:24Z","git_url":"git://github.com/noahmilstein/cinephile.git","ssh_url":"git@github.com:noahmilstein/cinephile.git","clone_url":"https://github.com/noahmilstein/cinephile.git","svn_url":"https://github.com/noahmilstein/cinephile","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3"},"html":{"href":"https://github.com/noahmilstein/cinephile/pull/3"},"issue":{"href":"https://api.github.com/repos/noahmilstein/cinephile/issues/3"},"comments":{"href":"https://api.github.com/repos/noahmilstein/cinephile/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/noahmilstein/cinephile/statuses/e0f01498c181f40e2fef1cd90756a2d45be20494"}}}}
{"actor":{"display_login":"houndci-bot"}}