diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-05-25 11:51:20 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-05-25 11:51:20 +0000 |
commit | 318b22459bfff1cecfb1f38e381faaca3bc29bbb (patch) | |
tree | ce86dd867f05e5cf4f6fd30f4bb19adf4681134b /spec | |
parent | 019a3c781efd75a8ce44297519a724e322cfde96 (diff) | |
parent | 24ef7063bee25c76ecfc8c14c494161208b01352 (diff) | |
download | gitlab-ce-318b22459bfff1cecfb1f38e381faaca3bc29bbb.tar.gz |
Merge branch 'incremental-fixes' into 'master'
Fix concurrent request when updating build log in browser
If you have a slow internet connection the trace will not be updated correctly. We need to check if our request is the latest one.
Fixes: https://gitlab.com/gitlab-org/gitlab-ce/issues/17535
See merge request !4183
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/ci/ansi2html_spec.rb | 9 |
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 |