summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Leitzen <pl@neopoly.de>2018-08-10 18:15:25 +0200
committerPeter Leitzen <pl@neopoly.de>2018-08-10 18:15:25 +0200
commit7fe85c1d42e89e91e619dcbe9ac945a9223ec72b (patch)
tree2bd67ca97c4415c4ff574ff759102f49ecd7fa77
parentea9c7bee4b167e85e192cc40720d2c4cc07540ab (diff)
downloadgitlab-ce-7fe85c1d42e89e91e619dcbe9ac945a9223ec72b.tar.gz
Freeze string literals
See Danger's suggestions: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6869#note_93730253
-rw-r--r--app/policies/commit_policy.rb2
-rw-r--r--spec/features/commits/user_uses_slash_commands_spec.rb2
-rw-r--r--spec/services/commits/tag_service_spec.rb2
-rw-r--r--spec/services/quick_actions/target_service_spec.rb2
4 files changed, 8 insertions, 0 deletions
diff --git a/app/policies/commit_policy.rb b/app/policies/commit_policy.rb
index 44063181241..67e9bc12804 100644
--- a/app/policies/commit_policy.rb
+++ b/app/policies/commit_policy.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class CommitPolicy < BasePolicy
delegate { @subject.project }
end
diff --git a/spec/features/commits/user_uses_slash_commands_spec.rb b/spec/features/commits/user_uses_slash_commands_spec.rb
index d8359766509..9a4b7bd2444 100644
--- a/spec/features/commits/user_uses_slash_commands_spec.rb
+++ b/spec/features/commits/user_uses_slash_commands_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'rails_helper'
describe 'Commit > User uses quick actions', :js do
diff --git a/spec/services/commits/tag_service_spec.rb b/spec/services/commits/tag_service_spec.rb
index f14eb9ea2b9..82377a8dace 100644
--- a/spec/services/commits/tag_service_spec.rb
+++ b/spec/services/commits/tag_service_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'spec_helper'
describe Commits::TagService do
diff --git a/spec/services/quick_actions/target_service_spec.rb b/spec/services/quick_actions/target_service_spec.rb
index abe07ae90ba..0aeb29cbeec 100644
--- a/spec/services/quick_actions/target_service_spec.rb
+++ b/spec/services/quick_actions/target_service_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'spec_helper'
describe QuickActions::TargetService do