{"action":"created","comment":{"url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments/66842359","id":66842359,"diff_hunk":"@@ -0,0 +1,38 @@\n+require \"rails_helper\"\n+\n+RSpec.describe OrdersProperty, type: :model do\n+  it { should belong_to(:property) }\n+  it { should belong_to(:order) }\n+\n+  scenario \"the order_property calculates it total\" do\n+    user = User.create(first_name: \"Roger\",\n+              last_name: \"Smith\",\n+              email: \"rsmith@gmail.com\",\n+              username: \"turing123\",\n+              password: \"password\",\n+              password_confirmation: \"password\")\n+\n+    property1, property2 = create_property(2)\n+    cart = Cart.new({property1.id => 1, property2.id => 2})\n+    order = Order.create(user_id: user.id)\n+    order.confirm_order(cart)\n+\n+    expect(OrdersProperty.first.total).to eq(10)\n+  end\n+\n+  scenario \"it can find the property it has\" do\n+    user = User.create(first_name: \"Roger\",\n+              last_name: \"Smith\",\n+              email: \"rsmith@gmail.com\",\n+              username: \"turing123\",","path":"spec/models/orders_property_spec.rb","position":27,"original_position":27,"commit_id":"4dd8f104321199a5e1367cfeffe816cabc46023a","original_commit_id":"4dd8f104321199a5e1367cfeffe816cabc46023a","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":"Align the elements of a hash literal if they span more than one line.","created_at":"2016-06-13T18:25:57Z","updated_at":"2016-06-13T18:25:57Z","html_url":"https://github.com/ExCaelum/desk-nomad/pull/73#discussion_r66842359","pull_request_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments/66842359"},"html":{"href":"https://github.com/ExCaelum/desk-nomad/pull/73#discussion_r66842359"},"pull_request":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73","id":73620819,"html_url":"https://github.com/ExCaelum/desk-nomad/pull/73","diff_url":"https://github.com/ExCaelum/desk-nomad/pull/73.diff","patch_url":"https://github.com/ExCaelum/desk-nomad/pull/73.patch","issue_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/73","number":73,"state":"closed","locked":false,"title":"Dev","user":{"login":"AnnaCW","id":17806544,"avatar_url":"https://avatars.githubusercontent.com/u/17806544?v=3","gravatar_id":"","url":"https://api.github.com/users/AnnaCW","html_url":"https://github.com/AnnaCW","followers_url":"https://api.github.com/users/AnnaCW/followers","following_url":"https://api.github.com/users/AnnaCW/following{/other_user}","gists_url":"https://api.github.com/users/AnnaCW/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnaCW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnaCW/subscriptions","organizations_url":"https://api.github.com/users/AnnaCW/orgs","repos_url":"https://api.github.com/users/AnnaCW/repos","events_url":"https://api.github.com/users/AnnaCW/events{/privacy}","received_events_url":"https://api.github.com/users/AnnaCW/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-13T18:25:37Z","updated_at":"2016-06-13T18:25:57Z","closed_at":"2016-06-13T18:25:53Z","merged_at":"2016-06-13T18:25:53Z","merge_commit_sha":"143497234f266b0ce3708c982202a21a086b2dab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73/commits","review_comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73/comments","review_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/73/comments","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/4dd8f104321199a5e1367cfeffe816cabc46023a","head":{"label":"ExCaelum:dev","ref":"dev","sha":"4dd8f104321199a5e1367cfeffe816cabc46023a","user":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"repo":{"id":60564320,"name":"desk-nomad","full_name":"ExCaelum/desk-nomad","owner":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ExCaelum/desk-nomad","description":"","fork":false,"url":"https://api.github.com/repos/ExCaelum/desk-nomad","forks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/forks","keys_url":"https://api.github.com/repos/ExCaelum/desk-nomad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExCaelum/desk-nomad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExCaelum/desk-nomad/teams","hooks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/hooks","issue_events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/events{/number}","events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/events","assignees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/assignees{/user}","branches_url":"https://api.github.com/repos/ExCaelum/desk-nomad/branches{/branch}","tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/tags","blobs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/{sha}","languages_url":"https://api.github.com/repos/ExCaelum/desk-nomad/languages","stargazers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/stargazers","contributors_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contributors","subscribers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscribers","subscription_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscription","commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contents/{+path}","compare_url":"https://api.github.com/repos/ExCaelum/desk-nomad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExCaelum/desk-nomad/merges","archive_url":"https://api.github.com/repos/ExCaelum/desk-nomad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExCaelum/desk-nomad/downloads","issues_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues{/number}","pulls_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls{/number}","milestones_url":"https://api.github.com/repos/ExCaelum/desk-nomad/milestones{/number}","notifications_url":"https://api.github.com/repos/ExCaelum/desk-nomad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExCaelum/desk-nomad/labels{/name}","releases_url":"https://api.github.com/repos/ExCaelum/desk-nomad/releases{/id}","deployments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/deployments","created_at":"2016-06-06T22:12:35Z","updated_at":"2016-06-06T22:20:54Z","pushed_at":"2016-06-13T18:25:53Z","git_url":"git://github.com/ExCaelum/desk-nomad.git","ssh_url":"git@github.com:ExCaelum/desk-nomad.git","clone_url":"https://github.com/ExCaelum/desk-nomad.git","svn_url":"https://github.com/ExCaelum/desk-nomad","homepage":"https://glacial-wildwood-90255.herokuapp.com/","size":14222,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"ExCaelum:master","ref":"master","sha":"d5988d6865a704a12cbbcbca053c43285ce90445","user":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"repo":{"id":60564320,"name":"desk-nomad","full_name":"ExCaelum/desk-nomad","owner":{"login":"ExCaelum","id":16654741,"avatar_url":"https://avatars.githubusercontent.com/u/16654741?v=3","gravatar_id":"","url":"https://api.github.com/users/ExCaelum","html_url":"https://github.com/ExCaelum","followers_url":"https://api.github.com/users/ExCaelum/followers","following_url":"https://api.github.com/users/ExCaelum/following{/other_user}","gists_url":"https://api.github.com/users/ExCaelum/gists{/gist_id}","starred_url":"https://api.github.com/users/ExCaelum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExCaelum/subscriptions","organizations_url":"https://api.github.com/users/ExCaelum/orgs","repos_url":"https://api.github.com/users/ExCaelum/repos","events_url":"https://api.github.com/users/ExCaelum/events{/privacy}","received_events_url":"https://api.github.com/users/ExCaelum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ExCaelum/desk-nomad","description":"","fork":false,"url":"https://api.github.com/repos/ExCaelum/desk-nomad","forks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/forks","keys_url":"https://api.github.com/repos/ExCaelum/desk-nomad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExCaelum/desk-nomad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExCaelum/desk-nomad/teams","hooks_url":"https://api.github.com/repos/ExCaelum/desk-nomad/hooks","issue_events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/events{/number}","events_url":"https://api.github.com/repos/ExCaelum/desk-nomad/events","assignees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/assignees{/user}","branches_url":"https://api.github.com/repos/ExCaelum/desk-nomad/branches{/branch}","tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/tags","blobs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/{sha}","languages_url":"https://api.github.com/repos/ExCaelum/desk-nomad/languages","stargazers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/stargazers","contributors_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contributors","subscribers_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscribers","subscription_url":"https://api.github.com/repos/ExCaelum/desk-nomad/subscription","commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExCaelum/desk-nomad/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExCaelum/desk-nomad/contents/{+path}","compare_url":"https://api.github.com/repos/ExCaelum/desk-nomad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExCaelum/desk-nomad/merges","archive_url":"https://api.github.com/repos/ExCaelum/desk-nomad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExCaelum/desk-nomad/downloads","issues_url":"https://api.github.com/repos/ExCaelum/desk-nomad/issues{/number}","pulls_url":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls{/number}","milestones_url":"https://api.github.com/repos/ExCaelum/desk-nomad/milestones{/number}","notifications_url":"https://api.github.com/repos/ExCaelum/desk-nomad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExCaelum/desk-nomad/labels{/name}","releases_url":"https://api.github.com/repos/ExCaelum/desk-nomad/releases{/id}","deployments_url":"https://api.github.com/repos/ExCaelum/desk-nomad/deployments","created_at":"2016-06-06T22:12:35Z","updated_at":"2016-06-06T22:20:54Z","pushed_at":"2016-06-13T18:25:53Z","git_url":"git://github.com/ExCaelum/desk-nomad.git","ssh_url":"git@github.com:ExCaelum/desk-nomad.git","clone_url":"https://github.com/ExCaelum/desk-nomad.git","svn_url":"https://github.com/ExCaelum/desk-nomad","homepage":"https://glacial-wildwood-90255.herokuapp.com/","size":14222,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73"},"html":{"href":"https://github.com/ExCaelum/desk-nomad/pull/73"},"issue":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/73"},"comments":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/ExCaelum/desk-nomad/statuses/4dd8f104321199a5e1367cfeffe816cabc46023a"}}}}
{"actor":{"display_login":"houndci-bot"}}