Commit c34442e4 authored by gfyoung's avatar gfyoung Committed by Thong Kuah

Enable frozen string for middleware specs

Partially addresses:

https://gitlab.com/gitlab-org/gitlab/issues/27703
parent 36aea048
# frozen_string_literal: true
require 'spec_helper' require 'spec_helper'
describe Gitlab::Middleware::Go do describe Gitlab::Middleware::Go do
...@@ -25,7 +27,7 @@ describe Gitlab::Middleware::Go do ...@@ -25,7 +27,7 @@ describe Gitlab::Middleware::Go do
describe 'when go-get=1' do describe 'when go-get=1' do
before do before do
env['QUERY_STRING'] = 'go-get=1' env['QUERY_STRING'] = 'go-get=1'
env['PATH_INFO'] = "/#{path}" env['PATH_INFO'] = +"/#{path}"
end end
shared_examples 'go-get=1' do |enabled_protocol:| shared_examples 'go-get=1' do |enabled_protocol:|
......
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