summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-04-13 22:23:12 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-04-13 22:23:12 +0800
commit0a3c98a7e3b76f51902612ae302e821f54eadd74 (patch)
tree624eb17295b66a8abd2d93bc6555425265228bdd /spec
parentb07b8a5f3ed8383b7b3b37fc3f99c086ddc42e20 (diff)
downloadgitlab-ce-0a3c98a7e3b76f51902612ae302e821f54eadd74.tar.gz
Update tests for the fact that we would skip one linefix-trace-seeking-readline
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/ci/trace/stream_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/ci/trace/stream_spec.rb b/spec/lib/gitlab/ci/trace/stream_spec.rb
index 61ac76401ea..9e3bd6d662f 100644
--- a/spec/lib/gitlab/ci/trace/stream_spec.rb
+++ b/spec/lib/gitlab/ci/trace/stream_spec.rb
@@ -17,12 +17,12 @@ describe Gitlab::Ci::Trace::Stream do
describe '#limit' do
let(:stream) do
described_class.new do
- StringIO.new("12345678")
+ StringIO.new((1..8).to_a.join("\n"))
end
end
it 'if size is larger we start from beginning' do
- stream.limit(10)
+ stream.limit(20)
expect(stream.tell).to eq(0)
end
@@ -30,7 +30,7 @@ describe Gitlab::Ci::Trace::Stream do
it 'if size is smaller we start from the end' do
stream.limit(2)
- expect(stream.tell).to eq(6)
+ expect(stream.raw).to eq("8")
end
context 'when the trace contains ANSI sequence and Unicode' do