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
d26d2efc
Commit
d26d2efc
authored
May 27, 2021
by
Denys Mishunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the spec
As per review
parent
f1dea8ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
spec/lib/sidebars/menu_spec.rb
spec/lib/sidebars/menu_spec.rb
+1
-7
No files found.
spec/lib/sidebars/menu_spec.rb
View file @
d26d2efc
...
...
@@ -157,12 +157,10 @@ RSpec.describe Sidebars::Menu do
context
'when menu has renderable items'
do
before
do
allow
(
menu
).
to
receive
(
:has_renderable_items?
).
and_return
(
true
)
menu
.
add_item
(
Sidebars
::
MenuItem
.
new
(
title:
'foo1'
,
link:
'foo1'
,
active_routes:
{
path:
'bar'
})
)
end
it
'contains the special class'
do
menu
.
add_item
(
Sidebars
::
MenuItem
.
new
(
title:
'foo1'
,
link:
'foo1'
,
active_routes:
{
path:
'bar'
}))
expect
(
menu
.
container_html_options
[
:class
]).
to
eq
'has-sub-items'
end
...
...
@@ -176,10 +174,6 @@ RSpec.describe Sidebars::Menu do
end
context
'when menu does not have renderable items'
do
before
do
allow
(
menu
).
to
receive
(
:has_renderable_items?
).
and_return
(
false
)
end
it
'does not contain the special class'
do
expect
(
menu
.
container_html_options
[
:class
]).
to
be_nil
end
...
...
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