Commit 83600e94 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Set project / pipeline before context in job API specs

parent f3f1ad39
require 'spec_helper' require 'spec_helper'
describe API::Jobs do describe API::Jobs do
let!(:project) do set(:project) do
create(:project, :repository, public_builds: false) create(:project, :repository, public_builds: false)
end end
let!(:pipeline) do set(:pipeline) do
create(:ci_empty_pipeline, project: project, create(:ci_empty_pipeline, project: project,
sha: project.commit.id, sha: project.commit.id,
ref: project.default_branch) ref: project.default_branch)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment