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
path: root/spec/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-24 04:38:30 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-24 05:59:07 +0300
commitcdec9e472db581acbee72cdcaa703e4155cb4cfb (patch)
tree4ffea09db574c2fab93373abdc398137df40a192 /spec/lib
parent46de0366b1cc50e67747a457810a54e679bec151 (diff)
Replace \n to <br>
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/ci/ansi2html_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/ci/ansi2html_spec.rb b/spec/lib/ci/ansi2html_spec.rb
index 04afbd06929..898f1e84ab0 100644
--- a/spec/lib/ci/ansi2html_spec.rb
+++ b/spec/lib/ci/ansi2html_spec.rb
@@ -175,5 +175,14 @@ describe Ci::Ansi2html, lib: true do
it_behaves_like 'stateable converter'
end
+
+ context 'with new line' do
+ let(:pre_text) { "Hello\r" }
+ let(:pre_html) { "Hello\r" }
+ let(:text) { "\nWorld" }
+ let(:html) { "<br>World" }
+
+ it_behaves_like 'stateable converter'
+ end
end
end