提交 07ce4c28 编写于 作者: G Grzegorz Bizon

Improve reproducibility of build trace test example

上级 89e367f2
...@@ -6,8 +6,8 @@ feature 'Builds', :feature do ...@@ -6,8 +6,8 @@ feature 'Builds', :feature do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:pipeline) { create(:ci_pipeline, project: project) } let(:pipeline) { create(:ci_pipeline, project: project) }
let!(:build) { create(:ci_build, :trace, pipeline: pipeline) } let(:build) { create(:ci_build, :trace, pipeline: pipeline) }
let!(:build2) { create(:ci_build) } let(:build2) { create(:ci_build) }
let(:artifacts_file) do let(:artifacts_file) do
fixture_file_upload(Rails.root + 'spec/fixtures/banana_sample.gif', 'image/gif') fixture_file_upload(Rails.root + 'spec/fixtures/banana_sample.gif', 'image/gif')
...@@ -19,6 +19,8 @@ feature 'Builds', :feature do ...@@ -19,6 +19,8 @@ feature 'Builds', :feature do
end end
describe "GET /:project/builds" do describe "GET /:project/builds" do
let!(:build) { create(:ci_build, pipeline: pipeline) }
context "Pending scope" do context "Pending scope" do
before do before do
visit namespace_project_builds_path(project.namespace, project, scope: :pending) visit namespace_project_builds_path(project.namespace, project, scope: :pending)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册