Commit e7cd2b97 authored by Tiago Botelho's avatar Tiago Botelho

fixes the test suite for the service api file

parent f544b977
...@@ -33,7 +33,7 @@ class JenkinsDeprecatedService < CiService ...@@ -33,7 +33,7 @@ class JenkinsDeprecatedService < CiService
'is deprecated. Use "Jenkins CI" service instead.' 'is deprecated. Use "Jenkins CI" service instead.'
end end
def to_param def self.to_param
'jenkins_deprecated' 'jenkins_deprecated'
end end
......
...@@ -52,7 +52,7 @@ class JenkinsService < CiService ...@@ -52,7 +52,7 @@ class JenkinsService < CiService
File.join(jenkins_url, "project/#{project_name}").to_s File.join(jenkins_url, "project/#{project_name}").to_s
end end
def supported_events def self.supported_events
%w(push merge_request tag_push) %w(push merge_request tag_push)
end end
...@@ -68,7 +68,7 @@ class JenkinsService < CiService ...@@ -68,7 +68,7 @@ class JenkinsService < CiService
'You must have installed the Git Plugin and GitLab Plugin in Jenkins' 'You must have installed the Git Plugin and GitLab Plugin in Jenkins'
end end
def to_param def self.to_param
'jenkins' 'jenkins'
end end
......
...@@ -609,6 +609,8 @@ module API ...@@ -609,6 +609,8 @@ module API
SlackService, SlackService,
MattermostService, MattermostService,
TeamcityService, TeamcityService,
JenkinsService,
JenkinsDeprecatedService
].freeze ].freeze
trigger_services = { trigger_services = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment