diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-04 15:10:42 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-04 15:10:42 +0300 |
commit | 83600e94262c1fadae98f1e0709f2430aaea03b7 (patch) | |
tree | ce7fb7930d35311c923e4268dd635058d11b2fdd /spec/requests/api/jobs_spec.rb | |
parent | f3f1ad3992c039563188a84787b1e916e367d702 (diff) |
Set project / pipeline before context in job API specs
Diffstat (limited to 'spec/requests/api/jobs_spec.rb')
-rw-r--r-- | spec/requests/api/jobs_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb index f90ee4016d0..00e761e8919 100644 --- a/spec/requests/api/jobs_spec.rb +++ b/spec/requests/api/jobs_spec.rb @@ -1,11 +1,11 @@ require 'spec_helper' describe API::Jobs do - let!(:project) do + set(:project) do create(:project, :repository, public_builds: false) end - let!(:pipeline) do + set(:pipeline) do create(:ci_empty_pipeline, project: project, sha: project.commit.id, ref: project.default_branch) |