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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-17 21:09:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-17 21:09:20 +0300
commit6f05d35c3160e3a442b40d6af1e8e584747080b3 (patch)
treef70f90e1ae24f2366a538972c5520f524663ad86 /spec/lib/gitlab/diff/rendered
parentd88ab3545c27cd674f5fb8bff5fb64a9eeed590f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/diff/rendered')
-rw-r--r--spec/lib/gitlab/diff/rendered/notebook/diff_file_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/diff/rendered/notebook/diff_file_spec.rb b/spec/lib/gitlab/diff/rendered/notebook/diff_file_spec.rb
index d90c662aec8..1b74e24bf81 100644
--- a/spec/lib/gitlab/diff/rendered/notebook/diff_file_spec.rb
+++ b/spec/lib/gitlab/diff/rendered/notebook/diff_file_spec.rb
@@ -141,5 +141,9 @@ RSpec.describe Gitlab::Diff::Rendered::Notebook::DiffFile do
expect(nb_file.highlighted_diff_lines[12].old_pos).to eq(18)
end
end
+
+ it 'computes de first line where the remove would appear' do
+ expect(nb_file.highlighted_diff_lines.map(&:text).join('')).to include('[Hidden Image Output]')
+ end
end
end