summaryrefslogtreecommitdiff
path: root/spec/models/ci/job_artifact_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-17 06:09:11 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-17 06:09:11 +0000
commit6110935892876a26d8dfcb919d8c955c92ecc1e5 (patch)
tree09c4393c8eb9d3807df842d6d707fb319ffbd7ea /spec/models/ci/job_artifact_spec.rb
parent4bc0e064023a13d90da5acc4fd152fca66926ea2 (diff)
downloadgitlab-ce-6110935892876a26d8dfcb919d8c955c92ecc1e5.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/ci/job_artifact_spec.rb')
-rw-r--r--spec/models/ci/job_artifact_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/models/ci/job_artifact_spec.rb b/spec/models/ci/job_artifact_spec.rb
index 41693b2a084..b5f9128b7c5 100644
--- a/spec/models/ci/job_artifact_spec.rb
+++ b/spec/models/ci/job_artifact_spec.rb
@@ -110,6 +110,21 @@ RSpec.describe Ci::JobArtifact do
end
end
+ describe '.associated_file_types_for' do
+ using RSpec::Parameterized::TableSyntax
+
+ subject { Ci::JobArtifact.associated_file_types_for(file_type) }
+
+ where(:file_type, :result) do
+ 'codequality' | %w(codequality)
+ 'quality' | nil
+ end
+
+ with_them do
+ it { is_expected.to eq result }
+ end
+ end
+
describe '.erasable' do
subject { described_class.erasable }