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
62fcb9ff
Commit
62fcb9ff
authored
Dec 22, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
73edea02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
scripts/insert-rspec-profiling-data
scripts/insert-rspec-profiling-data
+2
-0
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
+1
-1
No files found.
scripts/insert-rspec-profiling-data
View file @
62fcb9ff
...
...
@@ -35,6 +35,8 @@ def insert_data(path)
files
.
each
do
|
filename
|
puts
"
#{
Time
.
now
}
Inserting
#{
filename
}
..."
# Strip file of NULL bytes to ensure data gets inserted
system
(
"sed"
,
"-i"
,
"-e"
,
"s/
\\
x00//g"
,
filename
)
result
=
RspecProfiling
::
Collectors
::
PSQL
::
Result
.
copy_from
(
filename
)
puts
"
#{
Time
.
now
}
Inserted
#{
result
.
cmd_tuples
}
lines in
#{
filename
}
, DB response:
#{
result
.
cmd_status
}
"
end
...
...
spec/lib/banzai/pipeline/wiki_pipeline_spec.rb
View file @
62fcb9ff
...
...
@@ -230,7 +230,7 @@ describe Banzai::Pipeline::WikiPipeline do
]
invalid_slugs
.
each
do
|
slug
|
context
"with the invalid slug
#{
slug
}
"
do
context
"with the invalid slug
#{
slug
.
delete
(
"
\000
"
)
}
"
do
invalid_js_links
.
each
do
|
link
|
it
"doesn't include a prohibited slug in a (.) relative link '
#{
link
}
'"
do
output
=
described_class
.
to_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