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:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-05-12 10:23:21 +0300
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-05-12 10:23:21 +0300
commit7a4e7ad04e1fc96953d9159e8e1a2208990d34f7 (patch)
treeb39508df518df88682703b4525f6895113ec4a8a /spec/services/notes
parent2bbe781d8b45fb9677f5fbe60cf86b2452ef3af4 (diff)
Fix tests and wrong choices during merge
Diffstat (limited to 'spec/services/notes')
-rw-r--r--spec/services/notes/create_service_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/services/notes/create_service_spec.rb b/spec/services/notes/create_service_spec.rb
index 93e8a7094e2..4e62e3975ea 100644
--- a/spec/services/notes/create_service_spec.rb
+++ b/spec/services/notes/create_service_spec.rb
@@ -51,5 +51,17 @@ describe Notes::CreateService, services: true do
expect(note).to be_valid
expect(note.note).to eq(opts[:note])
end
+
+ it "normalizes the emoji name" do
+ opts = {
+ note: ':+1:',
+ noteable_type: 'Issue',
+ noteable_id: issue.id
+ }
+
+ expect_any_instance_of(ToggleAwardEmojiService).to receive(:execute).with(issue, "thumbsup")
+
+ Notes::CreateService.new(project, user, opts).execute
+ end
end
end