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
3b017a36
Commit
3b017a36
authored
Sep 01, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Space before closing brace
parent
fc27ca62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/lib/banzai/filter/table_of_contents_filter_spec.rb
spec/lib/banzai/filter/table_of_contents_filter_spec.rb
+2
-2
No files found.
spec/lib/banzai/filter/table_of_contents_filter_spec.rb
View file @
3b017a36
...
...
@@ -113,7 +113,7 @@ describe Banzai::Filter::TableOfContentsFilter do
items
=
doc
.
css
(
'li'
)
# Header 1
expect
(
items
[
0
].
ancestors
).
to
satisfy_none
{
|
node
|
node
.
name
==
'li'
}
expect
(
items
[
0
].
ancestors
).
to
satisfy_none
{
|
node
|
node
.
name
==
'li'
}
# Header 1-1
expect
(
items
[
1
].
ancestors
).
to
include
(
items
[
0
])
...
...
@@ -126,7 +126,7 @@ describe Banzai::Filter::TableOfContentsFilter do
expect
(
items
[
3
].
ancestors
).
not_to
include
(
items
[
1
])
# Header 2
expect
(
items
[
4
].
ancestors
).
to
satisfy_none
{
|
node
|
node
.
name
==
'li'
}
expect
(
items
[
4
].
ancestors
).
to
satisfy_none
{
|
node
|
node
.
name
==
'li'
}
# Header 2-1
expect
(
items
[
5
].
ancestors
).
to
include
(
items
[
4
])
...
...
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