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
5399deaa
Commit
5399deaa
authored
May 27, 2021
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix _sidebar.html.haml spec
It failed due to the recent refactor
parent
7aa08625
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
spec/views/shared/nav/_sidebar.html.haml_spec.rb
spec/views/shared/nav/_sidebar.html.haml_spec.rb
+0
-2
No files found.
spec/views/shared/nav/_sidebar.html.haml_spec.rb
View file @
5399deaa
...
...
@@ -25,13 +25,11 @@ RSpec.describe 'shared/nav/_sidebar.html.haml' do
context
'when sidebar does not have a scope menu'
do
let
(
:scope_menu_view_path
)
{
'shared/nav/'
}
let
(
:scope_menu_view_name
)
{
'scope_menu.html.haml'
}
let
(
:scope_menu_view
)
{
"
#{
scope_menu_view_path
}#{
scope_menu_view_name
}
"
}
let
(
:scope_menu_partial
)
{
"
#{
scope_menu_view_path
}
_
#{
scope_menu_view_name
}
"
}
let
(
:content
)
{
'Custom test content'
}
context
'when sidebar has a custom scope menu partial defined'
do
it
'renders the custom partial'
do
allow
(
sidebar
).
to
receive
(
:render_raw_scope_menu_partial
).
and_return
(
scope_menu_view
)
allow
(
view
).
to
receive
(
:scope_menu
).
and_return
(
nil
)
stub_template
(
scope_menu_partial
=>
content
)
...
...
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