Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-07-25 12:30:33 +0300
committergfyoung <gfyoung17@gmail.com>2018-07-27 02:55:41 +0300
commit50abbd3e53d4f5e3e67543650a13aca9a54b37c2 (patch)
tree4b36ec83d974102ab38738b05678e3f0f738a6f3 /spec/controllers/admin
parentcaeb4597a5b24e0eaa96b24901ce9208c2eef4bf (diff)
Enable frozen string in app/models/*.rb
Partially addresses #47424.
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r--spec/controllers/admin/services_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/admin/services_controller_spec.rb b/spec/controllers/admin/services_controller_spec.rb
index 701211c2586..4439ea4a533 100644
--- a/spec/controllers/admin/services_controller_spec.rb
+++ b/spec/controllers/admin/services_controller_spec.rb
@@ -13,7 +13,7 @@ describe Admin::ServicesController do
Service.available_services_names.each do |service_name|
context "#{service_name}" do
let!(:service) do
- service_template = service_name.concat("_service").camelize.constantize
+ service_template = "#{service_name}_service".camelize.constantize
service_template.where(template: true).first_or_create
end