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
001b1ff3
Commit
001b1ff3
authored
Jun 21, 2016
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm spec for a deleted method
parent
362d7fde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
spec/helpers/blob_helper_spec.rb
spec/helpers/blob_helper_spec.rb
+0
-14
No files found.
spec/helpers/blob_helper_spec.rb
View file @
001b1ff3
...
@@ -54,20 +54,6 @@ describe BlobHelper do
...
@@ -54,20 +54,6 @@ describe BlobHelper do
end
end
end
end
describe
"#highlighter"
do
it
'should highlight continued blocks'
do
# Both lines have LC1 as ID since formatter doesn't support continue at the moment
expected
=
[
'<span id="LC1" class="line"><span class="p">(</span><span class="nb">make-pathname</span> <span class="ss">:defaults</span> <span class="nv">name</span></span>'
,
'<span id="LC1" class="line"><span class="ss">:type</span> <span class="s">"assem"</span><span class="p">))</span></span>'
]
highlighter
=
helper
.
highlighter
(
blob_name
,
blob_content
,
nowrap:
true
)
result
=
split_content
.
map
{
|
content
|
highlighter
.
highlight
(
content
)
}
expect
(
result
).
to
eq
(
expected
)
end
end
describe
"#sanitize_svg"
do
describe
"#sanitize_svg"
do
let
(
:input_svg_path
)
{
File
.
join
(
Rails
.
root
,
'spec'
,
'fixtures'
,
'unsanitized.svg'
)
}
let
(
:input_svg_path
)
{
File
.
join
(
Rails
.
root
,
'spec'
,
'fixtures'
,
'unsanitized.svg'
)
}
let
(
:data
)
{
open
(
input_svg_path
).
read
}
let
(
:data
)
{
open
(
input_svg_path
).
read
}
...
...
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