summaryrefslogtreecommitdiff
path: root/spec/models/label_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-09 12:15:13 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-09 12:15:13 +0000
commit0b4adad74b76b34855e9a6d943f9b9188c3914fa (patch)
tree1084ffd8336bc8e9af6f7042a093bf78e0852ac3 /spec/models/label_spec.rb
parentece36a21699c2a218b8bd14b22bea47d22218354 (diff)
downloadgitlab-ce-0b4adad74b76b34855e9a6d943f9b9188c3914fa.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/label_spec.rb')
-rw-r--r--spec/models/label_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/label_spec.rb b/spec/models/label_spec.rb
index ff7ac0ebd2a..26a1edcbcff 100644
--- a/spec/models/label_spec.rb
+++ b/spec/models/label_spec.rb
@@ -257,4 +257,15 @@ RSpec.describe Label do
end
end
end
+
+ describe '.pluck_titles' do
+ subject(:pluck_titles) { described_class.pluck_titles }
+
+ it 'returns the audit event type of the event type filter' do
+ label1 = create(:label, title: "TITLE1")
+ label2 = create(:label, title: "TITLE2")
+
+ expect(pluck_titles).to contain_exactly(label1.title, label2.title)
+ end
+ end
end