diff options
author | James Lopez <james@jameslopez.es> | 2018-11-14 17:37:30 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-11-14 18:07:31 +0300 |
commit | 3cd538c2e9e18f31cee008d9b9e13df4dfd40b1d (patch) | |
tree | fd0c6b32a4ccfc2951ec929a3c5765fd06326d83 /spec/lib/gitlab/file_detector_spec.rb | |
parent | 24e5599748d98f34dc4f534eebc79a1bd9f0ddf9 (diff) |
Fix text rendering of readme/index
Diffstat (limited to 'spec/lib/gitlab/file_detector_spec.rb')
-rw-r--r-- | spec/lib/gitlab/file_detector_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/file_detector_spec.rb b/spec/lib/gitlab/file_detector_spec.rb index edab53247e9..ba65827d1fb 100644 --- a/spec/lib/gitlab/file_detector_spec.rb +++ b/spec/lib/gitlab/file_detector_spec.rb @@ -23,6 +23,10 @@ describe Gitlab::FileDetector do end end + it 'returns nil for a README.rb file' do + expect(described_class.type_of('README.rb')).to be_nil + end + it 'returns nil for a README file in a directory' do expect(described_class.type_of('foo/README.md')).to be_nil end |