Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-10 13:57:51 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-08-10 13:57:51 +0300
commitcc3dbf83f4c0cf21fee56398f27851981f0e98f6 (patch)
tree41dce82288fd3e5a28c8e5803e793d682375719b
parent3eae0641ef0708f9b223abbe0070e332ea0b20ac (diff)
Empty lines around blocks
-rw-r--r--spec/features/projects/branches/download_buttons_spec.rb11
-rw-r--r--spec/features/projects/files/download_buttons_spec.rb11
-rw-r--r--spec/features/projects/main/download_buttons_spec.rb11
-rw-r--r--spec/features/projects/tags/download_buttons_spec.rb11
-rw-r--r--spec/requests/projects/artifacts_controller_spec.rb2
5 files changed, 30 insertions, 16 deletions
diff --git a/spec/features/projects/branches/download_buttons_spec.rb b/spec/features/projects/branches/download_buttons_spec.rb
index d3f53b65699..a223786777b 100644
--- a/spec/features/projects/branches/download_buttons_spec.rb
+++ b/spec/features/projects/branches/download_buttons_spec.rb
@@ -5,12 +5,15 @@ feature 'Download buttons in branches page', feature: true do
given(:role) { :developer }
given(:status) { 'success' }
given(:project) { create(:project) }
+
given(:pipeline) do
- create(:ci_pipeline, project: project,
- sha: project.commit.sha,
- ref: project.default_branch,
- status: status)
+ create(:ci_pipeline,
+ project: project,
+ sha: project.commit.sha,
+ ref: project.default_branch,
+ status: status)
end
+
given!(:build) do
create(:ci_build, :success, :artifacts,
pipeline: pipeline,
diff --git a/spec/features/projects/files/download_buttons_spec.rb b/spec/features/projects/files/download_buttons_spec.rb
index 60c2ffedce0..be5cebcd7c9 100644
--- a/spec/features/projects/files/download_buttons_spec.rb
+++ b/spec/features/projects/files/download_buttons_spec.rb
@@ -5,12 +5,15 @@ feature 'Download buttons in files tree', feature: true do
given(:role) { :developer }
given(:status) { 'success' }
given(:project) { create(:project) }
+
given(:pipeline) do
- create(:ci_pipeline, project: project,
- sha: project.commit.sha,
- ref: project.default_branch,
- status: status)
+ create(:ci_pipeline,
+ project: project,
+ sha: project.commit.sha,
+ ref: project.default_branch,
+ status: status)
end
+
given!(:build) do
create(:ci_build, :success, :artifacts,
pipeline: pipeline,
diff --git a/spec/features/projects/main/download_buttons_spec.rb b/spec/features/projects/main/download_buttons_spec.rb
index 62e56808558..b26c0ea7a14 100644
--- a/spec/features/projects/main/download_buttons_spec.rb
+++ b/spec/features/projects/main/download_buttons_spec.rb
@@ -5,12 +5,15 @@ feature 'Download buttons in project main page', feature: true do
given(:role) { :developer }
given(:status) { 'success' }
given(:project) { create(:project) }
+
given(:pipeline) do
- create(:ci_pipeline, project: project,
- sha: project.commit.sha,
- ref: project.default_branch,
- status: status)
+ create(:ci_pipeline,
+ project: project,
+ sha: project.commit.sha,
+ ref: project.default_branch,
+ status: status)
end
+
given!(:build) do
create(:ci_build, :success, :artifacts,
pipeline: pipeline,
diff --git a/spec/features/projects/tags/download_buttons_spec.rb b/spec/features/projects/tags/download_buttons_spec.rb
index d4c4cfe9c99..ebc5204cf1d 100644
--- a/spec/features/projects/tags/download_buttons_spec.rb
+++ b/spec/features/projects/tags/download_buttons_spec.rb
@@ -6,12 +6,15 @@ feature 'Download buttons in tags page', feature: true do
given(:status) { 'success' }
given(:tag) { 'v1.0.0' }
given(:project) { create(:project) }
+
given(:pipeline) do
- create(:ci_pipeline, project: project,
- sha: project.commit.sha,
- ref: tag,
- status: status)
+ create(:ci_pipeline,
+ project: project,
+ sha: project.commit.sha,
+ ref: tag,
+ status: status)
end
+
given!(:build) do
create(:ci_build, :success, :artifacts,
pipeline: pipeline,
diff --git a/spec/requests/projects/artifacts_controller_spec.rb b/spec/requests/projects/artifacts_controller_spec.rb
index b823676d9e1..952b9fb99b7 100644
--- a/spec/requests/projects/artifacts_controller_spec.rb
+++ b/spec/requests/projects/artifacts_controller_spec.rb
@@ -3,12 +3,14 @@ require 'spec_helper'
describe Projects::ArtifactsController do
let(:user) { create(:user) }
let(:project) { create(:project) }
+
let(:pipeline) do
create(:ci_pipeline,
project: project,
sha: project.commit.sha,
ref: project.default_branch)
end
+
let(:build) { create(:ci_build, :success, :artifacts, pipeline: pipeline) }
describe 'GET /:project/builds/artifacts/:ref_name/browse?job=name' do