summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-04 14:00:49 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-14 12:48:15 +0100
commita5e1905d28e490fb4734bff0e02a1ecff4c7c029 (patch)
tree65af43af6432d72048fbf18789b8f8bff858615f /spec/lib
parentf948c00757ca9529817c7368610b0c0d6734d48f (diff)
downloadgitlab-ce-a5e1905d28e490fb4734bff0e02a1ecff4c7c029.tar.gz
Render 404 when artifacts path is invalid
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb b/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb
index 8c648be5f02..62c86a60ac4 100644
--- a/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb
+++ b/spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb
@@ -38,7 +38,8 @@ describe Gitlab::Ci::Build::Artifacts::Metadata do
it 'matches correct paths' do
expect(subject.first).
- to contain_exactly 'other_artifacts_0.1.2/doc_sample.txt',
+ to contain_exactly 'other_artifacts_0.1.2/',
+ 'other_artifacts_0.1.2/doc_sample.txt',
'other_artifacts_0.1.2/another-subdirectory/'
end
end
@@ -48,7 +49,8 @@ describe Gitlab::Ci::Build::Artifacts::Metadata do
it 'matches correct paths' do
expect(subject.first).
- to contain_exactly 'other_artifacts_0.1.2/another-subdirectory/empty_directory/',
+ to contain_exactly 'other_artifacts_0.1.2/another-subdirectory/',
+ 'other_artifacts_0.1.2/another-subdirectory/empty_directory/',
'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif'
end
end