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
dbc8df59
Commit
dbc8df59
authored
Apr 24, 2019
by
Walmyr
Committed by
Douglas Barbosa Alexandre
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scoped labels test cases descriptions
Based on their expectations
parent
138afd05
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/spec/models/scoped_label_set_spec.rb
ee/spec/models/scoped_label_set_spec.rb
+1
-1
ee/spec/support/shared_examples/scoped_label_examples.rb
ee/spec/support/shared_examples/scoped_label_examples.rb
+1
-1
No files found.
ee/spec/models/scoped_label_set_spec.rb
View file @
dbc8df59
...
...
@@ -71,7 +71,7 @@ describe ScopedLabelSet do
expect
(
set
.
contains_any?
([
kv_label2
.
id
])).
to
eq
(
true
)
end
it
'returns
true if any of label ids is
in set'
do
it
'returns
false if certain label ids is not
in set'
do
set
=
described_class
.
new
(
'key'
,
[
kv_label1
])
expect
(
set
.
contains_any?
([
kv_label2
.
id
])).
to
eq
(
false
)
...
...
ee/spec/support/shared_examples/scoped_label_examples.rb
View file @
dbc8df59
...
...
@@ -40,7 +40,7 @@ shared_examples_for 'new issuable with scoped labels' do
stub_licensed_features
(
scoped_labels:
false
)
end
it
'adds
only last selected exclusive scoped label
'
do
it
'adds
all scoped labels
'
do
label1
=
create_label
(
'label1'
)
label2
=
create_label
(
'key::label1'
)
label3
=
create_label
(
'key::label2'
)
...
...
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