Commit 06d9bc6e authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'fix-scoped-labels-test-case-descriptions' into 'master'

Fix scoped labels test cases descriptions

See merge request gitlab-org/gitlab-ee!11474
parents 138afd05 dbc8df59
...@@ -71,7 +71,7 @@ describe ScopedLabelSet do ...@@ -71,7 +71,7 @@ describe ScopedLabelSet do
expect(set.contains_any?([kv_label2.id])).to eq(true) expect(set.contains_any?([kv_label2.id])).to eq(true)
end 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]) set = described_class.new('key', [kv_label1])
expect(set.contains_any?([kv_label2.id])).to eq(false) expect(set.contains_any?([kv_label2.id])).to eq(false)
......
...@@ -40,7 +40,7 @@ shared_examples_for 'new issuable with scoped labels' do ...@@ -40,7 +40,7 @@ shared_examples_for 'new issuable with scoped labels' do
stub_licensed_features(scoped_labels: false) stub_licensed_features(scoped_labels: false)
end end
it 'adds only last selected exclusive scoped label' do it 'adds all scoped labels' do
label1 = create_label('label1') label1 = create_label('label1')
label2 = create_label('key::label1') label2 = create_label('key::label1')
label3 = create_label('key::label2') label3 = create_label('key::label2')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment