{"action":"created","comment":{"url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments/66711071","id":66711071,"diff_hunk":"@@ -0,0 +1,25 @@\n+require 'rails_helper'\n+\n+RSpec.describe OrderItem, type: :model do\n+\n+  let(:order_item_instance) { build(:order_item) }\n+\n+  it \"has a valid factory\" do\n+    expect(order_item_instance).to be_valid\n+  end\n+ \n+  describe \"has correct attributes\" do\n+    it { expect(order_item_instance).to respond_to(:order) }\n+    it { expect(order_item_instance).to respond_to(:item) }\n+  end\n+\n+  describe \"category validates associations\" do\n+    it { expect(order_item_instance).to belong_to(:order) }\n+    it { expect(order_item_instance).to belong_to(:item) }\n+  end\n+\n+  describe \"item validates attributes\" do ","path":"spec/models/order_item_spec.rb","position":21,"original_position":21,"commit_id":"bd157f028ac847259485be2055611ca8e291da34","original_commit_id":"bd157f028ac847259485be2055611ca8e291da34","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":"Trailing whitespace detected.","created_at":"2016-06-11T20:07:59Z","updated_at":"2016-06-11T20:07:59Z","html_url":"https://github.com/ColinOsborn/general_store/pull/65#discussion_r66711071","pull_request_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments/66711071"},"html":{"href":"https://github.com/ColinOsborn/general_store/pull/65#discussion_r66711071"},"pull_request":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65","id":73477177,"html_url":"https://github.com/ColinOsborn/general_store/pull/65","diff_url":"https://github.com/ColinOsborn/general_store/pull/65.diff","patch_url":"https://github.com/ColinOsborn/general_store/pull/65.patch","issue_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/65","number":65,"state":"open","locked":false,"title":"[WIP] add order and order_items table","user":{"login":"saylerb","id":13383576,"avatar_url":"https://avatars.githubusercontent.com/u/13383576?v=3","gravatar_id":"","url":"https://api.github.com/users/saylerb","html_url":"https://github.com/saylerb","followers_url":"https://api.github.com/users/saylerb/followers","following_url":"https://api.github.com/users/saylerb/following{/other_user}","gists_url":"https://api.github.com/users/saylerb/gists{/gist_id}","starred_url":"https://api.github.com/users/saylerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saylerb/subscriptions","organizations_url":"https://api.github.com/users/saylerb/orgs","repos_url":"https://api.github.com/users/saylerb/repos","events_url":"https://api.github.com/users/saylerb/events{/privacy}","received_events_url":"https://api.github.com/users/saylerb/received_events","type":"User","site_admin":false},"body":"- setup new tables (order and order_items)\r\n   - generate model for order and order_items with correct associations\r\n   - migrate tables\r\n   - add model tests for Order and OrderItem\r\n- create factories for order and order_item\r\n- change Rspec syntax in item_spec from 'should' to 'expect'\r\n- add validations for order\r\n  - add validations in Order model\r\n  - adjust factory for Order","created_at":"2016-06-11T20:07:54Z","updated_at":"2016-06-11T20:07:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e40675e166116aaecd459d954a07fce2500d860b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65/commits","review_comments_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65/comments","review_comment_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/65/comments","statuses_url":"https://api.github.com/repos/ColinOsborn/general_store/statuses/bd157f028ac847259485be2055611ca8e291da34","head":{"label":"ColinOsborn:31-viewing_past_orders","ref":"31-viewing_past_orders","sha":"bd157f028ac847259485be2055611ca8e291da34","user":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"repo":{"id":60564221,"name":"general_store","full_name":"ColinOsborn/general_store","owner":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ColinOsborn/general_store","description":"","fork":false,"url":"https://api.github.com/repos/ColinOsborn/general_store","forks_url":"https://api.github.com/repos/ColinOsborn/general_store/forks","keys_url":"https://api.github.com/repos/ColinOsborn/general_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColinOsborn/general_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColinOsborn/general_store/teams","hooks_url":"https://api.github.com/repos/ColinOsborn/general_store/hooks","issue_events_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/events{/number}","events_url":"https://api.github.com/repos/ColinOsborn/general_store/events","assignees_url":"https://api.github.com/repos/ColinOsborn/general_store/assignees{/user}","branches_url":"https://api.github.com/repos/ColinOsborn/general_store/branches{/branch}","tags_url":"https://api.github.com/repos/ColinOsborn/general_store/tags","blobs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColinOsborn/general_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColinOsborn/general_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColinOsborn/general_store/statuses/{sha}","languages_url":"https://api.github.com/repos/ColinOsborn/general_store/languages","stargazers_url":"https://api.github.com/repos/ColinOsborn/general_store/stargazers","contributors_url":"https://api.github.com/repos/ColinOsborn/general_store/contributors","subscribers_url":"https://api.github.com/repos/ColinOsborn/general_store/subscribers","subscription_url":"https://api.github.com/repos/ColinOsborn/general_store/subscription","commits_url":"https://api.github.com/repos/ColinOsborn/general_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColinOsborn/general_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColinOsborn/general_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColinOsborn/general_store/contents/{+path}","compare_url":"https://api.github.com/repos/ColinOsborn/general_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColinOsborn/general_store/merges","archive_url":"https://api.github.com/repos/ColinOsborn/general_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColinOsborn/general_store/downloads","issues_url":"https://api.github.com/repos/ColinOsborn/general_store/issues{/number}","pulls_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls{/number}","milestones_url":"https://api.github.com/repos/ColinOsborn/general_store/milestones{/number}","notifications_url":"https://api.github.com/repos/ColinOsborn/general_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColinOsborn/general_store/labels{/name}","releases_url":"https://api.github.com/repos/ColinOsborn/general_store/releases{/id}","deployments_url":"https://api.github.com/repos/ColinOsborn/general_store/deployments","created_at":"2016-06-06T22:10:04Z","updated_at":"2016-06-07T00:08:09Z","pushed_at":"2016-06-11T20:07:54Z","git_url":"git://github.com/ColinOsborn/general_store.git","ssh_url":"git@github.com:ColinOsborn/general_store.git","clone_url":"https://github.com/ColinOsborn/general_store.git","svn_url":"https://github.com/ColinOsborn/general_store","homepage":null,"size":90,"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":22,"forks":0,"open_issues":22,"watchers":0,"default_branch":"master"}},"base":{"label":"ColinOsborn:development_master","ref":"development_master","sha":"099d3cd6a49a8be5500e6689e3414842421f3c04","user":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"repo":{"id":60564221,"name":"general_store","full_name":"ColinOsborn/general_store","owner":{"login":"ColinOsborn","id":13109607,"avatar_url":"https://avatars.githubusercontent.com/u/13109607?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinOsborn","html_url":"https://github.com/ColinOsborn","followers_url":"https://api.github.com/users/ColinOsborn/followers","following_url":"https://api.github.com/users/ColinOsborn/following{/other_user}","gists_url":"https://api.github.com/users/ColinOsborn/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinOsborn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinOsborn/subscriptions","organizations_url":"https://api.github.com/users/ColinOsborn/orgs","repos_url":"https://api.github.com/users/ColinOsborn/repos","events_url":"https://api.github.com/users/ColinOsborn/events{/privacy}","received_events_url":"https://api.github.com/users/ColinOsborn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ColinOsborn/general_store","description":"","fork":false,"url":"https://api.github.com/repos/ColinOsborn/general_store","forks_url":"https://api.github.com/repos/ColinOsborn/general_store/forks","keys_url":"https://api.github.com/repos/ColinOsborn/general_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColinOsborn/general_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColinOsborn/general_store/teams","hooks_url":"https://api.github.com/repos/ColinOsborn/general_store/hooks","issue_events_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/events{/number}","events_url":"https://api.github.com/repos/ColinOsborn/general_store/events","assignees_url":"https://api.github.com/repos/ColinOsborn/general_store/assignees{/user}","branches_url":"https://api.github.com/repos/ColinOsborn/general_store/branches{/branch}","tags_url":"https://api.github.com/repos/ColinOsborn/general_store/tags","blobs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColinOsborn/general_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColinOsborn/general_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColinOsborn/general_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColinOsborn/general_store/statuses/{sha}","languages_url":"https://api.github.com/repos/ColinOsborn/general_store/languages","stargazers_url":"https://api.github.com/repos/ColinOsborn/general_store/stargazers","contributors_url":"https://api.github.com/repos/ColinOsborn/general_store/contributors","subscribers_url":"https://api.github.com/repos/ColinOsborn/general_store/subscribers","subscription_url":"https://api.github.com/repos/ColinOsborn/general_store/subscription","commits_url":"https://api.github.com/repos/ColinOsborn/general_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColinOsborn/general_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColinOsborn/general_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColinOsborn/general_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColinOsborn/general_store/contents/{+path}","compare_url":"https://api.github.com/repos/ColinOsborn/general_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColinOsborn/general_store/merges","archive_url":"https://api.github.com/repos/ColinOsborn/general_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColinOsborn/general_store/downloads","issues_url":"https://api.github.com/repos/ColinOsborn/general_store/issues{/number}","pulls_url":"https://api.github.com/repos/ColinOsborn/general_store/pulls{/number}","milestones_url":"https://api.github.com/repos/ColinOsborn/general_store/milestones{/number}","notifications_url":"https://api.github.com/repos/ColinOsborn/general_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColinOsborn/general_store/labels{/name}","releases_url":"https://api.github.com/repos/ColinOsborn/general_store/releases{/id}","deployments_url":"https://api.github.com/repos/ColinOsborn/general_store/deployments","created_at":"2016-06-06T22:10:04Z","updated_at":"2016-06-07T00:08:09Z","pushed_at":"2016-06-11T20:07:54Z","git_url":"git://github.com/ColinOsborn/general_store.git","ssh_url":"git@github.com:ColinOsborn/general_store.git","clone_url":"https://github.com/ColinOsborn/general_store.git","svn_url":"https://github.com/ColinOsborn/general_store","homepage":null,"size":90,"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":22,"forks":0,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65"},"html":{"href":"https://github.com/ColinOsborn/general_store/pull/65"},"issue":{"href":"https://api.github.com/repos/ColinOsborn/general_store/issues/65"},"comments":{"href":"https://api.github.com/repos/ColinOsborn/general_store/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ColinOsborn/general_store/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/ColinOsborn/general_store/statuses/bd157f028ac847259485be2055611ca8e291da34"}}}}
{"actor":{"display_login":"houndci-bot"}}