Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
0a3c98a7
Commit
0a3c98a7
authored
Apr 13, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests for the fact that we would skip one line
parent
b07b8a5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/lib/gitlab/ci/trace/stream_spec.rb
spec/lib/gitlab/ci/trace/stream_spec.rb
+3
-3
No files found.
spec/lib/gitlab/ci/trace/stream_spec.rb
View file @
0a3c98a7
...
@@ -17,12 +17,12 @@ describe Gitlab::Ci::Trace::Stream do
...
@@ -17,12 +17,12 @@ describe Gitlab::Ci::Trace::Stream do
describe
'#limit'
do
describe
'#limit'
do
let
(
:stream
)
do
let
(
:stream
)
do
described_class
.
new
do
described_class
.
new
do
StringIO
.
new
(
"12345678"
)
StringIO
.
new
(
(
1
..
8
).
to_a
.
join
(
"
\n
"
)
)
end
end
end
end
it
'if size is larger we start from beginning'
do
it
'if size is larger we start from beginning'
do
stream
.
limit
(
1
0
)
stream
.
limit
(
2
0
)
expect
(
stream
.
tell
).
to
eq
(
0
)
expect
(
stream
.
tell
).
to
eq
(
0
)
end
end
...
@@ -30,7 +30,7 @@ describe Gitlab::Ci::Trace::Stream do
...
@@ -30,7 +30,7 @@ describe Gitlab::Ci::Trace::Stream do
it
'if size is smaller we start from the end'
do
it
'if size is smaller we start from the end'
do
stream
.
limit
(
2
)
stream
.
limit
(
2
)
expect
(
stream
.
tell
).
to
eq
(
6
)
expect
(
stream
.
raw
).
to
eq
(
"8"
)
end
end
context
'when the trace contains ANSI sequence and Unicode'
do
context
'when the trace contains ANSI sequence and Unicode'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment