summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorPeter Leitzen <pl@neopoly.de>2018-08-01 16:54:13 +0200
committerPeter Leitzen <pl@neopoly.de>2018-08-10 16:45:11 +0200
commit56ce46674f93e35b2ed54771c1a54dde21f38685 (patch)
tree9e1948131b383b4afea7987bb19a1b89d1118f3f /spec/services
parentfbd0f162524b6dd875097f76e1175a55dba5f3f6 (diff)
downloadgitlab-ce-56ce46674f93e35b2ed54771c1a54dde21f38685.tar.gz
You cannot `/award` a Commit
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/quick_actions/interpret_service_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/quick_actions/interpret_service_spec.rb b/spec/services/quick_actions/interpret_service_spec.rb
index be209c41c0f..af1064d032d 100644
--- a/spec/services/quick_actions/interpret_service_spec.rb
+++ b/spec/services/quick_actions/interpret_service_spec.rb
@@ -980,6 +980,12 @@ describe QuickActions::InterpretService do
let(:issuable) { issue }
end
end
+
+ context 'if issuable is a Commit' do
+ let(:content) { '/award :100:' }
+ let(:issuable) { commit }
+ it_behaves_like 'empty command'
+ end
end
context '/shrug command' do