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:
authorNick Thomas <nick@gitlab.com>2018-09-05 16:45:02 +0300
committerNick Thomas <nick@gitlab.com>2018-09-05 17:10:39 +0300
commitca92fcd9de5863532bd54cc1b601883c8f1ad37c (patch)
tree91803a4e24b2d278e6cc7cc5333c8c8571c67d89 /spec/finders/template_finder_spec.rb
parent03c733849c1fad9885b0b947e60744633b7f5bd6 (diff)
Allow the TemplateFinder to handle licenses as well
Diffstat (limited to 'spec/finders/template_finder_spec.rb')
-rw-r--r--spec/finders/template_finder_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/finders/template_finder_spec.rb b/spec/finders/template_finder_spec.rb
index 59c5427ee50..1d399e8194f 100644
--- a/spec/finders/template_finder_spec.rb
+++ b/spec/finders/template_finder_spec.rb
@@ -3,6 +3,21 @@ require 'spec_helper'
describe TemplateFinder do
using RSpec::Parameterized::TableSyntax
+ describe '#build' do
+ where(:type, :expected_class) do
+ :dockerfiles | described_class
+ :gitignores | described_class
+ :gitlab_ci_ymls | described_class
+ :licenses | ::LicenseTemplateFinder
+ end
+
+ with_them do
+ subject { described_class.build(type) }
+
+ it { is_expected.to be_a(expected_class) }
+ end
+ end
+
describe '#execute' do
where(:type, :vendored_name) do
:dockerfiles | 'Binary'