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
Boxiang Sun
gitlab-ce
Commits
83aa0fb5
Commit
83aa0fb5
authored
Jun 14, 2019
by
Fabio Pitino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace _ with - in section class names
parent
e2daebdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/lib/gitlab/ci/ansi2html_spec.rb
spec/lib/gitlab/ci/ansi2html_spec.rb
+3
-3
No files found.
spec/lib/gitlab/ci/ansi2html_spec.rb
View file @
83aa0fb5
...
@@ -231,10 +231,10 @@ describe Gitlab::Ci::Ansi2html do
...
@@ -231,10 +231,10 @@ describe Gitlab::Ci::Ansi2html do
it
'prints light red'
do
it
'prints light red'
do
text
=
"
#{
section_start
}
\e
[91mHello
\e
[0m
\n
#{
section_end
}
"
text
=
"
#{
section_start
}
\e
[91mHello
\e
[0m
\n
#{
section_end
}
"
header
=
%{<span class="term-fg-l-red section js-section-header js-s
_
#{class_name(section_name)}">Hello</span>}
header
=
%{<span class="term-fg-l-red section js-section-header js-s
-
#{class_name(section_name)}">Hello</span>}
line_break
=
%{<span class="section js-section-header js-s
_
#{class_name(section_name)}"><br/></span>}
line_break
=
%{<span class="section js-section-header js-s
-
#{class_name(section_name)}"><br/></span>}
line
=
%{<span class="section s_#{class_name(section_name)} line"></span>}
line
=
%{<span class="section s_#{class_name(section_name)} line"></span>}
empty_line
=
%{<span class="section js-s
_
#{class_name(section_name)}"></span>}
empty_line
=
%{<span class="section js-s
-
#{class_name(section_name)}"></span>}
html
=
"
#{
section_start_html
}#{
header
}#{
line_break
}#{
line
}#{
empty_line
}#{
section_end_html
}
"
html
=
"
#{
section_start_html
}#{
header
}#{
line_break
}#{
line
}#{
empty_line
}#{
section_end_html
}
"
expect
(
convert_html
(
text
)).
to
eq
(
html
)
expect
(
convert_html
(
text
)).
to
eq
(
html
)
...
...
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