summaryrefslogtreecommitdiff
path: root/spec/requests/api/runners_spec.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2017-11-16 19:44:14 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2017-11-28 00:36:48 +0100
commit8d3e80692cbeea06dd28a052554f0c262004e18d (patch)
tree7a685f0a443feaba39f777b372aa423c3656b673 /spec/requests/api/runners_spec.rb
parent83607a4daf497c73ddeb599194c36ff8ef491ed2 (diff)
downloadgitlab-ce-8d3e80692cbeea06dd28a052554f0c262004e18d.tar.gz
Add information about project
Diffstat (limited to 'spec/requests/api/runners_spec.rb')
-rw-r--r--spec/requests/api/runners_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb
index 95e5dd91c12..d68fa13af1e 100644
--- a/spec/requests/api/runners_spec.rb
+++ b/spec/requests/api/runners_spec.rb
@@ -356,10 +356,10 @@ describe API::Runners do
describe 'GET /runners/:id/jobs' do
let!(:job_1) { create(:ci_build) }
- let!(:job_2) { create(:ci_build, :running, runner: shared_runner) }
- let!(:job_3) { create(:ci_build, :failed, runner: shared_runner) }
- let!(:job_4) { create(:ci_build, :running, runner: specific_runner) }
- let!(:job_5) { create(:ci_build, :failed, runner: specific_runner) }
+ let!(:job_2) { create(:ci_build, :running, runner: shared_runner, project: project) }
+ let!(:job_3) { create(:ci_build, :failed, runner: shared_runner, project: project) }
+ let!(:job_4) { create(:ci_build, :running, runner: specific_runner, project: project) }
+ let!(:job_5) { create(:ci_build, :failed, runner: specific_runner, project: project) }
context 'admin user' do
context 'when runner exists' do