Skip to content
Snippets Groups Projects
Commit 4b7395e0 authored by Z.J. van de Weg's avatar Z.J. van de Weg
Browse files

Fix format of Slack when result is nil

parent 6d9c1d3e
No related branches found
No related tags found
Loading
Pipeline #
......@@ -16,7 +16,7 @@ def to_param
def trigger(params)
# Format messages to be Slack-compatible
super.tap do |result|
result[:text] = format(result[:text])
result[:text] = format(result[:text]) if result.is_a?(Hash)
end
end
......
......@@ -18,7 +18,8 @@
let(:service) do
project.create_slack_slash_commands_service(
properties: { token: 'token' }
properties: { token: 'token' },
active: true
)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment