summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-23 12:08:38 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-23 12:08:38 +0000
commit5ad0cf26551baff8f08af8562a8d45e6ec14d71a (patch)
tree57f1a6bad31bcd11efacd3fdfb9cc92f88fb6a86 /spec/models/note_spec.rb
parentf47c768fad17d4c876e96524f83f8306f071db66 (diff)
downloadgitlab-ce-5ad0cf26551baff8f08af8562a8d45e6ec14d71a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index a6d9ecaa7c5..12a74632bb8 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -718,12 +718,12 @@ describe Note do
end
describe '#noteable_ability_name' do
- it 'returns project_snippet for a project snippet note' do
- expect(build(:note_on_project_snippet).noteable_ability_name).to eq('project_snippet')
+ it 'returns snippet for a project snippet note' do
+ expect(build(:note_on_project_snippet).noteable_ability_name).to eq('snippet')
end
- it 'returns personal_snippet for a personal snippet note' do
- expect(build(:note_on_personal_snippet).noteable_ability_name).to eq('personal_snippet')
+ it 'returns snippet for a personal snippet note' do
+ expect(build(:note_on_personal_snippet).noteable_ability_name).to eq('snippet')
end
it 'returns merge_request for an MR note' do