Commit cc3dbf83 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Empty lines around blocks

parent 3eae0641
...@@ -5,12 +5,15 @@ feature 'Download buttons in branches page', feature: true do ...@@ -5,12 +5,15 @@ feature 'Download buttons in branches page', feature: true do
given(:role) { :developer } given(:role) { :developer }
given(:status) { 'success' } given(:status) { 'success' }
given(:project) { create(:project) } given(:project) { create(:project) }
given(:pipeline) do given(:pipeline) do
create(:ci_pipeline, project: project, create(:ci_pipeline,
project: project,
sha: project.commit.sha, sha: project.commit.sha,
ref: project.default_branch, ref: project.default_branch,
status: status) status: status)
end end
given!(:build) do given!(:build) do
create(:ci_build, :success, :artifacts, create(:ci_build, :success, :artifacts,
pipeline: pipeline, pipeline: pipeline,
......
...@@ -5,12 +5,15 @@ feature 'Download buttons in files tree', feature: true do ...@@ -5,12 +5,15 @@ feature 'Download buttons in files tree', feature: true do
given(:role) { :developer } given(:role) { :developer }
given(:status) { 'success' } given(:status) { 'success' }
given(:project) { create(:project) } given(:project) { create(:project) }
given(:pipeline) do given(:pipeline) do
create(:ci_pipeline, project: project, create(:ci_pipeline,
project: project,
sha: project.commit.sha, sha: project.commit.sha,
ref: project.default_branch, ref: project.default_branch,
status: status) status: status)
end end
given!(:build) do given!(:build) do
create(:ci_build, :success, :artifacts, create(:ci_build, :success, :artifacts,
pipeline: pipeline, pipeline: pipeline,
......
...@@ -5,12 +5,15 @@ feature 'Download buttons in project main page', feature: true do ...@@ -5,12 +5,15 @@ feature 'Download buttons in project main page', feature: true do
given(:role) { :developer } given(:role) { :developer }
given(:status) { 'success' } given(:status) { 'success' }
given(:project) { create(:project) } given(:project) { create(:project) }
given(:pipeline) do given(:pipeline) do
create(:ci_pipeline, project: project, create(:ci_pipeline,
project: project,
sha: project.commit.sha, sha: project.commit.sha,
ref: project.default_branch, ref: project.default_branch,
status: status) status: status)
end end
given!(:build) do given!(:build) do
create(:ci_build, :success, :artifacts, create(:ci_build, :success, :artifacts,
pipeline: pipeline, pipeline: pipeline,
......
...@@ -6,12 +6,15 @@ feature 'Download buttons in tags page', feature: true do ...@@ -6,12 +6,15 @@ feature 'Download buttons in tags page', feature: true do
given(:status) { 'success' } given(:status) { 'success' }
given(:tag) { 'v1.0.0' } given(:tag) { 'v1.0.0' }
given(:project) { create(:project) } given(:project) { create(:project) }
given(:pipeline) do given(:pipeline) do
create(:ci_pipeline, project: project, create(:ci_pipeline,
project: project,
sha: project.commit.sha, sha: project.commit.sha,
ref: tag, ref: tag,
status: status) status: status)
end end
given!(:build) do given!(:build) do
create(:ci_build, :success, :artifacts, create(:ci_build, :success, :artifacts,
pipeline: pipeline, pipeline: pipeline,
......
...@@ -3,12 +3,14 @@ require 'spec_helper' ...@@ -3,12 +3,14 @@ require 'spec_helper'
describe Projects::ArtifactsController do describe Projects::ArtifactsController do
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project) } let(:project) { create(:project) }
let(:pipeline) do let(:pipeline) do
create(:ci_pipeline, create(:ci_pipeline,
project: project, project: project,
sha: project.commit.sha, sha: project.commit.sha,
ref: project.default_branch) ref: project.default_branch)
end end
let(:build) { create(:ci_build, :success, :artifacts, pipeline: pipeline) } let(:build) { create(:ci_build, :success, :artifacts, pipeline: pipeline) }
describe 'GET /:project/builds/artifacts/:ref_name/browse?job=name' do describe 'GET /:project/builds/artifacts/:ref_name/browse?job=name' do
......
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