diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-02 13:15:04 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-11-02 14:26:04 +0300 |
commit | be0af5e69fc60bf629130290b49dee07510359a3 (patch) | |
tree | 43ec6b2899622206fe6319c434f82e991af365bf /spec/lib/gitlab/file_detector_spec.rb | |
parent | 133c1a7cc3f1441bf18c886c30681953992b38c9 (diff) |
Test type of README file without extension
Diffstat (limited to 'spec/lib/gitlab/file_detector_spec.rb')
-rw-r--r-- | spec/lib/gitlab/file_detector_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/gitlab/file_detector_spec.rb b/spec/lib/gitlab/file_detector_spec.rb index f0e7bd28ec0..edab53247e9 100644 --- a/spec/lib/gitlab/file_detector_spec.rb +++ b/spec/lib/gitlab/file_detector_spec.rb @@ -15,8 +15,9 @@ describe Gitlab::FileDetector do describe '.type_of' do it 'returns the type of a README file' do - %w(README readme INDEX index).each do |filename| - %w(.md .adoc).each do |extname| + %w[README readme INDEX index].each do |filename| + expect(described_class.type_of(filename)).to eq(:readme) + %w[.md .adoc .rst].each do |extname| expect(described_class.type_of(filename + extname)).to eq(:readme) end end |