{"action":"created","comment":{"url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/comments/79086423","id":79086423,"diff_hunk":"@@ -0,0 +1,60 @@\n+# As an authenticated user\n+#   When I visit \"/orders\"\n+#   Then I should see my past order\n+#   And I should see a link to view that order\n+#   And when I click that link\n+#   Then I should see each item that was order with the quantity and line-item subtotals\n+#   And I should see links to each item's show page\n+#   And I should see the current status of the order **(ordered, paid, cancelled, completed)**\n+#   And I should see the total price for the order\n+#   And I should see the date/time that the order was submitted\n+#   If the order was completed or cancelled\n+#   Then I should see a timestamp when the action took place\n+\n+require 'rails_helper'\n+\n+RSpec.feature \"visitor can remove item from cart\" do\n+  scenario \"visitor doesn't see the item in the cart after removing\" do\n+    # As an authenticated user\n+    # user = Fabricate(:user)\n+\n+    order = Fabricate(:order)\n+\n+    # binding.pry\n+\n+    # order = user.orders.first\n+    item = order.items.first\n+    user = order.user\n+\n+    visit login_path\n+    fill_in \"Username\", with: user.username\n+    fill_in \"Password\", with: user.password\n+    click_button \"Login\"\n+    #   When I visit \"/orders\"\n+    visit orders_path\n+      #   Then I should see my past order\n+    expect(page).to have_content(\"Past Orders\")\n+      #   And I should see a link to view that order\n+    expect(page).to have_link(\"View\", :href => \"/orders/#{order.id}\")\n+      #   And when I click that link\n+    click_link \"View\"\n+      #   Then I should see each item that was ordered with the quantity and line-item subtotals\n+    expect(current_path).to eq(order_path(order.id))\n+      #   And I should see links to each item's show page\n+    expect(page).to have_content(item.title)\n+    expect(page).to have_link(item.title, :href => \"/items/#{item.id}\")\n+      #   And I should see the current status of the order **(ordered, paid, cancelled, completed)**\n+    expect(page).to have_content(\"Status:\")\n+    expect(page).to have_content(\"Completed\")\n+      #   And I should see the total price for the order\n+    expect(page).to have_content(\"Total:\")\n+    expect(page).to have_content(\"#{order.total}\")\n+      #   And I should see the date/time that the order was submitted\n+    expect(page).to have_content(\"Order Submitted:\")\n+    expect(page).to have_content(\"#{order.created_at}\")\n+      #   If the order was completed or cancelled\n+      #   Then I should see a timestamp when the action took place\n+    expect(page).to have_content(\"Completed On:\")","path":"spec/features/user_can_view_a_past_order_spec.rb","position":57,"original_position":57,"commit_id":"a6244498817f09224536f9273f20eb91ab243ee8","original_commit_id":"a6244498817f09224536f9273f20eb91ab243ee8","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-09-15T23:55:22Z","updated_at":"2016-09-15T23:55:22Z","html_url":"https://github.com/PlanetEfficacy/little_shop/pull/59#discussion_r79086423","pull_request_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/comments/79086423"},"html":{"href":"https://github.com/PlanetEfficacy/little_shop/pull/59#discussion_r79086423"},"pull_request":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59","id":85500551,"html_url":"https://github.com/PlanetEfficacy/little_shop/pull/59","diff_url":"https://github.com/PlanetEfficacy/little_shop/pull/59.diff","patch_url":"https://github.com/PlanetEfficacy/little_shop/pull/59.patch","issue_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/59","number":59,"state":"open","locked":false,"title":"add view a past order functionality closes #24","user":{"login":"tgisg","id":6856935,"avatar_url":"https://avatars.githubusercontent.com/u/6856935?v=3","gravatar_id":"","url":"https://api.github.com/users/tgisg","html_url":"https://github.com/tgisg","followers_url":"https://api.github.com/users/tgisg/followers","following_url":"https://api.github.com/users/tgisg/following{/other_user}","gists_url":"https://api.github.com/users/tgisg/gists{/gist_id}","starred_url":"https://api.github.com/users/tgisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgisg/subscriptions","organizations_url":"https://api.github.com/users/tgisg/orgs","repos_url":"https://api.github.com/users/tgisg/repos","events_url":"https://api.github.com/users/tgisg/events{/privacy}","received_events_url":"https://api.github.com/users/tgisg/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-15T23:55:05Z","updated_at":"2016-09-15T23:55:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4245b3c3695b89c825abcaa74eb80216ed496b65","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59/commits","review_comments_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59/comments","review_comment_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/59/comments","statuses_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/statuses/a6244498817f09224536f9273f20eb91ab243ee8","head":{"label":"PlanetEfficacy:viewing_past_order","ref":"viewing_past_order","sha":"a6244498817f09224536f9273f20eb91ab243ee8","user":{"login":"PlanetEfficacy","id":15135934,"avatar_url":"https://avatars.githubusercontent.com/u/15135934?v=3","gravatar_id":"","url":"https://api.github.com/users/PlanetEfficacy","html_url":"https://github.com/PlanetEfficacy","followers_url":"https://api.github.com/users/PlanetEfficacy/followers","following_url":"https://api.github.com/users/PlanetEfficacy/following{/other_user}","gists_url":"https://api.github.com/users/PlanetEfficacy/gists{/gist_id}","starred_url":"https://api.github.com/users/PlanetEfficacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlanetEfficacy/subscriptions","organizations_url":"https://api.github.com/users/PlanetEfficacy/orgs","repos_url":"https://api.github.com/users/PlanetEfficacy/repos","events_url":"https://api.github.com/users/PlanetEfficacy/events{/privacy}","received_events_url":"https://api.github.com/users/PlanetEfficacy/received_events","type":"User","site_admin":false},"repo":{"id":68048739,"name":"little_shop","full_name":"PlanetEfficacy/little_shop","owner":{"login":"PlanetEfficacy","id":15135934,"avatar_url":"https://avatars.githubusercontent.com/u/15135934?v=3","gravatar_id":"","url":"https://api.github.com/users/PlanetEfficacy","html_url":"https://github.com/PlanetEfficacy","followers_url":"https://api.github.com/users/PlanetEfficacy/followers","following_url":"https://api.github.com/users/PlanetEfficacy/following{/other_user}","gists_url":"https://api.github.com/users/PlanetEfficacy/gists{/gist_id}","starred_url":"https://api.github.com/users/PlanetEfficacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlanetEfficacy/subscriptions","organizations_url":"https://api.github.com/users/PlanetEfficacy/orgs","repos_url":"https://api.github.com/users/PlanetEfficacy/repos","events_url":"https://api.github.com/users/PlanetEfficacy/events{/privacy}","received_events_url":"https://api.github.com/users/PlanetEfficacy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PlanetEfficacy/little_shop","description":null,"fork":false,"url":"https://api.github.com/repos/PlanetEfficacy/little_shop","forks_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/forks","keys_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/teams","hooks_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/hooks","issue_events_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/events{/number}","events_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/events","assignees_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/assignees{/user}","branches_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/branches{/branch}","tags_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/tags","blobs_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/languages","stargazers_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/stargazers","contributors_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/contributors","subscribers_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/subscribers","subscription_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/subscription","commits_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/contents/{+path}","compare_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/merges","archive_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/downloads","issues_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues{/number}","pulls_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/labels{/name}","releases_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/releases{/id}","deployments_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/deployments","created_at":"2016-09-12T21:16:23Z","updated_at":"2016-09-13T02:24:22Z","pushed_at":"2016-09-15T23:55:05Z","git_url":"git://github.com/PlanetEfficacy/little_shop.git","ssh_url":"git@github.com:PlanetEfficacy/little_shop.git","clone_url":"https://github.com/PlanetEfficacy/little_shop.git","svn_url":"https://github.com/PlanetEfficacy/little_shop","homepage":null,"size":501,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":2,"default_branch":"development"}},"base":{"label":"PlanetEfficacy:development","ref":"development","sha":"aac6fbb0b626062caf2880aca04a39887e8945a5","user":{"login":"PlanetEfficacy","id":15135934,"avatar_url":"https://avatars.githubusercontent.com/u/15135934?v=3","gravatar_id":"","url":"https://api.github.com/users/PlanetEfficacy","html_url":"https://github.com/PlanetEfficacy","followers_url":"https://api.github.com/users/PlanetEfficacy/followers","following_url":"https://api.github.com/users/PlanetEfficacy/following{/other_user}","gists_url":"https://api.github.com/users/PlanetEfficacy/gists{/gist_id}","starred_url":"https://api.github.com/users/PlanetEfficacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlanetEfficacy/subscriptions","organizations_url":"https://api.github.com/users/PlanetEfficacy/orgs","repos_url":"https://api.github.com/users/PlanetEfficacy/repos","events_url":"https://api.github.com/users/PlanetEfficacy/events{/privacy}","received_events_url":"https://api.github.com/users/PlanetEfficacy/received_events","type":"User","site_admin":false},"repo":{"id":68048739,"name":"little_shop","full_name":"PlanetEfficacy/little_shop","owner":{"login":"PlanetEfficacy","id":15135934,"avatar_url":"https://avatars.githubusercontent.com/u/15135934?v=3","gravatar_id":"","url":"https://api.github.com/users/PlanetEfficacy","html_url":"https://github.com/PlanetEfficacy","followers_url":"https://api.github.com/users/PlanetEfficacy/followers","following_url":"https://api.github.com/users/PlanetEfficacy/following{/other_user}","gists_url":"https://api.github.com/users/PlanetEfficacy/gists{/gist_id}","starred_url":"https://api.github.com/users/PlanetEfficacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlanetEfficacy/subscriptions","organizations_url":"https://api.github.com/users/PlanetEfficacy/orgs","repos_url":"https://api.github.com/users/PlanetEfficacy/repos","events_url":"https://api.github.com/users/PlanetEfficacy/events{/privacy}","received_events_url":"https://api.github.com/users/PlanetEfficacy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PlanetEfficacy/little_shop","description":null,"fork":false,"url":"https://api.github.com/repos/PlanetEfficacy/little_shop","forks_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/forks","keys_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/teams","hooks_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/hooks","issue_events_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/events{/number}","events_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/events","assignees_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/assignees{/user}","branches_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/branches{/branch}","tags_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/tags","blobs_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/languages","stargazers_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/stargazers","contributors_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/contributors","subscribers_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/subscribers","subscription_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/subscription","commits_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/contents/{+path}","compare_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/merges","archive_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/downloads","issues_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues{/number}","pulls_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/labels{/name}","releases_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/releases{/id}","deployments_url":"https://api.github.com/repos/PlanetEfficacy/little_shop/deployments","created_at":"2016-09-12T21:16:23Z","updated_at":"2016-09-13T02:24:22Z","pushed_at":"2016-09-15T23:55:05Z","git_url":"git://github.com/PlanetEfficacy/little_shop.git","ssh_url":"git@github.com:PlanetEfficacy/little_shop.git","clone_url":"https://github.com/PlanetEfficacy/little_shop.git","svn_url":"https://github.com/PlanetEfficacy/little_shop","homepage":null,"size":501,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":2,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59"},"html":{"href":"https://github.com/PlanetEfficacy/little_shop/pull/59"},"issue":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/59"},"comments":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/PlanetEfficacy/little_shop/statuses/a6244498817f09224536f9273f20eb91ab243ee8"}}}}
{"actor":{"display_login":"houndci-bot"}}