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-07-14 12:35:54 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-07-14 12:35:54 +0300
commita9a8ceebcbe25cbe27bebe9fc63ab364b1dd41ee (patch)
tree71d345108d39cb5ee5ad649062a3613f1712afa9 /spec/features/projects/builds_spec.rb
parentd7bbee7593ee54a9685c9eded00b121cca3913be (diff)
Merge features/projects/artifacts_spec.rb back
It doesn't make too much sense having this standalone
Diffstat (limited to 'spec/features/projects/builds_spec.rb')
-rw-r--r--spec/features/projects/builds_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/projects/builds_spec.rb b/spec/features/projects/builds_spec.rb
index 25689f1c6e8..16832c297ac 100644
--- a/spec/features/projects/builds_spec.rb
+++ b/spec/features/projects/builds_spec.rb
@@ -196,6 +196,23 @@ describe "Builds" do
end
end
+ describe "GET /:project/builds/:id/download" do
+ before do
+ @build.update_attributes(artifacts_file: artifacts_file)
+ visit namespace_project_build_path(@project.namespace, @project, @build)
+ click_link 'Download'
+ end
+
+ context "Build from other project" do
+ before do
+ @build2.update_attributes(artifacts_file: artifacts_file)
+ visit download_namespace_project_build_artifacts_path(@project.namespace, @project, @build2)
+ end
+
+ it { expect(page.status_code).to eq(404) }
+ end
+ end
+
describe "GET /:project/builds/:id/raw" do
context "Build from project" do
before do