{"action":"created","comment":{"url":"https://api.github.com/repos/agdraft/agdraft/pulls/comments/78943575","id":78943575,"diff_hunk":"@@ -33,6 +41,63 @@\n         get :workers, search: params\n         expect(assigns(:workers).count).to eq(allrounder_workers.count)\n       end\n+\n+      it \"should return correct number of workers\" do\n+        get :workers, search: params\n+        allrounder_workers.each do |worker|\n+          expect(assigns(:workers)).to include worker\n+        end\n+      end\n+    end\n+  end\n+\n+  describe \"#jobs\" do\n+    let(:skill) { FactoryGirl.create(:skill) }\n+    let(:job_category) { FactoryGirl.create(:job_category) }\n+    let(:location) { FactoryGirl.create(:location) }\n+    let(:start_date) { 10.days.from_now }\n+    let(:end_date) { 30.days.from_now }\n+\n+    let!(:plain_jobs) { FactoryGirl.create_list(:job, 20) }\n+    let!(:allrounder_jobs) { FactoryGirl.create_list(:job, 20, :with_skills, :with_job_categories, skills: skill, job_categories: job_category, location: location) }\n+\n+    context \"no search filters set (initial search page load)\" do\n+      it \"should return correct number and correct Jobs\" do\n+        get :jobs\n+        expect(assigns(:jobs).count).to eq Job.all.count","path":"spec/controllers/search_controller_spec.rb","position":62,"original_position":62,"commit_id":"5e1f21ac46f1c9324598dc36cdfcf7611b06b8a0","original_commit_id":"5e1f21ac46f1c9324598dc36cdfcf7611b06b8a0","user":{"login":"xandergroeneveld","id":322052,"avatar_url":"https://avatars.githubusercontent.com/u/322052?v=3","gravatar_id":"","url":"https://api.github.com/users/xandergroeneveld","html_url":"https://github.com/xandergroeneveld","followers_url":"https://api.github.com/users/xandergroeneveld/followers","following_url":"https://api.github.com/users/xandergroeneveld/following{/other_user}","gists_url":"https://api.github.com/users/xandergroeneveld/gists{/gist_id}","starred_url":"https://api.github.com/users/xandergroeneveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xandergroeneveld/subscriptions","organizations_url":"https://api.github.com/users/xandergroeneveld/orgs","repos_url":"https://api.github.com/users/xandergroeneveld/repos","events_url":"https://api.github.com/users/xandergroeneveld/events{/privacy}","received_events_url":"https://api.github.com/users/xandergroeneveld/received_events","type":"User","site_admin":false},"body":"this line is sufficient","created_at":"2016-09-15T11:35:56Z","updated_at":"2016-09-15T11:35:57Z","html_url":"https://github.com/agdraft/agdraft/pull/18#discussion_r78943575","pull_request_url":"https://api.github.com/repos/agdraft/agdraft/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/agdraft/agdraft/pulls/comments/78943575"},"html":{"href":"https://github.com/agdraft/agdraft/pull/18#discussion_r78943575"},"pull_request":{"href":"https://api.github.com/repos/agdraft/agdraft/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/agdraft/agdraft/pulls/18","id":85249636,"html_url":"https://github.com/agdraft/agdraft/pull/18","diff_url":"https://github.com/agdraft/agdraft/pull/18.diff","patch_url":"https://github.com/agdraft/agdraft/pull/18.patch","issue_url":"https://api.github.com/repos/agdraft/agdraft/issues/18","number":18,"state":"open","locked":false,"title":"[FEATURE] job search and sort","user":{"login":"groeneveld91","id":504721,"avatar_url":"https://avatars.githubusercontent.com/u/504721?v=3","gravatar_id":"","url":"https://api.github.com/users/groeneveld91","html_url":"https://github.com/groeneveld91","followers_url":"https://api.github.com/users/groeneveld91/followers","following_url":"https://api.github.com/users/groeneveld91/following{/other_user}","gists_url":"https://api.github.com/users/groeneveld91/gists{/gist_id}","starred_url":"https://api.github.com/users/groeneveld91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groeneveld91/subscriptions","organizations_url":"https://api.github.com/users/groeneveld91/orgs","repos_url":"https://api.github.com/users/groeneveld91/repos","events_url":"https://api.github.com/users/groeneveld91/events{/privacy}","received_events_url":"https://api.github.com/users/groeneveld91/received_events","type":"User","site_admin":false},"body":"Including a cleanup commit here as well.","created_at":"2016-09-14T15:27:05Z","updated_at":"2016-09-15T11:35:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38e0f4dd79e1fe7b9be57922996593c000f4a38c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/agdraft/agdraft/pulls/18/commits","review_comments_url":"https://api.github.com/repos/agdraft/agdraft/pulls/18/comments","review_comment_url":"https://api.github.com/repos/agdraft/agdraft/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agdraft/agdraft/issues/18/comments","statuses_url":"https://api.github.com/repos/agdraft/agdraft/statuses/5e1f21ac46f1c9324598dc36cdfcf7611b06b8a0","head":{"label":"agdraft:feat/job-search","ref":"feat/job-search","sha":"5e1f21ac46f1c9324598dc36cdfcf7611b06b8a0","user":{"login":"agdraft","id":21982853,"avatar_url":"https://avatars.githubusercontent.com/u/21982853?v=3","gravatar_id":"","url":"https://api.github.com/users/agdraft","html_url":"https://github.com/agdraft","followers_url":"https://api.github.com/users/agdraft/followers","following_url":"https://api.github.com/users/agdraft/following{/other_user}","gists_url":"https://api.github.com/users/agdraft/gists{/gist_id}","starred_url":"https://api.github.com/users/agdraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agdraft/subscriptions","organizations_url":"https://api.github.com/users/agdraft/orgs","repos_url":"https://api.github.com/users/agdraft/repos","events_url":"https://api.github.com/users/agdraft/events{/privacy}","received_events_url":"https://api.github.com/users/agdraft/received_events","type":"Organization","site_admin":false},"repo":{"id":66822822,"name":"agdraft","full_name":"agdraft/agdraft","owner":{"login":"agdraft","id":21982853,"avatar_url":"https://avatars.githubusercontent.com/u/21982853?v=3","gravatar_id":"","url":"https://api.github.com/users/agdraft","html_url":"https://github.com/agdraft","followers_url":"https://api.github.com/users/agdraft/followers","following_url":"https://api.github.com/users/agdraft/following{/other_user}","gists_url":"https://api.github.com/users/agdraft/gists{/gist_id}","starred_url":"https://api.github.com/users/agdraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agdraft/subscriptions","organizations_url":"https://api.github.com/users/agdraft/orgs","repos_url":"https://api.github.com/users/agdraft/repos","events_url":"https://api.github.com/users/agdraft/events{/privacy}","received_events_url":"https://api.github.com/users/agdraft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agdraft/agdraft","description":null,"fork":false,"url":"https://api.github.com/repos/agdraft/agdraft","forks_url":"https://api.github.com/repos/agdraft/agdraft/forks","keys_url":"https://api.github.com/repos/agdraft/agdraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agdraft/agdraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agdraft/agdraft/teams","hooks_url":"https://api.github.com/repos/agdraft/agdraft/hooks","issue_events_url":"https://api.github.com/repos/agdraft/agdraft/issues/events{/number}","events_url":"https://api.github.com/repos/agdraft/agdraft/events","assignees_url":"https://api.github.com/repos/agdraft/agdraft/assignees{/user}","branches_url":"https://api.github.com/repos/agdraft/agdraft/branches{/branch}","tags_url":"https://api.github.com/repos/agdraft/agdraft/tags","blobs_url":"https://api.github.com/repos/agdraft/agdraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agdraft/agdraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agdraft/agdraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/agdraft/agdraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agdraft/agdraft/statuses/{sha}","languages_url":"https://api.github.com/repos/agdraft/agdraft/languages","stargazers_url":"https://api.github.com/repos/agdraft/agdraft/stargazers","contributors_url":"https://api.github.com/repos/agdraft/agdraft/contributors","subscribers_url":"https://api.github.com/repos/agdraft/agdraft/subscribers","subscription_url":"https://api.github.com/repos/agdraft/agdraft/subscription","commits_url":"https://api.github.com/repos/agdraft/agdraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/agdraft/agdraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/agdraft/agdraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/agdraft/agdraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/agdraft/agdraft/contents/{+path}","compare_url":"https://api.github.com/repos/agdraft/agdraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agdraft/agdraft/merges","archive_url":"https://api.github.com/repos/agdraft/agdraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agdraft/agdraft/downloads","issues_url":"https://api.github.com/repos/agdraft/agdraft/issues{/number}","pulls_url":"https://api.github.com/repos/agdraft/agdraft/pulls{/number}","milestones_url":"https://api.github.com/repos/agdraft/agdraft/milestones{/number}","notifications_url":"https://api.github.com/repos/agdraft/agdraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agdraft/agdraft/labels{/name}","releases_url":"https://api.github.com/repos/agdraft/agdraft/releases{/id}","deployments_url":"https://api.github.com/repos/agdraft/agdraft/deployments","created_at":"2016-08-29T07:46:33Z","updated_at":"2016-09-04T09:10:14Z","pushed_at":"2016-09-15T11:03:21Z","git_url":"git://github.com/agdraft/agdraft.git","ssh_url":"git@github.com:agdraft/agdraft.git","clone_url":"https://github.com/agdraft/agdraft.git","svn_url":"https://github.com/agdraft/agdraft","homepage":null,"size":7538,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"agdraft:master","ref":"master","sha":"1a38573b240425634603fff95c42298715b843b5","user":{"login":"agdraft","id":21982853,"avatar_url":"https://avatars.githubusercontent.com/u/21982853?v=3","gravatar_id":"","url":"https://api.github.com/users/agdraft","html_url":"https://github.com/agdraft","followers_url":"https://api.github.com/users/agdraft/followers","following_url":"https://api.github.com/users/agdraft/following{/other_user}","gists_url":"https://api.github.com/users/agdraft/gists{/gist_id}","starred_url":"https://api.github.com/users/agdraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agdraft/subscriptions","organizations_url":"https://api.github.com/users/agdraft/orgs","repos_url":"https://api.github.com/users/agdraft/repos","events_url":"https://api.github.com/users/agdraft/events{/privacy}","received_events_url":"https://api.github.com/users/agdraft/received_events","type":"Organization","site_admin":false},"repo":{"id":66822822,"name":"agdraft","full_name":"agdraft/agdraft","owner":{"login":"agdraft","id":21982853,"avatar_url":"https://avatars.githubusercontent.com/u/21982853?v=3","gravatar_id":"","url":"https://api.github.com/users/agdraft","html_url":"https://github.com/agdraft","followers_url":"https://api.github.com/users/agdraft/followers","following_url":"https://api.github.com/users/agdraft/following{/other_user}","gists_url":"https://api.github.com/users/agdraft/gists{/gist_id}","starred_url":"https://api.github.com/users/agdraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agdraft/subscriptions","organizations_url":"https://api.github.com/users/agdraft/orgs","repos_url":"https://api.github.com/users/agdraft/repos","events_url":"https://api.github.com/users/agdraft/events{/privacy}","received_events_url":"https://api.github.com/users/agdraft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agdraft/agdraft","description":null,"fork":false,"url":"https://api.github.com/repos/agdraft/agdraft","forks_url":"https://api.github.com/repos/agdraft/agdraft/forks","keys_url":"https://api.github.com/repos/agdraft/agdraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agdraft/agdraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agdraft/agdraft/teams","hooks_url":"https://api.github.com/repos/agdraft/agdraft/hooks","issue_events_url":"https://api.github.com/repos/agdraft/agdraft/issues/events{/number}","events_url":"https://api.github.com/repos/agdraft/agdraft/events","assignees_url":"https://api.github.com/repos/agdraft/agdraft/assignees{/user}","branches_url":"https://api.github.com/repos/agdraft/agdraft/branches{/branch}","tags_url":"https://api.github.com/repos/agdraft/agdraft/tags","blobs_url":"https://api.github.com/repos/agdraft/agdraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agdraft/agdraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agdraft/agdraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/agdraft/agdraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agdraft/agdraft/statuses/{sha}","languages_url":"https://api.github.com/repos/agdraft/agdraft/languages","stargazers_url":"https://api.github.com/repos/agdraft/agdraft/stargazers","contributors_url":"https://api.github.com/repos/agdraft/agdraft/contributors","subscribers_url":"https://api.github.com/repos/agdraft/agdraft/subscribers","subscription_url":"https://api.github.com/repos/agdraft/agdraft/subscription","commits_url":"https://api.github.com/repos/agdraft/agdraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/agdraft/agdraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/agdraft/agdraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/agdraft/agdraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/agdraft/agdraft/contents/{+path}","compare_url":"https://api.github.com/repos/agdraft/agdraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agdraft/agdraft/merges","archive_url":"https://api.github.com/repos/agdraft/agdraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agdraft/agdraft/downloads","issues_url":"https://api.github.com/repos/agdraft/agdraft/issues{/number}","pulls_url":"https://api.github.com/repos/agdraft/agdraft/pulls{/number}","milestones_url":"https://api.github.com/repos/agdraft/agdraft/milestones{/number}","notifications_url":"https://api.github.com/repos/agdraft/agdraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agdraft/agdraft/labels{/name}","releases_url":"https://api.github.com/repos/agdraft/agdraft/releases{/id}","deployments_url":"https://api.github.com/repos/agdraft/agdraft/deployments","created_at":"2016-08-29T07:46:33Z","updated_at":"2016-09-04T09:10:14Z","pushed_at":"2016-09-15T11:03:21Z","git_url":"git://github.com/agdraft/agdraft.git","ssh_url":"git@github.com:agdraft/agdraft.git","clone_url":"https://github.com/agdraft/agdraft.git","svn_url":"https://github.com/agdraft/agdraft","homepage":null,"size":7538,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agdraft/agdraft/pulls/18"},"html":{"href":"https://github.com/agdraft/agdraft/pull/18"},"issue":{"href":"https://api.github.com/repos/agdraft/agdraft/issues/18"},"comments":{"href":"https://api.github.com/repos/agdraft/agdraft/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/agdraft/agdraft/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/agdraft/agdraft/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agdraft/agdraft/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/agdraft/agdraft/statuses/5e1f21ac46f1c9324598dc36cdfcf7611b06b8a0"}}}}
{"actor":{"display_login":"xandergroeneveld"}}