{"action":"created","comment":{"url":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments/33063676","id":33063676,"diff_hunk":"@@ -0,0 +1,34 @@\n+require 'rails_helper'\n+\n+RSpec.describe WithdrawTray do\n+  subject { described_class.call(tray, user)}\n+\n+  let(:tray) { double(Tray, save: true, \"shelf=\" => nil, \"shelved=\" => false, items: [])}\n+  let(:user) { double(User)}\n+\n+  before(:each) do\n+    allow(IsObjectTray).to receive(:call).with(tray).and_return(true)\n+    allow(UnshelveTray).to receive(:call).with(tray, user).and_return(tray)\n+    allow(DissociateTrayFromShelf).to receive(:call).with(tray, user).and_return(tray)\n+  end\n+\n+  it \"saves the dissociated tray\" do\n+    expect(tray).to receive(:save)\n+    subject\n+  end\n+\n+  it \"returns the tray on success\" do\n+    expect(tray).to receive(:save).and_return(true)\n+    expect(subject).to be(tray)\n+  end\n+\n+  it \"returns false on failure\" do\n+    expect(tray).to receive(:save).and_return(false)\n+    expect(subject).to be(false)\n+  end\n+\n+  it \"registers the call with the transaction log\" do\n+    #expect(TransactionLog).to recieve(:call).with(\"dissociate\", \"itemid\")","path":"spec/services/withdraw_tray_spec.rb","position":31,"original_position":31,"commit_id":"52807e036a7ff0b446008a8a09652282a22f3604","original_commit_id":"52807e036a7ff0b446008a8a09652282a22f3604","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":"Missing space after #.","created_at":"2015-06-23T16:52:29Z","updated_at":"2015-06-23T16:52:29Z","html_url":"https://github.com/ndlib/annex-ims/pull/7#discussion_r33063676","pull_request_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments/33063676"},"html":{"href":"https://github.com/ndlib/annex-ims/pull/7#discussion_r33063676"},"pull_request":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/ndlib/annex-ims/pulls/7","id":38358204,"html_url":"https://github.com/ndlib/annex-ims/pull/7","diff_url":"https://github.com/ndlib/annex-ims/pull/7.diff","patch_url":"https://github.com/ndlib/annex-ims/pull/7.patch","issue_url":"https://api.github.com/repos/ndlib/annex-ims/issues/7","number":7,"state":"open","locked":false,"title":"Merge staging branch into master","user":{"login":"jaronkk","id":127832,"avatar_url":"https://avatars.githubusercontent.com/u/127832?v=3","gravatar_id":"","url":"https://api.github.com/users/jaronkk","html_url":"https://github.com/jaronkk","followers_url":"https://api.github.com/users/jaronkk/followers","following_url":"https://api.github.com/users/jaronkk/following{/other_user}","gists_url":"https://api.github.com/users/jaronkk/gists{/gist_id}","starred_url":"https://api.github.com/users/jaronkk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaronkk/subscriptions","organizations_url":"https://api.github.com/users/jaronkk/orgs","repos_url":"https://api.github.com/users/jaronkk/repos","events_url":"https://api.github.com/users/jaronkk/events{/privacy}","received_events_url":"https://api.github.com/users/jaronkk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-23T16:50:53Z","updated_at":"2015-06-23T16:52:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5bdfed8061f2e82e0730a83c4a5fa0ed42b42ae5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/7/commits","review_comments_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/7/comments","review_comment_url":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndlib/annex-ims/issues/7/comments","statuses_url":"https://api.github.com/repos/ndlib/annex-ims/statuses/52807e036a7ff0b446008a8a09652282a22f3604","head":{"label":"ndlib:master-staging-merge","ref":"master-staging-merge","sha":"52807e036a7ff0b446008a8a09652282a22f3604","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":27182637,"name":"annex-ims","full_name":"ndlib/annex-ims","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/annex-ims","description":"Software to manage inventory in the annex. ","fork":false,"url":"https://api.github.com/repos/ndlib/annex-ims","forks_url":"https://api.github.com/repos/ndlib/annex-ims/forks","keys_url":"https://api.github.com/repos/ndlib/annex-ims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/annex-ims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/annex-ims/teams","hooks_url":"https://api.github.com/repos/ndlib/annex-ims/hooks","issue_events_url":"https://api.github.com/repos/ndlib/annex-ims/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/annex-ims/events","assignees_url":"https://api.github.com/repos/ndlib/annex-ims/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/annex-ims/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/annex-ims/tags","blobs_url":"https://api.github.com/repos/ndlib/annex-ims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/annex-ims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/annex-ims/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/annex-ims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/annex-ims/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/annex-ims/languages","stargazers_url":"https://api.github.com/repos/ndlib/annex-ims/stargazers","contributors_url":"https://api.github.com/repos/ndlib/annex-ims/contributors","subscribers_url":"https://api.github.com/repos/ndlib/annex-ims/subscribers","subscription_url":"https://api.github.com/repos/ndlib/annex-ims/subscription","commits_url":"https://api.github.com/repos/ndlib/annex-ims/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/annex-ims/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/annex-ims/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/annex-ims/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/annex-ims/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/annex-ims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/annex-ims/merges","archive_url":"https://api.github.com/repos/ndlib/annex-ims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/annex-ims/downloads","issues_url":"https://api.github.com/repos/ndlib/annex-ims/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/annex-ims/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/annex-ims/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/annex-ims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/annex-ims/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/annex-ims/releases{/id}","created_at":"2014-11-26T15:16:57Z","updated_at":"2015-04-15T21:31:36Z","pushed_at":"2015-06-23T16:50:54Z","git_url":"git://github.com/ndlib/annex-ims.git","ssh_url":"git@github.com:ndlib/annex-ims.git","clone_url":"https://github.com/ndlib/annex-ims.git","svn_url":"https://github.com/ndlib/annex-ims","homepage":null,"size":1464,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"ndlib:master","ref":"master","sha":"36ab4b02897cb0d5d0d6ef58967f7cc9020617f2","user":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"repo":{"id":27182637,"name":"annex-ims","full_name":"ndlib/annex-ims","owner":{"login":"ndlib","id":160943,"avatar_url":"https://avatars.githubusercontent.com/u/160943?v=3","gravatar_id":"","url":"https://api.github.com/users/ndlib","html_url":"https://github.com/ndlib","followers_url":"https://api.github.com/users/ndlib/followers","following_url":"https://api.github.com/users/ndlib/following{/other_user}","gists_url":"https://api.github.com/users/ndlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ndlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndlib/subscriptions","organizations_url":"https://api.github.com/users/ndlib/orgs","repos_url":"https://api.github.com/users/ndlib/repos","events_url":"https://api.github.com/users/ndlib/events{/privacy}","received_events_url":"https://api.github.com/users/ndlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndlib/annex-ims","description":"Software to manage inventory in the annex. ","fork":false,"url":"https://api.github.com/repos/ndlib/annex-ims","forks_url":"https://api.github.com/repos/ndlib/annex-ims/forks","keys_url":"https://api.github.com/repos/ndlib/annex-ims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndlib/annex-ims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndlib/annex-ims/teams","hooks_url":"https://api.github.com/repos/ndlib/annex-ims/hooks","issue_events_url":"https://api.github.com/repos/ndlib/annex-ims/issues/events{/number}","events_url":"https://api.github.com/repos/ndlib/annex-ims/events","assignees_url":"https://api.github.com/repos/ndlib/annex-ims/assignees{/user}","branches_url":"https://api.github.com/repos/ndlib/annex-ims/branches{/branch}","tags_url":"https://api.github.com/repos/ndlib/annex-ims/tags","blobs_url":"https://api.github.com/repos/ndlib/annex-ims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndlib/annex-ims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndlib/annex-ims/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndlib/annex-ims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndlib/annex-ims/statuses/{sha}","languages_url":"https://api.github.com/repos/ndlib/annex-ims/languages","stargazers_url":"https://api.github.com/repos/ndlib/annex-ims/stargazers","contributors_url":"https://api.github.com/repos/ndlib/annex-ims/contributors","subscribers_url":"https://api.github.com/repos/ndlib/annex-ims/subscribers","subscription_url":"https://api.github.com/repos/ndlib/annex-ims/subscription","commits_url":"https://api.github.com/repos/ndlib/annex-ims/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndlib/annex-ims/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndlib/annex-ims/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndlib/annex-ims/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndlib/annex-ims/contents/{+path}","compare_url":"https://api.github.com/repos/ndlib/annex-ims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndlib/annex-ims/merges","archive_url":"https://api.github.com/repos/ndlib/annex-ims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndlib/annex-ims/downloads","issues_url":"https://api.github.com/repos/ndlib/annex-ims/issues{/number}","pulls_url":"https://api.github.com/repos/ndlib/annex-ims/pulls{/number}","milestones_url":"https://api.github.com/repos/ndlib/annex-ims/milestones{/number}","notifications_url":"https://api.github.com/repos/ndlib/annex-ims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndlib/annex-ims/labels{/name}","releases_url":"https://api.github.com/repos/ndlib/annex-ims/releases{/id}","created_at":"2014-11-26T15:16:57Z","updated_at":"2015-04-15T21:31:36Z","pushed_at":"2015-06-23T16:50:54Z","git_url":"git://github.com/ndlib/annex-ims.git","ssh_url":"git@github.com:ndlib/annex-ims.git","clone_url":"https://github.com/ndlib/annex-ims.git","svn_url":"https://github.com/ndlib/annex-ims","homepage":null,"size":1464,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/7"},"html":{"href":"https://github.com/ndlib/annex-ims/pull/7"},"issue":{"href":"https://api.github.com/repos/ndlib/annex-ims/issues/7"},"comments":{"href":"https://api.github.com/repos/ndlib/annex-ims/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndlib/annex-ims/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/ndlib/annex-ims/statuses/52807e036a7ff0b446008a8a09652282a22f3604"}}}}