diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-25 20:47:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-25 20:47:20 +0300 |
commit | 84e5e90406ad42b1fb83f7495c05fd22cc5fbbd2 (patch) | |
tree | 6722895ba9e1334e6105b1d71b2cd57f2c199fbf /spec/models/note_spec.rb | |
parent | 696bef428fae55095e3395bfe439c7ede67c5478 (diff) |
Add latest changes from gitlab-org/security/gitlab@14-8-stable-ee
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 34ce0031bd2..cbfedf54ffa 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -1645,4 +1645,14 @@ RSpec.describe Note do end end end + + describe '#commands_changes' do + let(:note) { build(:note) } + + it 'only returns allowed keys' do + note.commands_changes = { emoji_award: {}, time_estimate: {}, spend_time: {}, target_project: build(:project) } + + expect(note.commands_changes.keys).to contain_exactly(:emoji_award, :time_estimate, :spend_time) + end + end end |