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:
authorAchilleas Pipinellis <axil@gitlab.com>2018-11-02 13:15:04 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-11-02 14:26:04 +0300
commitbe0af5e69fc60bf629130290b49dee07510359a3 (patch)
tree43ec6b2899622206fe6319c434f82e991af365bf /spec/lib/gitlab/file_detector_spec.rb
parent133c1a7cc3f1441bf18c886c30681953992b38c9 (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.rb5
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