{"action":"created","comment":{"url":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments/26433945","id":26433945,"diff_hunk":"@@ -1,5 +1,16 @@\n require 'rails_helper'\n \n RSpec.describe Order, type: :model do\n-  pending \"add some examples to (or delete) #{__FILE__}\"\n+\n+  it \"has a defualt status of ordered\" do\n+    order = create(:order)\n+    expect(order.status).to eq(\"ordered\")\n+  end\n+\n+  it \"belongs to a user\" do\n+    user = create(:user)\n+    user.orders.create(status:0, cart: {\"1\" => 3} )\n+    expect(Order.first.user_id).to eq(user.id)\n+  end\n+","path":"spec/models/order_spec.rb","position":16,"original_position":16,"commit_id":"07d9b980ec78a5ad813729a352d0d8ae94a42130","original_commit_id":"07d9b980ec78a5ad813729a352d0d8ae94a42130","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at block body end.","created_at":"2015-03-14T01:48:45Z","updated_at":"2015-03-14T01:48:45Z","html_url":"https://github.com/neslom/dinner_dash/pull/64#discussion_r26433945","pull_request_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments/26433945"},"html":{"href":"https://github.com/neslom/dinner_dash/pull/64#discussion_r26433945"},"pull_request":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/neslom/dinner_dash/pulls/64","id":31176216,"html_url":"https://github.com/neslom/dinner_dash/pull/64","diff_url":"https://github.com/neslom/dinner_dash/pull/64.diff","patch_url":"https://github.com/neslom/dinner_dash/pull/64.patch","issue_url":"https://api.github.com/repos/neslom/dinner_dash/issues/64","number":64,"state":"open","locked":false,"title":"Line price and total for order","user":{"login":"kyraweber","id":6415583,"avatar_url":"https://avatars.githubusercontent.com/u/6415583?v=3","gravatar_id":"","url":"https://api.github.com/users/kyraweber","html_url":"https://github.com/kyraweber","followers_url":"https://api.github.com/users/kyraweber/followers","following_url":"https://api.github.com/users/kyraweber/following{/other_user}","gists_url":"https://api.github.com/users/kyraweber/gists{/gist_id}","starred_url":"https://api.github.com/users/kyraweber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyraweber/subscriptions","organizations_url":"https://api.github.com/users/kyraweber/orgs","repos_url":"https://api.github.com/users/kyraweber/repos","events_url":"https://api.github.com/users/kyraweber/events{/privacy}","received_events_url":"https://api.github.com/users/kyraweber/received_events","type":"User","site_admin":false},"body":"One skipped test. One little bug- if you log in as Rachel and go directly to order history, one of her order totals is wrong. :)  I will find out why. Every other calculation for every other person is correct.","created_at":"2015-03-14T01:48:37Z","updated_at":"2015-03-14T01:48:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8fd057a89aa74b43ac8577ea60ff2aa9ebbaa68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/64/commits","review_comments_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/64/comments","review_comment_url":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neslom/dinner_dash/issues/64/comments","statuses_url":"https://api.github.com/repos/neslom/dinner_dash/statuses/07d9b980ec78a5ad813729a352d0d8ae94a42130","head":{"label":"neslom:line_price_and_total_for_order","ref":"line_price_and_total_for_order","sha":"07d9b980ec78a5ad813729a352d0d8ae94a42130","user":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"repo":{"id":31906336,"name":"dinner_dash","full_name":"neslom/dinner_dash","owner":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neslom/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/neslom/dinner_dash","forks_url":"https://api.github.com/repos/neslom/dinner_dash/forks","keys_url":"https://api.github.com/repos/neslom/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neslom/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neslom/dinner_dash/teams","hooks_url":"https://api.github.com/repos/neslom/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/neslom/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/neslom/dinner_dash/events","assignees_url":"https://api.github.com/repos/neslom/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/neslom/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/neslom/dinner_dash/tags","blobs_url":"https://api.github.com/repos/neslom/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neslom/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neslom/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/neslom/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neslom/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/neslom/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/neslom/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/neslom/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/neslom/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/neslom/dinner_dash/subscription","commits_url":"https://api.github.com/repos/neslom/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/neslom/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/neslom/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/neslom/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/neslom/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/neslom/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neslom/dinner_dash/merges","archive_url":"https://api.github.com/repos/neslom/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neslom/dinner_dash/downloads","issues_url":"https://api.github.com/repos/neslom/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/neslom/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/neslom/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/neslom/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neslom/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/neslom/dinner_dash/releases{/id}","created_at":"2015-03-09T15:28:39Z","updated_at":"2015-03-13T23:47:46Z","pushed_at":"2015-03-14T01:47:10Z","git_url":"git://github.com/neslom/dinner_dash.git","ssh_url":"git@github.com:neslom/dinner_dash.git","clone_url":"https://github.com/neslom/dinner_dash.git","svn_url":"https://github.com/neslom/dinner_dash","homepage":null,"size":405,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":0,"default_branch":"master"}},"base":{"label":"neslom:master","ref":"master","sha":"7dbee4b99cbf7d9c152fa83ed5f28306d28d4af8","user":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"repo":{"id":31906336,"name":"dinner_dash","full_name":"neslom/dinner_dash","owner":{"login":"neslom","id":8800860,"avatar_url":"https://avatars.githubusercontent.com/u/8800860?v=3","gravatar_id":"","url":"https://api.github.com/users/neslom","html_url":"https://github.com/neslom","followers_url":"https://api.github.com/users/neslom/followers","following_url":"https://api.github.com/users/neslom/following{/other_user}","gists_url":"https://api.github.com/users/neslom/gists{/gist_id}","starred_url":"https://api.github.com/users/neslom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neslom/subscriptions","organizations_url":"https://api.github.com/users/neslom/orgs","repos_url":"https://api.github.com/users/neslom/repos","events_url":"https://api.github.com/users/neslom/events{/privacy}","received_events_url":"https://api.github.com/users/neslom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neslom/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/neslom/dinner_dash","forks_url":"https://api.github.com/repos/neslom/dinner_dash/forks","keys_url":"https://api.github.com/repos/neslom/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neslom/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neslom/dinner_dash/teams","hooks_url":"https://api.github.com/repos/neslom/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/neslom/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/neslom/dinner_dash/events","assignees_url":"https://api.github.com/repos/neslom/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/neslom/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/neslom/dinner_dash/tags","blobs_url":"https://api.github.com/repos/neslom/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neslom/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neslom/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/neslom/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neslom/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/neslom/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/neslom/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/neslom/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/neslom/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/neslom/dinner_dash/subscription","commits_url":"https://api.github.com/repos/neslom/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/neslom/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/neslom/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/neslom/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/neslom/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/neslom/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neslom/dinner_dash/merges","archive_url":"https://api.github.com/repos/neslom/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neslom/dinner_dash/downloads","issues_url":"https://api.github.com/repos/neslom/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/neslom/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/neslom/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/neslom/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neslom/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/neslom/dinner_dash/releases{/id}","created_at":"2015-03-09T15:28:39Z","updated_at":"2015-03-13T23:47:46Z","pushed_at":"2015-03-14T01:47:10Z","git_url":"git://github.com/neslom/dinner_dash.git","ssh_url":"git@github.com:neslom/dinner_dash.git","clone_url":"https://github.com/neslom/dinner_dash.git","svn_url":"https://github.com/neslom/dinner_dash","homepage":null,"size":405,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/64"},"html":{"href":"https://github.com/neslom/dinner_dash/pull/64"},"issue":{"href":"https://api.github.com/repos/neslom/dinner_dash/issues/64"},"comments":{"href":"https://api.github.com/repos/neslom/dinner_dash/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neslom/dinner_dash/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/neslom/dinner_dash/statuses/07d9b980ec78a5ad813729a352d0d8ae94a42130"}}}}