{"action":"created","comment":{"url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/comments/66711130","id":66711130,"diff_hunk":"@@ -0,0 +1,55 @@\n+require \"rails_helper\"\n+\n+RSpec.feature \"an existing user can view their individual past orders\" do\n+  scenario \"they are redirected to order path\" do\n+    user = create(:user)\n+    order_1 = Order.create(user_id: user.id)\n+    login(user)\n+    visit \"/orders\"\n+\n+    click_link order_1.id.to_s\n+\n+    expect(current_path).to eq order_path(order_1)\n+    expect(page).to have_content(order_1.id)\n+  end\n+\n+  scenario \"they see order item links, prices, statuses, date/time\" do\n+    user = create(:user)\n+    login(user)\n+    order_1 = Order.create(user_id: user.id, status: \"ordered\")\n+    sock_1, sock_2 = create_list(:sock, 2)\n+    order_item_1 = order_1.order_items.create(sock_id: sock_1.id,\n+                                              quantity: 2,\n+                                              sock_price: sock_1.price)\n+    order_item_2 = order_1.order_items.create(sock_id: sock_2.id,\n+                                              quantity: 5,\n+                                              sock_price: sock_2.price)\n+    total_price = 2 * order_item_1.sock_price + 5 * order_item_2.sock_price\n+    total_quantity = order_item_1.quantity + order_item_2.quantity\n+    visit order_path(order_1)\n+    within \"#order_item\" do\n+      expect(page).to have_content(\n+                    \"$#{order_item_1.quantity * order_item_1.sock_price}\")\n+      expect(page).to have_content(\n+                    \"$#{order_item_2.quantity * order_item_2.sock_price}\")\n+      expect(page).to have_link(sock_1.name)\n+    end\n+\n+    within \"#order_details\" do\n+      expect(page).to have_content(\"ordered\")\n+      expect(page).to have_content(total_price)\n+      expect(page).to have_content(\n+                      order_1.created_at.strftime(\"%A, %B %d, %Y at %I:%M%p\"))\n+      expect(page).to have_content(total_quantity)\n+      expect(page).to_not have_content(\"Updated\")\n+    end\n+\n+    order_1.update_attributes(status: \"completed\")\n+    visit order_path(order_1)\n+    within \"#order_details\" do\n+      expect(page).to have_content(\"completed\")\n+      expect(page).to have_content(\n+                    order_1.updated_at.strftime(\"%A, %B %d, %Y at %I:%M%p\"))","path":"spec/features/user_can_view_individual_orders_spec.rb","position":52,"original_position":52,"commit_id":"64dd0d8e908802f70bf9164bd67f7d4d9b23c55c","original_commit_id":"64dd0d8e908802f70bf9164bd67f7d4d9b23c55c","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":"Indent the first parameter one step more than the start of the previous line.","created_at":"2016-06-11T20:12:28Z","updated_at":"2016-06-11T20:12:28Z","html_url":"https://github.com/lucyfox4131/socks_and_found/pull/79#discussion_r66711130","pull_request_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79","_links":{"self":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/comments/66711130"},"html":{"href":"https://github.com/lucyfox4131/socks_and_found/pull/79#discussion_r66711130"},"pull_request":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79","id":73477120,"html_url":"https://github.com/lucyfox4131/socks_and_found/pull/79","diff_url":"https://github.com/lucyfox4131/socks_and_found/pull/79.diff","patch_url":"https://github.com/lucyfox4131/socks_and_found/pull/79.patch","issue_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/79","number":79,"state":"open","locked":false,"title":"Order development","user":{"login":"marcellawigg","id":15963934,"avatar_url":"https://avatars.githubusercontent.com/u/15963934?v=3","gravatar_id":"","url":"https://api.github.com/users/marcellawigg","html_url":"https://github.com/marcellawigg","followers_url":"https://api.github.com/users/marcellawigg/followers","following_url":"https://api.github.com/users/marcellawigg/following{/other_user}","gists_url":"https://api.github.com/users/marcellawigg/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellawigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellawigg/subscriptions","organizations_url":"https://api.github.com/users/marcellawigg/orgs","repos_url":"https://api.github.com/users/marcellawigg/repos","events_url":"https://api.github.com/users/marcellawigg/events{/privacy}","received_events_url":"https://api.github.com/users/marcellawigg/received_events","type":"User","site_admin":false},"body":"With this branch comes the ability for a user to checkout. \r\nWhen user checks out, they are redirected to orders index. \r\nAlso added ability to view individual orders and order items.","created_at":"2016-06-11T20:05:19Z","updated_at":"2016-06-11T20:12:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"236f16656e1bd091b1235c62c65a0d0195f5b30e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79/commits","review_comments_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79/comments","review_comment_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/79/comments","statuses_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/statuses/64dd0d8e908802f70bf9164bd67f7d4d9b23c55c","head":{"label":"lucyfox4131:order_development","ref":"order_development","sha":"64dd0d8e908802f70bf9164bd67f7d4d9b23c55c","user":{"login":"lucyfox4131","id":14189706,"avatar_url":"https://avatars.githubusercontent.com/u/14189706?v=3","gravatar_id":"","url":"https://api.github.com/users/lucyfox4131","html_url":"https://github.com/lucyfox4131","followers_url":"https://api.github.com/users/lucyfox4131/followers","following_url":"https://api.github.com/users/lucyfox4131/following{/other_user}","gists_url":"https://api.github.com/users/lucyfox4131/gists{/gist_id}","starred_url":"https://api.github.com/users/lucyfox4131/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucyfox4131/subscriptions","organizations_url":"https://api.github.com/users/lucyfox4131/orgs","repos_url":"https://api.github.com/users/lucyfox4131/repos","events_url":"https://api.github.com/users/lucyfox4131/events{/privacy}","received_events_url":"https://api.github.com/users/lucyfox4131/received_events","type":"User","site_admin":false},"repo":{"id":60562711,"name":"socks_and_found","full_name":"lucyfox4131/socks_and_found","owner":{"login":"lucyfox4131","id":14189706,"avatar_url":"https://avatars.githubusercontent.com/u/14189706?v=3","gravatar_id":"","url":"https://api.github.com/users/lucyfox4131","html_url":"https://github.com/lucyfox4131","followers_url":"https://api.github.com/users/lucyfox4131/followers","following_url":"https://api.github.com/users/lucyfox4131/following{/other_user}","gists_url":"https://api.github.com/users/lucyfox4131/gists{/gist_id}","starred_url":"https://api.github.com/users/lucyfox4131/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucyfox4131/subscriptions","organizations_url":"https://api.github.com/users/lucyfox4131/orgs","repos_url":"https://api.github.com/users/lucyfox4131/repos","events_url":"https://api.github.com/users/lucyfox4131/events{/privacy}","received_events_url":"https://api.github.com/users/lucyfox4131/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucyfox4131/socks_and_found","description":"","fork":false,"url":"https://api.github.com/repos/lucyfox4131/socks_and_found","forks_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/forks","keys_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/teams","hooks_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/hooks","issue_events_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/events{/number}","events_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/events","assignees_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/assignees{/user}","branches_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/branches{/branch}","tags_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/tags","blobs_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/statuses/{sha}","languages_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/languages","stargazers_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/stargazers","contributors_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/contributors","subscribers_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/subscribers","subscription_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/subscription","commits_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/contents/{+path}","compare_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/merges","archive_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/downloads","issues_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues{/number}","pulls_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls{/number}","milestones_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/milestones{/number}","notifications_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/labels{/name}","releases_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/releases{/id}","deployments_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/deployments","created_at":"2016-06-06T21:40:19Z","updated_at":"2016-06-06T22:18:19Z","pushed_at":"2016-06-11T20:12:24Z","git_url":"git://github.com/lucyfox4131/socks_and_found.git","ssh_url":"git@github.com:lucyfox4131/socks_and_found.git","clone_url":"https://github.com/lucyfox4131/socks_and_found.git","svn_url":"https://github.com/lucyfox4131/socks_and_found","homepage":null,"size":163,"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":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"lucyfox4131:master","ref":"master","sha":"fc7b626f5dd805ec8cf78a29e0c82bf1bf74fa4d","user":{"login":"lucyfox4131","id":14189706,"avatar_url":"https://avatars.githubusercontent.com/u/14189706?v=3","gravatar_id":"","url":"https://api.github.com/users/lucyfox4131","html_url":"https://github.com/lucyfox4131","followers_url":"https://api.github.com/users/lucyfox4131/followers","following_url":"https://api.github.com/users/lucyfox4131/following{/other_user}","gists_url":"https://api.github.com/users/lucyfox4131/gists{/gist_id}","starred_url":"https://api.github.com/users/lucyfox4131/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucyfox4131/subscriptions","organizations_url":"https://api.github.com/users/lucyfox4131/orgs","repos_url":"https://api.github.com/users/lucyfox4131/repos","events_url":"https://api.github.com/users/lucyfox4131/events{/privacy}","received_events_url":"https://api.github.com/users/lucyfox4131/received_events","type":"User","site_admin":false},"repo":{"id":60562711,"name":"socks_and_found","full_name":"lucyfox4131/socks_and_found","owner":{"login":"lucyfox4131","id":14189706,"avatar_url":"https://avatars.githubusercontent.com/u/14189706?v=3","gravatar_id":"","url":"https://api.github.com/users/lucyfox4131","html_url":"https://github.com/lucyfox4131","followers_url":"https://api.github.com/users/lucyfox4131/followers","following_url":"https://api.github.com/users/lucyfox4131/following{/other_user}","gists_url":"https://api.github.com/users/lucyfox4131/gists{/gist_id}","starred_url":"https://api.github.com/users/lucyfox4131/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucyfox4131/subscriptions","organizations_url":"https://api.github.com/users/lucyfox4131/orgs","repos_url":"https://api.github.com/users/lucyfox4131/repos","events_url":"https://api.github.com/users/lucyfox4131/events{/privacy}","received_events_url":"https://api.github.com/users/lucyfox4131/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucyfox4131/socks_and_found","description":"","fork":false,"url":"https://api.github.com/repos/lucyfox4131/socks_and_found","forks_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/forks","keys_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/teams","hooks_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/hooks","issue_events_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/events{/number}","events_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/events","assignees_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/assignees{/user}","branches_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/branches{/branch}","tags_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/tags","blobs_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/statuses/{sha}","languages_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/languages","stargazers_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/stargazers","contributors_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/contributors","subscribers_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/subscribers","subscription_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/subscription","commits_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/contents/{+path}","compare_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/merges","archive_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/downloads","issues_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues{/number}","pulls_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls{/number}","milestones_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/milestones{/number}","notifications_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/labels{/name}","releases_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/releases{/id}","deployments_url":"https://api.github.com/repos/lucyfox4131/socks_and_found/deployments","created_at":"2016-06-06T21:40:19Z","updated_at":"2016-06-06T22:18:19Z","pushed_at":"2016-06-11T20:12:24Z","git_url":"git://github.com/lucyfox4131/socks_and_found.git","ssh_url":"git@github.com:lucyfox4131/socks_and_found.git","clone_url":"https://github.com/lucyfox4131/socks_and_found.git","svn_url":"https://github.com/lucyfox4131/socks_and_found","homepage":null,"size":163,"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":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79"},"html":{"href":"https://github.com/lucyfox4131/socks_and_found/pull/79"},"issue":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/79"},"comments":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/lucyfox4131/socks_and_found/statuses/64dd0d8e908802f70bf9164bd67f7d4d9b23c55c"}}}}
{"actor":{"display_login":"houndci-bot"}}