Add integration tests for slack ‘slash commands’

Adapted from existing slack plugin
This commit is contained in:
David Taylor
2017-07-06 23:30:27 +01:00
parent 062aa8d875
commit f001320574
3 changed files with 282 additions and 2 deletions
@@ -4,7 +4,7 @@ class ChatIntegrationSlackEnabledSettingValidator
end
def valid_value?(val)
return true if val == 'f'
return true if val == 'f' or val == false
return false if SiteSetting.chat_integration_slack_outbound_webhook_url.blank? && SiteSetting.chat_integration_slack_access_token.blank?
true
end