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
1f6453e4
Commit
1f6453e4
authored
Apr 05, 2020
by
Gilang Gumilar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert spec back to alphabetical order
parent
69985f11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
ee/spec/features/groups/navbar_spec.rb
ee/spec/features/groups/navbar_spec.rb
+1
-1
spec/support/helpers/navbar_structure_helper.rb
spec/support/helpers/navbar_structure_helper.rb
+0
-11
No files found.
ee/spec/features/groups/navbar_spec.rb
View file @
1f6453e4
...
...
@@ -35,7 +35,7 @@ describe 'Group navbar' do
before
do
stub_licensed_features
(
cycle_analytics_for_groups:
true
)
insert_
before
_sub_nav_item
(
insert_
after
_sub_nav_item
(
_
(
'Contribution'
),
within:
_
(
'Analytics'
),
new_sub_nav_item_name:
_
(
'Value Stream'
)
...
...
spec/support/helpers/navbar_structure_helper.rb
View file @
1f6453e4
...
...
@@ -18,15 +18,4 @@ module NavbarStructureHelper
index
=
hash
[
:nav_sub_items
].
find_index
(
before_sub_nav_item_name
)
hash
[
:nav_sub_items
].
insert
(
index
+
1
,
new_sub_nav_item_name
)
end
def
insert_before_sub_nav_item
(
after_sub_nav_item_name
,
within
:,
new_sub_nav_item_name
:)
expect
(
structure
).
to
include
(
a_hash_including
(
nav_item:
within
))
hash
=
structure
.
find
{
|
h
|
h
[
:nav_item
]
==
within
}
expect
(
hash
).
to
have_key
(
:nav_sub_items
)
expect
(
hash
[
:nav_sub_items
]).
to
include
(
after_sub_nav_item_name
)
index
=
hash
[
:nav_sub_items
].
find_index
(
after_sub_nav_item_name
)
hash
[
:nav_sub_items
].
insert
(
index
,
new_sub_nav_item_name
)
end
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