diff options
author | James Lopez <james@jameslopez.es> | 2018-11-15 17:20:58 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-11-15 17:20:58 +0300 |
commit | 71f4ec45c029a2b6101f6eaf849da79289915583 (patch) | |
tree | 005e3ea0dbd2cd15b2d80e7176b1acece2b2d2ea /spec/lib | |
parent | 39451c9554b3cba2cade6971572626d0578a2fb0 (diff) |
Fix spec failure
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/file_detector_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lib/gitlab/file_detector_spec.rb b/spec/lib/gitlab/file_detector_spec.rb index d731f88ae03..4ba9094b24e 100644 --- a/spec/lib/gitlab/file_detector_spec.rb +++ b/spec/lib/gitlab/file_detector_spec.rb @@ -20,8 +20,9 @@ describe Gitlab::FileDetector do filenames.each do |filename| expect(described_class.type_of(filename)).to eq(:readme) + extensions.each do |extname| - expect(described_class.type_of(filename + extname)).to eq(:readme) + expect(described_class.type_of("#{filename}.#{extname}")).to eq(:readme) end end end |