{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/comments/110425354","pull_request_review_id":31600830,"id":110425354,"diff_hunk":"@@ -210,7 +210,7 @@\n     it 'for managers - returns all cases' do\n       existing_cases\n       manager_scope = described_class::Scope.new(manager, Case.all).resolve\n-      expect(manager_scope).to eq existing_cases\n+      expect(manager_scope).to eq existing_cases.sort { |a, b| a.id <=> b.id }","path":"spec/policies/case_policy_spec.rb","position":5,"original_position":5,"commit_id":"fecff26a61dd1b0254f69a99a552c362b3517b73","original_commit_id":"fecff26a61dd1b0254f69a99a552c362b3517b73","user":{"login":"misaka","id":15608,"avatar_url":"https://avatars1.githubusercontent.com/u/15608?v=3","gravatar_id":"","url":"https://api.github.com/users/misaka","html_url":"https://github.com/misaka","followers_url":"https://api.github.com/users/misaka/followers","following_url":"https://api.github.com/users/misaka/following{/other_user}","gists_url":"https://api.github.com/users/misaka/gists{/gist_id}","starred_url":"https://api.github.com/users/misaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misaka/subscriptions","organizations_url":"https://api.github.com/users/misaka/orgs","repos_url":"https://api.github.com/users/misaka/repos","events_url":"https://api.github.com/users/misaka/events{/privacy}","received_events_url":"https://api.github.com/users/misaka/received_events","type":"User","site_admin":false},"body":"Just to mention, `match_array` is useful here:\r\n\r\n```\r\n  expect(manager_scope).to match_array existing_cases\r\n```\r\n\r\nI'll look at tweaking this in another PR.","created_at":"2017-04-07T16:06:25Z","updated_at":"2017-04-07T16:06:25Z","html_url":"https://github.com/ministryofjustice/correspondence_tool_staff/pull/146#discussion_r110425354","pull_request_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/comments/110425354"},"html":{"href":"https://github.com/ministryofjustice/correspondence_tool_staff/pull/146#discussion_r110425354"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146","id":114378215,"html_url":"https://github.com/ministryofjustice/correspondence_tool_staff/pull/146","diff_url":"https://github.com/ministryofjustice/correspondence_tool_staff/pull/146.diff","patch_url":"https://github.com/ministryofjustice/correspondence_tool_staff/pull/146.patch","issue_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/146","number":146,"state":"open","locked":false,"title":"CT-569 Add installation of libreoffice to Dockerfile","user":{"login":"stephenrichards","id":115617,"avatar_url":"https://avatars2.githubusercontent.com/u/115617?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenrichards","html_url":"https://github.com/stephenrichards","followers_url":"https://api.github.com/users/stephenrichards/followers","following_url":"https://api.github.com/users/stephenrichards/following{/other_user}","gists_url":"https://api.github.com/users/stephenrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenrichards/subscriptions","organizations_url":"https://api.github.com/users/stephenrichards/orgs","repos_url":"https://api.github.com/users/stephenrichards/repos","events_url":"https://api.github.com/users/stephenrichards/events{/privacy}","received_events_url":"https://api.github.com/users/stephenrichards/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-05T13:37:07Z","updated_at":"2017-04-07T16:06:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afb519b672a9b484b3bd649428a718f629b226e8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/146/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/statuses/fecff26a61dd1b0254f69a99a552c362b3517b73","head":{"label":"ministryofjustice:ct569-install-libreffice","ref":"ct569-install-libreffice","sha":"fecff26a61dd1b0254f69a99a552c362b3517b73","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":61301199,"name":"correspondence_tool_staff","full_name":"ministryofjustice/correspondence_tool_staff","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/correspondence_tool_staff","description":"Correspondence Tool Staff - Rails App with Postgres Backend","fork":false,"url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff","forks_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/forks","keys_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/events","assignees_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/merges","archive_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/deployments","created_at":"2016-06-16T14:35:41Z","updated_at":"2016-11-01T15:58:38Z","pushed_at":"2017-04-07T16:01:18Z","git_url":"git://github.com/ministryofjustice/correspondence_tool_staff.git","ssh_url":"git@github.com:ministryofjustice/correspondence_tool_staff.git","clone_url":"https://github.com/ministryofjustice/correspondence_tool_staff.git","svn_url":"https://github.com/ministryofjustice/correspondence_tool_staff","homepage":"","size":721,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"develop"}},"base":{"label":"ministryofjustice:develop","ref":"develop","sha":"e0fa184c41bf9ca4904d56fec098fee9fd097d17","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":61301199,"name":"correspondence_tool_staff","full_name":"ministryofjustice/correspondence_tool_staff","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars0.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/correspondence_tool_staff","description":"Correspondence Tool Staff - Rails App with Postgres Backend","fork":false,"url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff","forks_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/forks","keys_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/events","assignees_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/merges","archive_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/deployments","created_at":"2016-06-16T14:35:41Z","updated_at":"2016-11-01T15:58:38Z","pushed_at":"2017-04-07T16:01:18Z","git_url":"git://github.com/ministryofjustice/correspondence_tool_staff.git","ssh_url":"git@github.com:ministryofjustice/correspondence_tool_staff.git","clone_url":"https://github.com/ministryofjustice/correspondence_tool_staff.git","svn_url":"https://github.com/ministryofjustice/correspondence_tool_staff","homepage":"","size":721,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146"},"html":{"href":"https://github.com/ministryofjustice/correspondence_tool_staff/pull/146"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/146"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/correspondence_tool_staff/statuses/fecff26a61dd1b0254f69a99a552c362b3517b73"}}}}
{"actor":{"display_login":"misaka"}}