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:
Diffstat (limited to 'spec/lib/gitlab/file_detector_spec.rb')
-rw-r--r--spec/lib/gitlab/file_detector_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/file_detector_spec.rb b/spec/lib/gitlab/file_detector_spec.rb
index 55bb1804d86..eabc92b794a 100644
--- a/spec/lib/gitlab/file_detector_spec.rb
+++ b/spec/lib/gitlab/file_detector_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe Gitlab::FileDetector do
+RSpec.describe Gitlab::FileDetector, feature_category: :global_search do
describe '.types_in_paths' do
it 'returns the file types for the given paths' do
expect(described_class.types_in_paths(%w[README.md CHANGELOG VERSION VERSION]))
@@ -116,5 +116,9 @@ RSpec.describe Gitlab::FileDetector do
expect(described_class.type_of(type_name)).to be_nil
end
end
+
+ it 'returns the type of a Jenkins config file' do
+ expect(described_class.type_of('jenkinsfile')).to eq(:jenkinsfile)
+ end
end
end