Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-26 03:14:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-26 03:14:54 +0300
commita40d39ddd2dce862f95d35c42a07c0fce4df8f0a (patch)
tree4c7f8b0898c57f1e0973b22729e01f8508388562 /spec/models/note_spec.rb
parentffe8b982e9d93ed23817a4bd9696ef1ef59de9f9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb10
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