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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
fa532970
Commit
fa532970
authored
Sep 07, 2018
by
Jan Provaznik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort labels by reference
Labels are sorted by reference, not title. This caused random CI failure.
parent
b027b3e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/support/shared_examples/models/label_note_shared_examples.rb
...port/shared_examples/models/label_note_shared_examples.rb
+2
-2
No files found.
spec/support/shared_examples/models/label_note_shared_examples.rb
View file @
fa532970
...
@@ -10,9 +10,9 @@ shared_examples 'label note created from events' do
...
@@ -10,9 +10,9 @@ shared_examples 'label note created from events' do
end
end
def
label_refs
(
events
)
def
label_refs
(
events
)
sorted_labels
=
events
.
map
(
&
:label
).
compact
.
sort_by
(
&
:title
)
labels
=
events
.
map
(
&
:label
).
compact
sorted_labels
.
map
{
|
l
|
l
.
to_reference
}
.
join
(
' '
)
labels
.
map
{
|
l
|
l
.
to_reference
}.
sort
.
join
(
' '
)
end
end
let
(
:time
)
{
Time
.
now
}
let
(
:time
)
{
Time
.
now
}
...
...
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