{"action":"created","comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/47538231","id":47538231,"diff_hunk":"@@ -53,19 +72,54 @@\n       end\n     end\n \n-    describe \"#load_subjects\" do\n+    context \"when selecting via strategy param\" do\n+      let(:result_ids) { [1] }\n+\n+      it 'should fallback from the override strategy' do\n+        allow_any_instance_of(Subjects::PostgresqlSelection).to receive(:select).and_return(result_ids)\n+        expect(SubjectQueue).to receive(:enqueue)\n+        subject.perform(workflow.id, nil, nil, nil, :unknown_strategy)\n+      end\n+\n+      context \"with cellect\" do\n+        let(:run_selection) { subject.perform(workflow.id, nil, nil, nil, :cellect) }\n+\n+        it 'should attempt to queue the selected set' do\n+          allow_any_instance_of(Subjects::CellectClient).to receive(:get_subjects).and_return(result_ids)\n+          expect(SubjectQueue).to receive(:enqueue)\n+          run_selection\n+        end\n+\n+        context \"when the cellect client can't reach a server\" do\n+\n+          it \"should fall back to postgres strategy\" do\n+            allow(Subjects::CellectClient).to receive(:get_subjects)\n+              .and_raise(Subjects::CellectClient::ConnectionError)","path":"spec/workers/enqueue_subject_queue_worker_spec.rb","position":67,"original_position":67,"commit_id":"d023320bfe3be34a9730b520cfeafda279682bea","original_commit_id":"d023320bfe3be34a9730b520cfeafda279682bea","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":"Place the . on the previous line, together with the method call receiver.","created_at":"2015-12-14T18:43:22Z","updated_at":"2015-12-14T18:43:22Z","html_url":"https://github.com/zooniverse/Panoptes/pull/1507#discussion_r47538231","pull_request_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507","_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/47538231"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/1507#discussion_r47538231"},"pull_request":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507"}}},"pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507","id":51524707,"html_url":"https://github.com/zooniverse/Panoptes/pull/1507","diff_url":"https://github.com/zooniverse/Panoptes/pull/1507.diff","patch_url":"https://github.com/zooniverse/Panoptes/pull/1507.patch","issue_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1507","number":1507,"state":"open","locked":false,"title":"[WIP] - Cellect for subject selection","user":{"login":"camallen","id":295329,"avatar_url":"https://avatars.githubusercontent.com/u/295329?v=3","gravatar_id":"","url":"https://api.github.com/users/camallen","html_url":"https://github.com/camallen","followers_url":"https://api.github.com/users/camallen/followers","following_url":"https://api.github.com/users/camallen/following{/other_user}","gists_url":"https://api.github.com/users/camallen/gists{/gist_id}","starred_url":"https://api.github.com/users/camallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camallen/subscriptions","organizations_url":"https://api.github.com/users/camallen/orgs","repos_url":"https://api.github.com/users/camallen/repos","events_url":"https://api.github.com/users/camallen/events{/privacy}","received_events_url":"https://api.github.com/users/camallen/received_events","type":"User","site_admin":false},"body":"**DO NOT MERGE** \r\n\r\nwill close #1373 \r\n\r\nMy working CI branch for adding Cellect back in, currently just testing some gem updates. Reworking from this [original commit](https://github.com/edpaget/Panoptes/commit/939be03227e3a71bbdc5bf0bf4f970503d0d79c1)","created_at":"2015-11-23T13:48:08Z","updated_at":"2015-12-14T18:43:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fffdd30fb716d34e0e5a3a4e2bd6addabafcd778","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507/commits","review_comments_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507/comments","review_comment_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/1507/comments","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes/statuses/d023320bfe3be34a9730b520cfeafda279682bea","head":{"label":"camallen:cellect_selection","ref":"cellect_selection","sha":"d023320bfe3be34a9730b520cfeafda279682bea","user":{"login":"camallen","id":295329,"avatar_url":"https://avatars.githubusercontent.com/u/295329?v=3","gravatar_id":"","url":"https://api.github.com/users/camallen","html_url":"https://github.com/camallen","followers_url":"https://api.github.com/users/camallen/followers","following_url":"https://api.github.com/users/camallen/following{/other_user}","gists_url":"https://api.github.com/users/camallen/gists{/gist_id}","starred_url":"https://api.github.com/users/camallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camallen/subscriptions","organizations_url":"https://api.github.com/users/camallen/orgs","repos_url":"https://api.github.com/users/camallen/repos","events_url":"https://api.github.com/users/camallen/events{/privacy}","received_events_url":"https://api.github.com/users/camallen/received_events","type":"User","site_admin":false},"repo":{"id":20215459,"name":"Panoptes","full_name":"camallen/Panoptes","owner":{"login":"camallen","id":295329,"avatar_url":"https://avatars.githubusercontent.com/u/295329?v=3","gravatar_id":"","url":"https://api.github.com/users/camallen","html_url":"https://github.com/camallen","followers_url":"https://api.github.com/users/camallen/followers","following_url":"https://api.github.com/users/camallen/following{/other_user}","gists_url":"https://api.github.com/users/camallen/gists{/gist_id}","starred_url":"https://api.github.com/users/camallen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camallen/subscriptions","organizations_url":"https://api.github.com/users/camallen/orgs","repos_url":"https://api.github.com/users/camallen/repos","events_url":"https://api.github.com/users/camallen/events{/privacy}","received_events_url":"https://api.github.com/users/camallen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/camallen/Panoptes","description":"It sees everything","fork":true,"url":"https://api.github.com/repos/camallen/Panoptes","forks_url":"https://api.github.com/repos/camallen/Panoptes/forks","keys_url":"https://api.github.com/repos/camallen/Panoptes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/camallen/Panoptes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/camallen/Panoptes/teams","hooks_url":"https://api.github.com/repos/camallen/Panoptes/hooks","issue_events_url":"https://api.github.com/repos/camallen/Panoptes/issues/events{/number}","events_url":"https://api.github.com/repos/camallen/Panoptes/events","assignees_url":"https://api.github.com/repos/camallen/Panoptes/assignees{/user}","branches_url":"https://api.github.com/repos/camallen/Panoptes/branches{/branch}","tags_url":"https://api.github.com/repos/camallen/Panoptes/tags","blobs_url":"https://api.github.com/repos/camallen/Panoptes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/camallen/Panoptes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/camallen/Panoptes/git/refs{/sha}","trees_url":"https://api.github.com/repos/camallen/Panoptes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/camallen/Panoptes/statuses/{sha}","languages_url":"https://api.github.com/repos/camallen/Panoptes/languages","stargazers_url":"https://api.github.com/repos/camallen/Panoptes/stargazers","contributors_url":"https://api.github.com/repos/camallen/Panoptes/contributors","subscribers_url":"https://api.github.com/repos/camallen/Panoptes/subscribers","subscription_url":"https://api.github.com/repos/camallen/Panoptes/subscription","commits_url":"https://api.github.com/repos/camallen/Panoptes/commits{/sha}","git_commits_url":"https://api.github.com/repos/camallen/Panoptes/git/commits{/sha}","comments_url":"https://api.github.com/repos/camallen/Panoptes/comments{/number}","issue_comment_url":"https://api.github.com/repos/camallen/Panoptes/issues/comments{/number}","contents_url":"https://api.github.com/repos/camallen/Panoptes/contents/{+path}","compare_url":"https://api.github.com/repos/camallen/Panoptes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/camallen/Panoptes/merges","archive_url":"https://api.github.com/repos/camallen/Panoptes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/camallen/Panoptes/downloads","issues_url":"https://api.github.com/repos/camallen/Panoptes/issues{/number}","pulls_url":"https://api.github.com/repos/camallen/Panoptes/pulls{/number}","milestones_url":"https://api.github.com/repos/camallen/Panoptes/milestones{/number}","notifications_url":"https://api.github.com/repos/camallen/Panoptes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/camallen/Panoptes/labels{/name}","releases_url":"https://api.github.com/repos/camallen/Panoptes/releases{/id}","created_at":"2014-05-27T10:03:15Z","updated_at":"2015-03-18T11:25:55Z","pushed_at":"2015-12-14T18:43:12Z","git_url":"git://github.com/camallen/Panoptes.git","ssh_url":"git@github.com:camallen/Panoptes.git","clone_url":"https://github.com/camallen/Panoptes.git","svn_url":"https://github.com/camallen/Panoptes","homepage":"","size":4747,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zooniverse:master","ref":"master","sha":"1a015b6b81a75fbfcbd1f0451ba41d8fbe14a481","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":19036577,"name":"Panoptes","full_name":"zooniverse/Panoptes","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/Panoptes","description":"It sees everything","fork":false,"url":"https://api.github.com/repos/zooniverse/Panoptes","forks_url":"https://api.github.com/repos/zooniverse/Panoptes/forks","keys_url":"https://api.github.com/repos/zooniverse/Panoptes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/Panoptes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/Panoptes/teams","hooks_url":"https://api.github.com/repos/zooniverse/Panoptes/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/Panoptes/events","assignees_url":"https://api.github.com/repos/zooniverse/Panoptes/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/Panoptes/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/Panoptes/tags","blobs_url":"https://api.github.com/repos/zooniverse/Panoptes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/Panoptes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/Panoptes/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/Panoptes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/Panoptes/languages","stargazers_url":"https://api.github.com/repos/zooniverse/Panoptes/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/Panoptes/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/Panoptes/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/Panoptes/subscription","commits_url":"https://api.github.com/repos/zooniverse/Panoptes/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/Panoptes/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/Panoptes/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/Panoptes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/Panoptes/merges","archive_url":"https://api.github.com/repos/zooniverse/Panoptes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/Panoptes/downloads","issues_url":"https://api.github.com/repos/zooniverse/Panoptes/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/Panoptes/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/Panoptes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/Panoptes/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/Panoptes/releases{/id}","created_at":"2014-04-22T16:16:02Z","updated_at":"2015-11-15T05:38:54Z","pushed_at":"2015-12-14T18:43:12Z","git_url":"git://github.com/zooniverse/Panoptes.git","ssh_url":"git@github.com:zooniverse/Panoptes.git","clone_url":"https://github.com/zooniverse/Panoptes.git","svn_url":"https://github.com/zooniverse/Panoptes","homepage":"","size":4926,"stargazers_count":38,"watchers_count":38,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":88,"forks":18,"open_issues":88,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/1507"},"issue":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/1507"},"comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/1507/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/1507/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/Panoptes/statuses/d023320bfe3be34a9730b520cfeafda279682bea"}}}}