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:
authorBrett Walker <bwalker@gitlab.com>2019-04-03 16:42:23 +0300
committerBrett Walker <bwalker@gitlab.com>2019-04-05 02:59:31 +0300
commit949bcb1f8d9695171d0dc88461f6a16800ac57c9 (patch)
tree2716c2263861178b7ddd366f336700d40a73c35a /spec/services/issues
parent3ccb4d954f4c51f4f3cc77ebd53f21425e0d4d09 (diff)
Fenced blockquotes to not change source line pos
Replaces blockquote fences with \n, keeping the line numbering intact.
Diffstat (limited to 'spec/services/issues')
-rw-r--r--spec/services/issues/build_service_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/services/issues/build_service_spec.rb b/spec/services/issues/build_service_spec.rb
index 86e58fe06b9..74f1e83b362 100644
--- a/spec/services/issues/build_service_spec.rb
+++ b/spec/services/issues/build_service_spec.rb
@@ -58,8 +58,10 @@ describe Issues::BuildService do
"> That has a quote\n"\
">>>\n"
note_result = " > This is a string\n"\
+ " > \n"\
" > > with a blockquote\n"\
- " > > > That has a quote\n"
+ " > > > That has a quote\n"\
+ " > \n"
discussion = create(:diff_note_on_merge_request, note: note_text).to_discussion
expect(service.item_for_discussion(discussion)).to include(note_result)
end