diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-12 20:54:00 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-12 20:54:00 +0300 |
commit | 927a75567a9ff61f4c7ccdc4caa4280bbcab551c (patch) | |
tree | a0bd0fccf7a4c945f98edd4249fbb53316692090 /spec/support | |
parent | 61844de497ed364049905f9da91f11140f6cfd9b (diff) | |
parent | 8d0645c2ce3769268020ad6f8e51db07fb1e4bc6 (diff) |
Merge branch 'grapify-service-api' into 'master'
Grapify the service API
Related to #22928
See merge request !7970
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/services_shared_context.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/services_shared_context.rb b/spec/support/services_shared_context.rb index d1c999cad4d..66c93890e31 100644 --- a/spec/support/services_shared_context.rb +++ b/spec/support/services_shared_context.rb @@ -16,8 +16,14 @@ Service.available_services_names.each do |service| hash.merge!(k => 'secrettoken') elsif k =~ /^(.*_url|url|webhook)/ hash.merge!(k => "http://example.com") + elsif service_klass.method_defined?("#{k}?") + hash.merge!(k => true) elsif service == 'irker' && k == :recipients hash.merge!(k => 'irc://irc.network.net:666/#channel') + elsif service == 'irker' && k == :server_port + hash.merge!(k => 1234) + elsif service == 'jira' && k == :jira_issue_transition_id + hash.merge!(k => 1234) else hash.merge!(k => "someword") end |