summaryrefslogtreecommitdiff
path: root/spec/initializers
diff options
context:
space:
mode:
authormhasbini <mohammad.hasbini@gmail.com>2017-03-31 18:11:28 +0300
committermhasbini <mohammad.hasbini@gmail.com>2017-04-02 12:48:43 +0300
commit0a09925dcef1976970bc2674432f69d46786c38f (patch)
treef3b82c46b3050864fbd2e3331faae8ea37c3b6a3 /spec/initializers
parent9fc17f6f4abdb04f3cf1b60b87bd67b894a19c39 (diff)
downloadgitlab-ce-0a09925dcef1976970bc2674432f69d46786c38f.tar.gz
Enable Style/Proc cop for rubocop
Diffstat (limited to 'spec/initializers')
-rw-r--r--spec/initializers/trusted_proxies_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/initializers/trusted_proxies_spec.rb b/spec/initializers/trusted_proxies_spec.rb
index ff8b8daa347..70a18f31744 100644
--- a/spec/initializers/trusted_proxies_spec.rb
+++ b/spec/initializers/trusted_proxies_spec.rb
@@ -56,7 +56,7 @@ describe 'trusted_proxies', lib: true do
end
def stub_request(headers = {})
- ActionDispatch::RemoteIp.new(Proc.new { }, false, Rails.application.config.action_dispatch.trusted_proxies).call(headers)
+ ActionDispatch::RemoteIp.new(proc { }, false, Rails.application.config.action_dispatch.trusted_proxies).call(headers)
ActionDispatch::Request.new(headers)
end