{"action":"created","comment":{"url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/comments/54837834","id":54837834,"diff_hunk":"@@ -0,0 +1,83 @@\n+require \"rails_helper\"\n+\n+RSpec.feature \"visitor can log in\" do\n+  scenario \"visitor logs in and sees dashboard\" do\n+    # As a visitor\n+    #     When I visit \"/\"\n+    visit \"/\"\n+    #     Then I should see a link for \"Login\"\n+    expect(page).to have_content(\"Login\")\n+\n+    click_on \"Create Account\"\n+\n+    fill_in \"Username\", with: \"brennan\"\n+    fill_in \"Password\", with: \"password\"\n+    #     And when I click link \"Create Account\"\n+    click_on \"Create Account\"\n+\n+    #     Then my current page should be \"/dashboard\"\n+    expect(current_path).to eq \"/dashboard\"\n+    #     And I should see a message in the navbar that says \"Logged in as SOME_USER\"\n+    expect(page).to have_content(\"Logged in as brennan\")\n+    #     And I should see my profile information\n+    expect(page).to have_content(\"Your Orders\")\n+    #     And I should see a link for \"Logout\"\n+    expect(page).to have_content(\"Logout\")\n+    #     And I should not see a link for \"Login\"\n+    expect(page).to_not have_content(\"Login\")\n+  end\n+end\n+\n+RSpec.feature \"logged in user sees items in cart put there before logging in\" do\n+  scenario \"visitor turned user sees items in cart\" do\n+    category = create(:category_with_items)\n+    user = User.create(username: \"brennan\", password: \"password\")\n+\n+    visit \"/items\"\n+    category.items.each { |item| expect(page).to have_content(item.title) }\n+\n+    within \".items\" do\n+      first(:button, \"Add to Cart\").click\n+    end\n+\n+    visit \"/cart_items\"\n+    expect(page).to have_content(category.items.first.title)\n+\n+    click_on \"Login\"\n+\n+    fill_in \"Username\", with: \"brennan\"\n+    fill_in \"Password\", with: \"password\"\n+    click_on \"Login to your account\"\n+\n+    #     And when I visit \"/cart\"\n+    visit \"/cart_items\"\n+    #     Then I should see all of the data that was there when I was not logged in\n+    expect(page).to have_content(category.items.first.title)\n+    expect(page).to_not have_content(category.items[1].title)\n+    expect(page).to_not have_content(category.items.last.title)\n+\n+  end\n+end\n+RSpec.feature \"clicking logout ends session and changes login/out link\" do\n+  scenario \"user turns visitor and sees logout link change\" do\n+    user = User.create(username: \"brennan\", password: \"password\")","path":"spec/features/visitor_can_register_spec.rb","position":63,"original_position":63,"commit_id":"8217023f9994be63cd09c5921f4cf7199037439a","original_commit_id":"8217023f9994be63cd09c5921f4cf7199037439a","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":"Useless assignment to variable - `user`.","created_at":"2016-03-03T05:34:40Z","updated_at":"2016-03-03T05:34:40Z","html_url":"https://github.com/ksk5280/lucky-charms/pull/29#discussion_r54837834","pull_request_url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/comments/54837834"},"html":{"href":"https://github.com/ksk5280/lucky-charms/pull/29#discussion_r54837834"},"pull_request":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29","id":61459901,"html_url":"https://github.com/ksk5280/lucky-charms/pull/29","diff_url":"https://github.com/ksk5280/lucky-charms/pull/29.diff","patch_url":"https://github.com/ksk5280/lucky-charms/pull/29.patch","issue_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues/29","number":29,"state":"open","locked":false,"title":"[WIP] Add user model and migration","user":{"login":"brennanholtzclaw","id":13245587,"avatar_url":"https://avatars.githubusercontent.com/u/13245587?v=3","gravatar_id":"","url":"https://api.github.com/users/brennanholtzclaw","html_url":"https://github.com/brennanholtzclaw","followers_url":"https://api.github.com/users/brennanholtzclaw/followers","following_url":"https://api.github.com/users/brennanholtzclaw/following{/other_user}","gists_url":"https://api.github.com/users/brennanholtzclaw/gists{/gist_id}","starred_url":"https://api.github.com/users/brennanholtzclaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brennanholtzclaw/subscriptions","organizations_url":"https://api.github.com/users/brennanholtzclaw/orgs","repos_url":"https://api.github.com/users/brennanholtzclaw/repos","events_url":"https://api.github.com/users/brennanholtzclaw/events{/privacy}","received_events_url":"https://api.github.com/users/brennanholtzclaw/received_events","type":"User","site_admin":false},"body":"Add user model, migrations, and some cart functionality","created_at":"2016-03-02T20:14:54Z","updated_at":"2016-03-03T05:34:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ebf085e21b1a8120d702055db503ee25d601073","assignee":{"login":"brennanholtzclaw","id":13245587,"avatar_url":"https://avatars.githubusercontent.com/u/13245587?v=3","gravatar_id":"","url":"https://api.github.com/users/brennanholtzclaw","html_url":"https://github.com/brennanholtzclaw","followers_url":"https://api.github.com/users/brennanholtzclaw/followers","following_url":"https://api.github.com/users/brennanholtzclaw/following{/other_user}","gists_url":"https://api.github.com/users/brennanholtzclaw/gists{/gist_id}","starred_url":"https://api.github.com/users/brennanholtzclaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brennanholtzclaw/subscriptions","organizations_url":"https://api.github.com/users/brennanholtzclaw/orgs","repos_url":"https://api.github.com/users/brennanholtzclaw/repos","events_url":"https://api.github.com/users/brennanholtzclaw/events{/privacy}","received_events_url":"https://api.github.com/users/brennanholtzclaw/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29/commits","review_comments_url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29/comments","review_comment_url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues/29/comments","statuses_url":"https://api.github.com/repos/ksk5280/lucky-charms/statuses/8217023f9994be63cd09c5921f4cf7199037439a","head":{"label":"ksk5280:user-authentication-#14","ref":"user-authentication-#14","sha":"8217023f9994be63cd09c5921f4cf7199037439a","user":{"login":"ksk5280","id":13193796,"avatar_url":"https://avatars.githubusercontent.com/u/13193796?v=3","gravatar_id":"","url":"https://api.github.com/users/ksk5280","html_url":"https://github.com/ksk5280","followers_url":"https://api.github.com/users/ksk5280/followers","following_url":"https://api.github.com/users/ksk5280/following{/other_user}","gists_url":"https://api.github.com/users/ksk5280/gists{/gist_id}","starred_url":"https://api.github.com/users/ksk5280/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksk5280/subscriptions","organizations_url":"https://api.github.com/users/ksk5280/orgs","repos_url":"https://api.github.com/users/ksk5280/repos","events_url":"https://api.github.com/users/ksk5280/events{/privacy}","received_events_url":"https://api.github.com/users/ksk5280/received_events","type":"User","site_admin":false},"repo":{"id":52826494,"name":"lucky-charms","full_name":"ksk5280/lucky-charms","owner":{"login":"ksk5280","id":13193796,"avatar_url":"https://avatars.githubusercontent.com/u/13193796?v=3","gravatar_id":"","url":"https://api.github.com/users/ksk5280","html_url":"https://github.com/ksk5280","followers_url":"https://api.github.com/users/ksk5280/followers","following_url":"https://api.github.com/users/ksk5280/following{/other_user}","gists_url":"https://api.github.com/users/ksk5280/gists{/gist_id}","starred_url":"https://api.github.com/users/ksk5280/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksk5280/subscriptions","organizations_url":"https://api.github.com/users/ksk5280/orgs","repos_url":"https://api.github.com/users/ksk5280/repos","events_url":"https://api.github.com/users/ksk5280/events{/privacy}","received_events_url":"https://api.github.com/users/ksk5280/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksk5280/lucky-charms","description":null,"fork":false,"url":"https://api.github.com/repos/ksk5280/lucky-charms","forks_url":"https://api.github.com/repos/ksk5280/lucky-charms/forks","keys_url":"https://api.github.com/repos/ksk5280/lucky-charms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksk5280/lucky-charms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksk5280/lucky-charms/teams","hooks_url":"https://api.github.com/repos/ksk5280/lucky-charms/hooks","issue_events_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues/events{/number}","events_url":"https://api.github.com/repos/ksk5280/lucky-charms/events","assignees_url":"https://api.github.com/repos/ksk5280/lucky-charms/assignees{/user}","branches_url":"https://api.github.com/repos/ksk5280/lucky-charms/branches{/branch}","tags_url":"https://api.github.com/repos/ksk5280/lucky-charms/tags","blobs_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksk5280/lucky-charms/statuses/{sha}","languages_url":"https://api.github.com/repos/ksk5280/lucky-charms/languages","stargazers_url":"https://api.github.com/repos/ksk5280/lucky-charms/stargazers","contributors_url":"https://api.github.com/repos/ksk5280/lucky-charms/contributors","subscribers_url":"https://api.github.com/repos/ksk5280/lucky-charms/subscribers","subscription_url":"https://api.github.com/repos/ksk5280/lucky-charms/subscription","commits_url":"https://api.github.com/repos/ksk5280/lucky-charms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksk5280/lucky-charms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksk5280/lucky-charms/contents/{+path}","compare_url":"https://api.github.com/repos/ksk5280/lucky-charms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksk5280/lucky-charms/merges","archive_url":"https://api.github.com/repos/ksk5280/lucky-charms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksk5280/lucky-charms/downloads","issues_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues{/number}","pulls_url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls{/number}","milestones_url":"https://api.github.com/repos/ksk5280/lucky-charms/milestones{/number}","notifications_url":"https://api.github.com/repos/ksk5280/lucky-charms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksk5280/lucky-charms/labels{/name}","releases_url":"https://api.github.com/repos/ksk5280/lucky-charms/releases{/id}","deployments_url":"https://api.github.com/repos/ksk5280/lucky-charms/deployments","created_at":"2016-02-29T21:35:36Z","updated_at":"2016-02-29T21:36:25Z","pushed_at":"2016-03-03T05:34:37Z","git_url":"git://github.com/ksk5280/lucky-charms.git","ssh_url":"git@github.com:ksk5280/lucky-charms.git","clone_url":"https://github.com/ksk5280/lucky-charms.git","svn_url":"https://github.com/ksk5280/lucky-charms","homepage":null,"size":2331,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"ksk5280:master","ref":"master","sha":"6cd12b67d185f33594fc1e13b798a2c71cf9d395","user":{"login":"ksk5280","id":13193796,"avatar_url":"https://avatars.githubusercontent.com/u/13193796?v=3","gravatar_id":"","url":"https://api.github.com/users/ksk5280","html_url":"https://github.com/ksk5280","followers_url":"https://api.github.com/users/ksk5280/followers","following_url":"https://api.github.com/users/ksk5280/following{/other_user}","gists_url":"https://api.github.com/users/ksk5280/gists{/gist_id}","starred_url":"https://api.github.com/users/ksk5280/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksk5280/subscriptions","organizations_url":"https://api.github.com/users/ksk5280/orgs","repos_url":"https://api.github.com/users/ksk5280/repos","events_url":"https://api.github.com/users/ksk5280/events{/privacy}","received_events_url":"https://api.github.com/users/ksk5280/received_events","type":"User","site_admin":false},"repo":{"id":52826494,"name":"lucky-charms","full_name":"ksk5280/lucky-charms","owner":{"login":"ksk5280","id":13193796,"avatar_url":"https://avatars.githubusercontent.com/u/13193796?v=3","gravatar_id":"","url":"https://api.github.com/users/ksk5280","html_url":"https://github.com/ksk5280","followers_url":"https://api.github.com/users/ksk5280/followers","following_url":"https://api.github.com/users/ksk5280/following{/other_user}","gists_url":"https://api.github.com/users/ksk5280/gists{/gist_id}","starred_url":"https://api.github.com/users/ksk5280/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksk5280/subscriptions","organizations_url":"https://api.github.com/users/ksk5280/orgs","repos_url":"https://api.github.com/users/ksk5280/repos","events_url":"https://api.github.com/users/ksk5280/events{/privacy}","received_events_url":"https://api.github.com/users/ksk5280/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksk5280/lucky-charms","description":null,"fork":false,"url":"https://api.github.com/repos/ksk5280/lucky-charms","forks_url":"https://api.github.com/repos/ksk5280/lucky-charms/forks","keys_url":"https://api.github.com/repos/ksk5280/lucky-charms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksk5280/lucky-charms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksk5280/lucky-charms/teams","hooks_url":"https://api.github.com/repos/ksk5280/lucky-charms/hooks","issue_events_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues/events{/number}","events_url":"https://api.github.com/repos/ksk5280/lucky-charms/events","assignees_url":"https://api.github.com/repos/ksk5280/lucky-charms/assignees{/user}","branches_url":"https://api.github.com/repos/ksk5280/lucky-charms/branches{/branch}","tags_url":"https://api.github.com/repos/ksk5280/lucky-charms/tags","blobs_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksk5280/lucky-charms/statuses/{sha}","languages_url":"https://api.github.com/repos/ksk5280/lucky-charms/languages","stargazers_url":"https://api.github.com/repos/ksk5280/lucky-charms/stargazers","contributors_url":"https://api.github.com/repos/ksk5280/lucky-charms/contributors","subscribers_url":"https://api.github.com/repos/ksk5280/lucky-charms/subscribers","subscription_url":"https://api.github.com/repos/ksk5280/lucky-charms/subscription","commits_url":"https://api.github.com/repos/ksk5280/lucky-charms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksk5280/lucky-charms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksk5280/lucky-charms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksk5280/lucky-charms/contents/{+path}","compare_url":"https://api.github.com/repos/ksk5280/lucky-charms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksk5280/lucky-charms/merges","archive_url":"https://api.github.com/repos/ksk5280/lucky-charms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksk5280/lucky-charms/downloads","issues_url":"https://api.github.com/repos/ksk5280/lucky-charms/issues{/number}","pulls_url":"https://api.github.com/repos/ksk5280/lucky-charms/pulls{/number}","milestones_url":"https://api.github.com/repos/ksk5280/lucky-charms/milestones{/number}","notifications_url":"https://api.github.com/repos/ksk5280/lucky-charms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksk5280/lucky-charms/labels{/name}","releases_url":"https://api.github.com/repos/ksk5280/lucky-charms/releases{/id}","deployments_url":"https://api.github.com/repos/ksk5280/lucky-charms/deployments","created_at":"2016-02-29T21:35:36Z","updated_at":"2016-02-29T21:36:25Z","pushed_at":"2016-03-03T05:34:37Z","git_url":"git://github.com/ksk5280/lucky-charms.git","ssh_url":"git@github.com:ksk5280/lucky-charms.git","clone_url":"https://github.com/ksk5280/lucky-charms.git","svn_url":"https://github.com/ksk5280/lucky-charms","homepage":null,"size":2331,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29"},"html":{"href":"https://github.com/ksk5280/lucky-charms/pull/29"},"issue":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/issues/29"},"comments":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/ksk5280/lucky-charms/statuses/8217023f9994be63cd09c5921f4cf7199037439a"}}}}