diff options
Diffstat (limited to 'spec/lib/gitlab/file_detector_spec.rb')
-rw-r--r-- | spec/lib/gitlab/file_detector_spec.rb | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/spec/lib/gitlab/file_detector_spec.rb b/spec/lib/gitlab/file_detector_spec.rb index 5bf70ef898a..3972bd24e80 100644 --- a/spec/lib/gitlab/file_detector_spec.rb +++ b/spec/lib/gitlab/file_detector_spec.rb @@ -96,25 +96,14 @@ describe Gitlab::FileDetector do 'swagger.yml', 'swagger.yaml', 'swagger.json', 'gitlab_swagger.yml', 'openapi_gitlab.yml', 'OpenAPI.YML', 'openapi.Yaml', 'openapi.JSON', - 'openapi.gitlab.yml', 'gitlab.openapi.yml', - 'attention/openapi.yml', 'attention/swagger.yml', - 'attention/gitlab_swagger.yml', 'attention/openapi_gitlab.yml', - 'openapi/openapi.yml', 'openapi/swagger.yml', - 'openapi/my_openapi.yml', 'openapi/swagger_one.yml' + 'openapi.gitlab.yml', 'gitlab.openapi.yml' ] openapi_types.each do |type_name| expect(described_class.type_of(type_name)).to eq(:openapi) end - openapi_bad_types = [ - 'openapiyml', - 'openapi/attention.yaml', 'swagger/attention.yaml' - ] - - openapi_bad_types.each do |type_name| - expect(described_class.type_of(type_name)).to be_nil - end + expect(described_class.type_of('openapiyml')).to be_nil end end end |