{"action":"created","comment":{"url":"https://api.github.com/repos/akintner/RailsEngine/pulls/comments/98036706","pull_request_review_id":18666408,"id":98036706,"diff_hunk":"@@ -0,0 +1,25 @@\n+require 'rails_helper'\n+\n+RSpec.describe 'Items Relationships' do\n+  it 'can find all invoice_items for item' do\n+    item = create(:item)\n+    invoice_items = create_list(:invoice_item, 4)\n+    item.invoice_items << invoice_items\n+    get \"/api/v1/items/#{item.id}/invoice_items\"\n+\n+    invoice_items = JSON.parse(response.body)\n+\n+    expect(response).to be_success\n+    expect(invoice_items.count).to eq(item.invoice_items.count)\n+  end\n+\n+  it 'can find merchant for item' do\n+    item = create(:item)\n+    get \"//api/v1/items/#{item.id}/merchant\"","path":"spec/requests/api/v1/item_relationships_spec.rb","position":18,"original_position":18,"commit_id":"2c505d21e9fa837c2ae93ad49eb2a375239c83a8","original_commit_id":"2c505d21e9fa837c2ae93ad49eb2a375239c83a8","user":{"login":"case-eee","id":6503717,"avatar_url":"https://avatars.githubusercontent.com/u/6503717?v=3","gravatar_id":"","url":"https://api.github.com/users/case-eee","html_url":"https://github.com/case-eee","followers_url":"https://api.github.com/users/case-eee/followers","following_url":"https://api.github.com/users/case-eee/following{/other_user}","gists_url":"https://api.github.com/users/case-eee/gists{/gist_id}","starred_url":"https://api.github.com/users/case-eee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/case-eee/subscriptions","organizations_url":"https://api.github.com/users/case-eee/orgs","repos_url":"https://api.github.com/users/case-eee/repos","events_url":"https://api.github.com/users/case-eee/events{/privacy}","received_events_url":"https://api.github.com/users/case-eee/received_events","type":"User","site_admin":false},"body":"be careful with the double `/` here at the beginning!","created_at":"2017-01-26T16:47:26Z","updated_at":"2017-01-26T16:47:33Z","html_url":"https://github.com/akintner/RailsEngine/pull/56#discussion_r98036706","pull_request_url":"https://api.github.com/repos/akintner/RailsEngine/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/akintner/RailsEngine/pulls/comments/98036706"},"html":{"href":"https://github.com/akintner/RailsEngine/pull/56#discussion_r98036706"},"pull_request":{"href":"https://api.github.com/repos/akintner/RailsEngine/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/akintner/RailsEngine/pulls/56","id":103220680,"html_url":"https://github.com/akintner/RailsEngine/pull/56","diff_url":"https://github.com/akintner/RailsEngine/pull/56.diff","patch_url":"https://github.com/akintner/RailsEngine/pull/56.patch","issue_url":"https://api.github.com/repos/akintner/RailsEngine/issues/56","number":56,"state":"closed","locked":false,"title":"Ak item relationships","user":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"body":"add all relationship endpoints for item\r\n\r\nadd controllers for item relationships with invoice-items and merchant\r\n\r\nupdate serializer for item\r\n\r\nadd item_relationships_spec","created_at":"2017-01-25T22:45:40Z","updated_at":"2017-01-26T16:47:33Z","closed_at":"2017-01-25T23:56:33Z","merged_at":"2017-01-25T23:56:33Z","merge_commit_sha":"1304bbe59b8eecd8770c6e1d51b2ed60eccff3aa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/akintner/RailsEngine/pulls/56/commits","review_comments_url":"https://api.github.com/repos/akintner/RailsEngine/pulls/56/comments","review_comment_url":"https://api.github.com/repos/akintner/RailsEngine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akintner/RailsEngine/issues/56/comments","statuses_url":"https://api.github.com/repos/akintner/RailsEngine/statuses/2c505d21e9fa837c2ae93ad49eb2a375239c83a8","head":{"label":"akintner:ak-item_relationships","ref":"ak-item_relationships","sha":"2c505d21e9fa837c2ae93ad49eb2a375239c83a8","user":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"repo":{"id":79859285,"name":"RailsEngine","full_name":"akintner/RailsEngine","owner":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akintner/RailsEngine","description":null,"fork":false,"url":"https://api.github.com/repos/akintner/RailsEngine","forks_url":"https://api.github.com/repos/akintner/RailsEngine/forks","keys_url":"https://api.github.com/repos/akintner/RailsEngine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akintner/RailsEngine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akintner/RailsEngine/teams","hooks_url":"https://api.github.com/repos/akintner/RailsEngine/hooks","issue_events_url":"https://api.github.com/repos/akintner/RailsEngine/issues/events{/number}","events_url":"https://api.github.com/repos/akintner/RailsEngine/events","assignees_url":"https://api.github.com/repos/akintner/RailsEngine/assignees{/user}","branches_url":"https://api.github.com/repos/akintner/RailsEngine/branches{/branch}","tags_url":"https://api.github.com/repos/akintner/RailsEngine/tags","blobs_url":"https://api.github.com/repos/akintner/RailsEngine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akintner/RailsEngine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akintner/RailsEngine/git/refs{/sha}","trees_url":"https://api.github.com/repos/akintner/RailsEngine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akintner/RailsEngine/statuses/{sha}","languages_url":"https://api.github.com/repos/akintner/RailsEngine/languages","stargazers_url":"https://api.github.com/repos/akintner/RailsEngine/stargazers","contributors_url":"https://api.github.com/repos/akintner/RailsEngine/contributors","subscribers_url":"https://api.github.com/repos/akintner/RailsEngine/subscribers","subscription_url":"https://api.github.com/repos/akintner/RailsEngine/subscription","commits_url":"https://api.github.com/repos/akintner/RailsEngine/commits{/sha}","git_commits_url":"https://api.github.com/repos/akintner/RailsEngine/git/commits{/sha}","comments_url":"https://api.github.com/repos/akintner/RailsEngine/comments{/number}","issue_comment_url":"https://api.github.com/repos/akintner/RailsEngine/issues/comments{/number}","contents_url":"https://api.github.com/repos/akintner/RailsEngine/contents/{+path}","compare_url":"https://api.github.com/repos/akintner/RailsEngine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akintner/RailsEngine/merges","archive_url":"https://api.github.com/repos/akintner/RailsEngine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akintner/RailsEngine/downloads","issues_url":"https://api.github.com/repos/akintner/RailsEngine/issues{/number}","pulls_url":"https://api.github.com/repos/akintner/RailsEngine/pulls{/number}","milestones_url":"https://api.github.com/repos/akintner/RailsEngine/milestones{/number}","notifications_url":"https://api.github.com/repos/akintner/RailsEngine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akintner/RailsEngine/labels{/name}","releases_url":"https://api.github.com/repos/akintner/RailsEngine/releases{/id}","deployments_url":"https://api.github.com/repos/akintner/RailsEngine/deployments","created_at":"2017-01-23T23:26:00Z","updated_at":"2017-01-23T23:28:09Z","pushed_at":"2017-01-26T16:43:32Z","git_url":"git://github.com/akintner/RailsEngine.git","ssh_url":"git@github.com:akintner/RailsEngine.git","clone_url":"https://github.com/akintner/RailsEngine.git","svn_url":"https://github.com/akintner/RailsEngine","homepage":null,"size":691,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"akintner:master","ref":"master","sha":"e198c1e3b36f379ccc267f256bfb75f4b1d74521","user":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"repo":{"id":79859285,"name":"RailsEngine","full_name":"akintner/RailsEngine","owner":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akintner/RailsEngine","description":null,"fork":false,"url":"https://api.github.com/repos/akintner/RailsEngine","forks_url":"https://api.github.com/repos/akintner/RailsEngine/forks","keys_url":"https://api.github.com/repos/akintner/RailsEngine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akintner/RailsEngine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akintner/RailsEngine/teams","hooks_url":"https://api.github.com/repos/akintner/RailsEngine/hooks","issue_events_url":"https://api.github.com/repos/akintner/RailsEngine/issues/events{/number}","events_url":"https://api.github.com/repos/akintner/RailsEngine/events","assignees_url":"https://api.github.com/repos/akintner/RailsEngine/assignees{/user}","branches_url":"https://api.github.com/repos/akintner/RailsEngine/branches{/branch}","tags_url":"https://api.github.com/repos/akintner/RailsEngine/tags","blobs_url":"https://api.github.com/repos/akintner/RailsEngine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akintner/RailsEngine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akintner/RailsEngine/git/refs{/sha}","trees_url":"https://api.github.com/repos/akintner/RailsEngine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akintner/RailsEngine/statuses/{sha}","languages_url":"https://api.github.com/repos/akintner/RailsEngine/languages","stargazers_url":"https://api.github.com/repos/akintner/RailsEngine/stargazers","contributors_url":"https://api.github.com/repos/akintner/RailsEngine/contributors","subscribers_url":"https://api.github.com/repos/akintner/RailsEngine/subscribers","subscription_url":"https://api.github.com/repos/akintner/RailsEngine/subscription","commits_url":"https://api.github.com/repos/akintner/RailsEngine/commits{/sha}","git_commits_url":"https://api.github.com/repos/akintner/RailsEngine/git/commits{/sha}","comments_url":"https://api.github.com/repos/akintner/RailsEngine/comments{/number}","issue_comment_url":"https://api.github.com/repos/akintner/RailsEngine/issues/comments{/number}","contents_url":"https://api.github.com/repos/akintner/RailsEngine/contents/{+path}","compare_url":"https://api.github.com/repos/akintner/RailsEngine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akintner/RailsEngine/merges","archive_url":"https://api.github.com/repos/akintner/RailsEngine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akintner/RailsEngine/downloads","issues_url":"https://api.github.com/repos/akintner/RailsEngine/issues{/number}","pulls_url":"https://api.github.com/repos/akintner/RailsEngine/pulls{/number}","milestones_url":"https://api.github.com/repos/akintner/RailsEngine/milestones{/number}","notifications_url":"https://api.github.com/repos/akintner/RailsEngine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akintner/RailsEngine/labels{/name}","releases_url":"https://api.github.com/repos/akintner/RailsEngine/releases{/id}","deployments_url":"https://api.github.com/repos/akintner/RailsEngine/deployments","created_at":"2017-01-23T23:26:00Z","updated_at":"2017-01-23T23:28:09Z","pushed_at":"2017-01-26T16:43:32Z","git_url":"git://github.com/akintner/RailsEngine.git","ssh_url":"git@github.com:akintner/RailsEngine.git","clone_url":"https://github.com/akintner/RailsEngine.git","svn_url":"https://github.com/akintner/RailsEngine","homepage":null,"size":691,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akintner/RailsEngine/pulls/56"},"html":{"href":"https://github.com/akintner/RailsEngine/pull/56"},"issue":{"href":"https://api.github.com/repos/akintner/RailsEngine/issues/56"},"comments":{"href":"https://api.github.com/repos/akintner/RailsEngine/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/akintner/RailsEngine/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/akintner/RailsEngine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akintner/RailsEngine/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/akintner/RailsEngine/statuses/2c505d21e9fa837c2ae93ad49eb2a375239c83a8"}}}}
{"actor":{"display_login":"case-eee"}}