{"action":"created","comment":{"url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments/55125141","id":55125141,"diff_hunk":"@@ -27,6 +27,34 @@ class UserCanCreateAnOrderTest < ActionDispatch::IntegrationTest\n   end\n \n   test \"logged out user prompted to log in before checkout\" do\n+    user = create(:user)\n+    gif = create(:gif)\n+    visit gif_path(gif)\n+    click_on \"Add to cart\"\n+    visit \"/cart\"\n+    within \"table\" do\n+      click_on \"Checkout\"\n+    end\n+\n+    assert_equal \"/login\", current_path\n+    assert page.has_content? \"Please login or create a new account before checking out.\"","path":"test/integration/user_can_create_an_order_test.rb","position":23,"original_position":23,"commit_id":"a4337a47f5f2758630ac8a515a73eb28f313e886","original_commit_id":"a4337a47f5f2758630ac8a515a73eb28f313e886","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":"Line is too long. [88/80]","created_at":"2016-03-05T18:05:08Z","updated_at":"2016-03-05T18:05:08Z","html_url":"https://github.com/julyytran/gifsforgood/pull/71#discussion_r55125141","pull_request_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments/55125141"},"html":{"href":"https://github.com/julyytran/gifsforgood/pull/71#discussion_r55125141"},"pull_request":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71","id":61819132,"html_url":"https://github.com/julyytran/gifsforgood/pull/71","diff_url":"https://github.com/julyytran/gifsforgood/pull/71.diff","patch_url":"https://github.com/julyytran/gifsforgood/pull/71.patch","issue_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/71","number":71,"state":"open","locked":false,"title":"Add new order columns, transactions, login before checkout","user":{"login":"hhoopes","id":14062214,"avatar_url":"https://avatars.githubusercontent.com/u/14062214?v=3","gravatar_id":"","url":"https://api.github.com/users/hhoopes","html_url":"https://github.com/hhoopes","followers_url":"https://api.github.com/users/hhoopes/followers","following_url":"https://api.github.com/users/hhoopes/following{/other_user}","gists_url":"https://api.github.com/users/hhoopes/gists{/gist_id}","starred_url":"https://api.github.com/users/hhoopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhoopes/subscriptions","organizations_url":"https://api.github.com/users/hhoopes/orgs","repos_url":"https://api.github.com/users/hhoopes/repos","events_url":"https://api.github.com/users/hhoopes/events{/privacy}","received_events_url":"https://api.github.com/users/hhoopes/received_events","type":"User","site_admin":false},"body":"Current problems: tests all pass, but using the website and validating with prys shows that somewhere the user loses their order which up until a certain point is in the database and linked to them. /orders does not show any orders. Subtotal and total methods will need to be changed to move formatting elsewhere since they can't be inserted into the order table as strings. Last test created was that a visitor is prompted to login or create an account before checkout. Could be a problem with my local session? Could use validation from someone else trying out in a browser. @brianrip @julyytran ","created_at":"2016-03-05T18:05:04Z","updated_at":"2016-03-05T18:05:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2ff746414084114f35fdf004da2451267485a11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71/commits","review_comments_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71/comments","review_comment_url":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/julyytran/gifsforgood/issues/71/comments","statuses_url":"https://api.github.com/repos/julyytran/gifsforgood/statuses/a4337a47f5f2758630ac8a515a73eb28f313e886","head":{"label":"julyytran:stronger_orders","ref":"stronger_orders","sha":"a4337a47f5f2758630ac8a515a73eb28f313e886","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-05T18:05:05Z","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":107,"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":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"julyytran:development","ref":"development","sha":"a5c27de02b14a1f1227a71a3e8bb9d4c9dbe2938","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-05T18:05:05Z","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":107,"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":14,"forks":0,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71"},"html":{"href":"https://github.com/julyytran/gifsforgood/pull/71"},"issue":{"href":"https://api.github.com/repos/julyytran/gifsforgood/issues/71"},"comments":{"href":"https://api.github.com/repos/julyytran/gifsforgood/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/julyytran/gifsforgood/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/julyytran/gifsforgood/statuses/a4337a47f5f2758630ac8a515a73eb28f313e886"}}}}