diff options
author | Rémy Coutable <remy@rymai.me> | 2019-03-14 19:47:21 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-03-18 12:43:36 +0300 |
commit | e96b8ef4dbe99cff9f198bd25d32a8b3e1b37f8d (patch) | |
tree | 8cdcffa23e9c3ec4637c446fbe94e05bc7e7b16d /spec/lib/gitlab/file_detector_spec.rb | |
parent | 0be9362393d60b19b6cea2c173ea247346001cd3 (diff) |
New Repository#insights_config method
Signed-off-by: Rémy Coutable <remy@rymai.me>
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 4ba9094b24e..933366fd855 100644 --- a/spec/lib/gitlab/file_detector_spec.rb +++ b/spec/lib/gitlab/file_detector_spec.rb @@ -77,6 +77,10 @@ describe Gitlab::FileDetector do expect(described_class.type_of('.gitlab/merge_request_templates/foo.md')).to eq(:merge_request_template) end + it 'returns the type of an Insights config file' do + expect(described_class.type_of('.gitlab/insights.yml')).to eq(:insights_config) + end + it 'returns nil for an unknown file' do expect(described_class.type_of('foo.txt')).to be_nil end |