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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a1cddf05
Commit
a1cddf05
authored
May 06, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reproduced
parent
34939c89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
spec/lib/gitlab/ci/trace/stream_spec.rb
spec/lib/gitlab/ci/trace/stream_spec.rb
+10
-2
No files found.
spec/lib/gitlab/ci/trace/stream_spec.rb
View file @
a1cddf05
...
...
@@ -240,10 +240,18 @@ describe Gitlab::Ci::Trace::Stream do
end
context
'multiple results in content & regex'
do
let
(
:data
)
{
' (98.39%) covered. (98.29%) covered'
}
let
(
:data
)
do
<<~
HEREDOC
(98.39%) covered
(98.29%) covered
HEREDOC
end
let
(
:regex
)
{
'\(\d+.\d+\%\) covered'
}
it
{
is_expected
.
to
eq
(
"98.29"
)
}
it
'returns the last matched coverage'
do
is_expected
.
to
eq
(
"98.29"
)
end
end
context
'using a regex capture'
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