{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/comments/43785400","id":43785400,"diff_hunk":"@@ -231,6 +231,29 @@ class Image < ActiveFedora::Base\n       expect(subject.ordered_members).to eq [member, member2, member2, member]\n     end\n   end\n+  describe \"insert_target_id_at\" do\n+    it \"can add between items\" do\n+      member = Member.create\n+      member2 = Member.create\n+      subject.ordered_members += [member, member2]\n+\n+      allow(ActiveFedora::Base).to receive(:find).and_call_original","path":"spec/activefedora/ordered_spec.rb","position":10,"original_position":10,"commit_id":"3359547ac4d66f0871c52c922f3f52689dd0fa43","original_commit_id":"3359547ac4d66f0871c52c922f3f52689dd0fa43","user":{"login":"mjgiarlo","id":131982,"avatar_url":"https://avatars.githubusercontent.com/u/131982?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgiarlo","html_url":"https://github.com/mjgiarlo","followers_url":"https://api.github.com/users/mjgiarlo/followers","following_url":"https://api.github.com/users/mjgiarlo/following{/other_user}","gists_url":"https://api.github.com/users/mjgiarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgiarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgiarlo/subscriptions","organizations_url":"https://api.github.com/users/mjgiarlo/orgs","repos_url":"https://api.github.com/users/mjgiarlo/repos","events_url":"https://api.github.com/users/mjgiarlo/events{/privacy}","received_events_url":"https://api.github.com/users/mjgiarlo/received_events","type":"User","site_admin":false},"body":"You're setting a stub here that calls original, right? Is this line needed?","created_at":"2015-11-03T18:22:32Z","updated_at":"2015-11-03T18:22:32Z","html_url":"https://github.com/projecthydra-labs/activefedora-aggregation/pull/107#discussion_r43785400","pull_request_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/comments/43785400"},"html":{"href":"https://github.com/projecthydra-labs/activefedora-aggregation/pull/107#discussion_r43785400"},"pull_request":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107","id":49586601,"html_url":"https://github.com/projecthydra-labs/activefedora-aggregation/pull/107","diff_url":"https://github.com/projecthydra-labs/activefedora-aggregation/pull/107.diff","patch_url":"https://github.com/projecthydra-labs/activefedora-aggregation/pull/107.patch","issue_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/107","number":107,"state":"closed","locked":false,"title":"Add insert_target_id.","user":{"login":"tpendragon","id":2806645,"avatar_url":"https://avatars.githubusercontent.com/u/2806645?v=3","gravatar_id":"","url":"https://api.github.com/users/tpendragon","html_url":"https://github.com/tpendragon","followers_url":"https://api.github.com/users/tpendragon/followers","following_url":"https://api.github.com/users/tpendragon/following{/other_user}","gists_url":"https://api.github.com/users/tpendragon/gists{/gist_id}","starred_url":"https://api.github.com/users/tpendragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpendragon/subscriptions","organizations_url":"https://api.github.com/users/tpendragon/orgs","repos_url":"https://api.github.com/users/tpendragon/repos","events_url":"https://api.github.com/users/tpendragon/events{/privacy}","received_events_url":"https://api.github.com/users/tpendragon/received_events","type":"User","site_admin":false},"body":"Allows for inserting records in specific locations without having to\r\npull the record.","created_at":"2015-11-03T17:38:15Z","updated_at":"2015-11-03T18:22:32Z","closed_at":"2015-11-03T17:50:41Z","merged_at":"2015-11-03T17:50:41Z","merge_commit_sha":"ff94551e17640d37c115a1b40d3b503257e6d412","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107/commits","review_comments_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107/comments","review_comment_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/107/comments","statuses_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/statuses/3359547ac4d66f0871c52c922f3f52689dd0fa43","head":{"label":"projecthydra-labs:insert_target_id_at","ref":"insert_target_id_at","sha":"3359547ac4d66f0871c52c922f3f52689dd0fa43","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":32475785,"name":"activefedora-aggregation","full_name":"projecthydra-labs/activefedora-aggregation","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/activefedora-aggregation","description":"Aggregation relationship for ActiveFedora","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation","forks_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/releases{/id}","created_at":"2015-03-18T18:06:40Z","updated_at":"2015-09-24T14:02:26Z","pushed_at":"2015-11-03T18:06:20Z","git_url":"git://github.com/projecthydra-labs/activefedora-aggregation.git","ssh_url":"git@github.com:projecthydra-labs/activefedora-aggregation.git","clone_url":"https://github.com/projecthydra-labs/activefedora-aggregation.git","svn_url":"https://github.com/projecthydra-labs/activefedora-aggregation","homepage":null,"size":940,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":4,"default_branch":"master"}},"base":{"label":"projecthydra-labs:master","ref":"master","sha":"36980baee37b77c1174d1bac98c85728abe746bd","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":32475785,"name":"activefedora-aggregation","full_name":"projecthydra-labs/activefedora-aggregation","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/activefedora-aggregation","description":"Aggregation relationship for ActiveFedora","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation","forks_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/releases{/id}","created_at":"2015-03-18T18:06:40Z","updated_at":"2015-09-24T14:02:26Z","pushed_at":"2015-11-03T18:06:20Z","git_url":"git://github.com/projecthydra-labs/activefedora-aggregation.git","ssh_url":"git@github.com:projecthydra-labs/activefedora-aggregation.git","clone_url":"https://github.com/projecthydra-labs/activefedora-aggregation.git","svn_url":"https://github.com/projecthydra-labs/activefedora-aggregation","homepage":null,"size":940,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107"},"html":{"href":"https://github.com/projecthydra-labs/activefedora-aggregation/pull/107"},"issue":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/107"},"comments":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra-labs/activefedora-aggregation/statuses/3359547ac4d66f0871c52c922f3f52689dd0fa43"}}}}