summaryrefslogtreecommitdiff
path: root/app/models/project_services
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-12-03 10:33:38 +0200
committerValery Sizov <vsv2711@gmail.com>2015-12-03 10:33:43 +0200
commit162cd0099c6c1f4ee0051e35562636468e88ee0c (patch)
tree2466829f678aa2a6fdfcd537056a715751f4bc4c /app/models/project_services
parente6dadea3891358ac7ed34dbb31eac403c193fcdc (diff)
downloadgitlab-ce-162cd0099c6c1f4ee0051e35562636468e88ee0c.tar.gz
fix deprecation messages in tests
Diffstat (limited to 'app/models/project_services')
-rw-r--r--app/models/project_services/buildkite_service.rb2
-rw-r--r--app/models/project_services/drone_ci_service.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/buildkite_service.rb b/app/models/project_services/buildkite_service.rb
index 40058b53df5..199ee3a9d0d 100644
--- a/app/models/project_services/buildkite_service.rb
+++ b/app/models/project_services/buildkite_service.rb
@@ -37,7 +37,7 @@ class BuildkiteService < CiService
def compose_service_hook
hook = service_hook || build_service_hook
hook.url = webhook_url
- hook.enable_ssl_verification = enable_ssl_verification
+ hook.enable_ssl_verification = !!enable_ssl_verification
hook.save
end
diff --git a/app/models/project_services/drone_ci_service.rb b/app/models/project_services/drone_ci_service.rb
index 127684bd274..06c3922593c 100644
--- a/app/models/project_services/drone_ci_service.rb
+++ b/app/models/project_services/drone_ci_service.rb
@@ -34,7 +34,7 @@ class DroneCiService < CiService
hook = service_hook || build_service_hook
# If using a service template, project may not be available
hook.url = [drone_url, "/api/hook", "?owner=#{project.namespace.path}", "&name=#{project.path}", "&access_token=#{token}"].join if project
- hook.enable_ssl_verification = enable_ssl_verification
+ hook.enable_ssl_verification = !!enable_ssl_verification
hook.save
end