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:
Diffstat (limited to 'spec/lib/gitlab/git/blame_spec.rb')
-rw-r--r--spec/lib/gitlab/git/blame_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/git/blame_spec.rb b/spec/lib/gitlab/git/blame_spec.rb
index 77361b09857..751611be5d2 100644
--- a/spec/lib/gitlab/git/blame_spec.rb
+++ b/spec/lib/gitlab/git/blame_spec.rb
@@ -48,6 +48,14 @@ RSpec.describe Gitlab::Git::Blame, feature_category: :source_code_management do
end
end
+ context 'when path is missing' do
+ let(:path) { 'unknown_file' }
+
+ it 'returns an empty array' do
+ expect(result).to eq([])
+ end
+ end
+
context "ISO-8859 encoding" do
let(:path) { 'encoding/iso8859.txt' }