{"action":"created","comment":{"url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments/54953062","id":54953062,"diff_hunk":"@@ -0,0 +1,53 @@\n+require \"test_helper\"\n+\n+class UserCanViewAPastOrderTest < ActionDispatch::IntegrationTest\n+  test \"user sees details about their order\" do\n+    skip\n+\n+    user = User.create(username: \"Jade\", password: \"passsword\")\n+    order = user.orders.create\n+    order.gifs.create(\n+      title: \"hotline bling\",\n+      description: \"cuz I know when that hotline bling\",\n+      price: 100,\n+      image: \"https://media.giphy.com/media/7e0EvlBD7nxZu/giphy.gif\")\n+    #make join table order gifs\n+\n+    ApplicationController.any_instance.stubs(:current_user).returns(user)\n+\n+    visit \"/orders\"\n+\n+    assert page.has_link?(\"Order: #{order.id}\")\n+\n+    click_on \"Order: 1\"\n+\n+    assert_equal \"/order/1\", current_path\n+\n+    #       Then I should see each item that was ordered with the quantity and line-item subtotals\n+    order.gifs.each do |gif|\n+      assert page.has_link?(\"#{gif.title}\")\n+      assert page.has_css?(\"img[src='#{gif.image}']\")\n+    end\n+\n+    #       And I should see links to each item's show page\n+    #gif title is link to gif show\n+\n+    assert page.has_content?(\"#{order.status}\")\n+    assert page.has_content?(\"#{order.price}\")","path":"test/integration/user_can_view_a_past_order_test.rb","position":36,"original_position":36,"commit_id":"a5f566d71cfab82f05e6e722053eeafc9bdfd181","original_commit_id":"a5f566d71cfab82f05e6e722053eeafc9bdfd181","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 `to_s` over string interpolation.","created_at":"2016-03-03T21:42:12Z","updated_at":"2016-03-03T21:42:12Z","html_url":"https://github.com/julyytran/gifsforgood/pull/43#discussion_r54953062","pull_request_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments/54953062"},"html":{"href":"https://github.com/julyytran/gifsforgood/pull/43#discussion_r54953062"},"pull_request":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43","id":61630039,"html_url":"https://github.com/julyytran/gifsforgood/pull/43","diff_url":"https://github.com/julyytran/gifsforgood/pull/43.diff","patch_url":"https://github.com/julyytran/gifsforgood/pull/43.patch","issue_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/43","number":43,"state":"closed","locked":false,"title":"Development","user":{"login":"julyytran","id":14022835,"avatar_url":"https://avatars.githubusercontent.com/u/14022835?v=3","gravatar_id":"","url":"https://api.github.com/users/julyytran","html_url":"https://github.com/julyytran","followers_url":"https://api.github.com/users/julyytran/followers","following_url":"https://api.github.com/users/julyytran/following{/other_user}","gists_url":"https://api.github.com/users/julyytran/gists{/gist_id}","starred_url":"https://api.github.com/users/julyytran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julyytran/subscriptions","organizations_url":"https://api.github.com/users/julyytran/orgs","repos_url":"https://api.github.com/users/julyytran/repos","events_url":"https://api.github.com/users/julyytran/events{/privacy}","received_events_url":"https://api.github.com/users/julyytran/received_events","type":"User","site_admin":false},"body":"merge order dev into master","created_at":"2016-03-03T21:42:04Z","updated_at":"2016-03-03T21:42:13Z","closed_at":"2016-03-03T21:42:11Z","merged_at":"2016-03-03T21:42:11Z","merge_commit_sha":"d5d20dc57c4988613e23a5da54e7d89c679cf26a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43/commits","review_comments_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43/comments","review_comment_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/43/comments","statuses_url":"https://api.github.com/repos/julyytran/gifsforgood/statuses/a5f566d71cfab82f05e6e722053eeafc9bdfd181","head":{"label":"julyytran:development","ref":"development","sha":"a5f566d71cfab82f05e6e722053eeafc9bdfd181","user":{"login":"julyytran","id":14022835,"avatar_url":"https://avatars.githubusercontent.com/u/14022835?v=3","gravatar_id":"","url":"https://api.github.com/users/julyytran","html_url":"https://github.com/julyytran","followers_url":"https://api.github.com/users/julyytran/followers","following_url":"https://api.github.com/users/julyytran/following{/other_user}","gists_url":"https://api.github.com/users/julyytran/gists{/gist_id}","starred_url":"https://api.github.com/users/julyytran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julyytran/subscriptions","organizations_url":"https://api.github.com/users/julyytran/orgs","repos_url":"https://api.github.com/users/julyytran/repos","events_url":"https://api.github.com/users/julyytran/events{/privacy}","received_events_url":"https://api.github.com/users/julyytran/received_events","type":"User","site_admin":false},"repo":{"id":52825234,"name":"gifsforgood","full_name":"julyytran/gifsforgood","owner":{"login":"julyytran","id":14022835,"avatar_url":"https://avatars.githubusercontent.com/u/14022835?v=3","gravatar_id":"","url":"https://api.github.com/users/julyytran","html_url":"https://github.com/julyytran","followers_url":"https://api.github.com/users/julyytran/followers","following_url":"https://api.github.com/users/julyytran/following{/other_user}","gists_url":"https://api.github.com/users/julyytran/gists{/gist_id}","starred_url":"https://api.github.com/users/julyytran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julyytran/subscriptions","organizations_url":"https://api.github.com/users/julyytran/orgs","repos_url":"https://api.github.com/users/julyytran/repos","events_url":"https://api.github.com/users/julyytran/events{/privacy}","received_events_url":"https://api.github.com/users/julyytran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julyytran/gifsforgood","description":"Shop that 'sells' gifs from lolcommits to make money to donate to charitable organizations","fork":false,"url":"https://api.github.com/repos/julyytran/gifsforgood","forks_url":"https://api.github.com/repos/julyytran/gifsforgood/forks","keys_url":"https://api.github.com/repos/julyytran/gifsforgood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julyytran/gifsforgood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julyytran/gifsforgood/teams","hooks_url":"https://api.github.com/repos/julyytran/gifsforgood/hooks","issue_events_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/events{/number}","events_url":"https://api.github.com/repos/julyytran/gifsforgood/events","assignees_url":"https://api.github.com/repos/julyytran/gifsforgood/assignees{/user}","branches_url":"https://api.github.com/repos/julyytran/gifsforgood/branches{/branch}","tags_url":"https://api.github.com/repos/julyytran/gifsforgood/tags","blobs_url":"https://api.github.com/repos/julyytran/gifsforgood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julyytran/gifsforgood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julyytran/gifsforgood/git/refs{/sha}","trees_url":"https://api.github.com/repos/julyytran/gifsforgood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julyytran/gifsforgood/statuses/{sha}","languages_url":"https://api.github.com/repos/julyytran/gifsforgood/languages","stargazers_url":"https://api.github.com/repos/julyytran/gifsforgood/stargazers","contributors_url":"https://api.github.com/repos/julyytran/gifsforgood/contributors","subscribers_url":"https://api.github.com/repos/julyytran/gifsforgood/subscribers","subscription_url":"https://api.github.com/repos/julyytran/gifsforgood/subscription","commits_url":"https://api.github.com/repos/julyytran/gifsforgood/commits{/sha}","git_commits_url":"https://api.github.com/repos/julyytran/gifsforgood/git/commits{/sha}","comments_url":"https://api.github.com/repos/julyytran/gifsforgood/comments{/number}","issue_comment_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/comments{/number}","contents_url":"https://api.github.com/repos/julyytran/gifsforgood/contents/{+path}","compare_url":"https://api.github.com/repos/julyytran/gifsforgood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julyytran/gifsforgood/merges","archive_url":"https://api.github.com/repos/julyytran/gifsforgood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julyytran/gifsforgood/downloads","issues_url":"https://api.github.com/repos/julyytran/gifsforgood/issues{/number}","pulls_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls{/number}","milestones_url":"https://api.github.com/repos/julyytran/gifsforgood/milestones{/number}","notifications_url":"https://api.github.com/repos/julyytran/gifsforgood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julyytran/gifsforgood/labels{/name}","releases_url":"https://api.github.com/repos/julyytran/gifsforgood/releases{/id}","deployments_url":"https://api.github.com/repos/julyytran/gifsforgood/deployments","created_at":"2016-02-29T21:14:40Z","updated_at":"2016-03-01T00:38:41Z","pushed_at":"2016-03-03T21:42:11Z","git_url":"git://github.com/julyytran/gifsforgood.git","ssh_url":"git@github.com:julyytran/gifsforgood.git","clone_url":"https://github.com/julyytran/gifsforgood.git","svn_url":"https://github.com/julyytran/gifsforgood","homepage":null,"size":128,"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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"julyytran:master","ref":"master","sha":"ee5f023ee704025e86b53c7be9c4c5de344349a5","user":{"login":"julyytran","id":14022835,"avatar_url":"https://avatars.githubusercontent.com/u/14022835?v=3","gravatar_id":"","url":"https://api.github.com/users/julyytran","html_url":"https://github.com/julyytran","followers_url":"https://api.github.com/users/julyytran/followers","following_url":"https://api.github.com/users/julyytran/following{/other_user}","gists_url":"https://api.github.com/users/julyytran/gists{/gist_id}","starred_url":"https://api.github.com/users/julyytran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julyytran/subscriptions","organizations_url":"https://api.github.com/users/julyytran/orgs","repos_url":"https://api.github.com/users/julyytran/repos","events_url":"https://api.github.com/users/julyytran/events{/privacy}","received_events_url":"https://api.github.com/users/julyytran/received_events","type":"User","site_admin":false},"repo":{"id":52825234,"name":"gifsforgood","full_name":"julyytran/gifsforgood","owner":{"login":"julyytran","id":14022835,"avatar_url":"https://avatars.githubusercontent.com/u/14022835?v=3","gravatar_id":"","url":"https://api.github.com/users/julyytran","html_url":"https://github.com/julyytran","followers_url":"https://api.github.com/users/julyytran/followers","following_url":"https://api.github.com/users/julyytran/following{/other_user}","gists_url":"https://api.github.com/users/julyytran/gists{/gist_id}","starred_url":"https://api.github.com/users/julyytran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julyytran/subscriptions","organizations_url":"https://api.github.com/users/julyytran/orgs","repos_url":"https://api.github.com/users/julyytran/repos","events_url":"https://api.github.com/users/julyytran/events{/privacy}","received_events_url":"https://api.github.com/users/julyytran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julyytran/gifsforgood","description":"Shop that 'sells' gifs from lolcommits to make money to donate to charitable organizations","fork":false,"url":"https://api.github.com/repos/julyytran/gifsforgood","forks_url":"https://api.github.com/repos/julyytran/gifsforgood/forks","keys_url":"https://api.github.com/repos/julyytran/gifsforgood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julyytran/gifsforgood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julyytran/gifsforgood/teams","hooks_url":"https://api.github.com/repos/julyytran/gifsforgood/hooks","issue_events_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/events{/number}","events_url":"https://api.github.com/repos/julyytran/gifsforgood/events","assignees_url":"https://api.github.com/repos/julyytran/gifsforgood/assignees{/user}","branches_url":"https://api.github.com/repos/julyytran/gifsforgood/branches{/branch}","tags_url":"https://api.github.com/repos/julyytran/gifsforgood/tags","blobs_url":"https://api.github.com/repos/julyytran/gifsforgood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julyytran/gifsforgood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julyytran/gifsforgood/git/refs{/sha}","trees_url":"https://api.github.com/repos/julyytran/gifsforgood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julyytran/gifsforgood/statuses/{sha}","languages_url":"https://api.github.com/repos/julyytran/gifsforgood/languages","stargazers_url":"https://api.github.com/repos/julyytran/gifsforgood/stargazers","contributors_url":"https://api.github.com/repos/julyytran/gifsforgood/contributors","subscribers_url":"https://api.github.com/repos/julyytran/gifsforgood/subscribers","subscription_url":"https://api.github.com/repos/julyytran/gifsforgood/subscription","commits_url":"https://api.github.com/repos/julyytran/gifsforgood/commits{/sha}","git_commits_url":"https://api.github.com/repos/julyytran/gifsforgood/git/commits{/sha}","comments_url":"https://api.github.com/repos/julyytran/gifsforgood/comments{/number}","issue_comment_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/comments{/number}","contents_url":"https://api.github.com/repos/julyytran/gifsforgood/contents/{+path}","compare_url":"https://api.github.com/repos/julyytran/gifsforgood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julyytran/gifsforgood/merges","archive_url":"https://api.github.com/repos/julyytran/gifsforgood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julyytran/gifsforgood/downloads","issues_url":"https://api.github.com/repos/julyytran/gifsforgood/issues{/number}","pulls_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls{/number}","milestones_url":"https://api.github.com/repos/julyytran/gifsforgood/milestones{/number}","notifications_url":"https://api.github.com/repos/julyytran/gifsforgood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julyytran/gifsforgood/labels{/name}","releases_url":"https://api.github.com/repos/julyytran/gifsforgood/releases{/id}","deployments_url":"https://api.github.com/repos/julyytran/gifsforgood/deployments","created_at":"2016-02-29T21:14:40Z","updated_at":"2016-03-01T00:38:41Z","pushed_at":"2016-03-03T21:42:11Z","git_url":"git://github.com/julyytran/gifsforgood.git","ssh_url":"git@github.com:julyytran/gifsforgood.git","clone_url":"https://github.com/julyytran/gifsforgood.git","svn_url":"https://github.com/julyytran/gifsforgood","homepage":null,"size":128,"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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43"},"html":{"href":"https://github.com/julyytran/gifsforgood/pull/43"},"issue":{"href":"https://api.github.com/repos/julyytran/gifsforgood/issues/43"},"comments":{"href":"https://api.github.com/repos/julyytran/gifsforgood/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/julyytran/gifsforgood/statuses/a5f566d71cfab82f05e6e722053eeafc9bdfd181"}}}}