Fix frozen string errors
This commit is contained in:
parent
8c42a0eac0
commit
c5acf26e06
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ module Gitlab
|
|||
attr_reader :load_times_by_model, :private_token
|
||||
|
||||
def debug(message, *)
|
||||
message.gsub!(private_token, FILTERED_STRING) if private_token
|
||||
message = message.gsub(private_token, FILTERED_STRING) if private_token
|
||||
|
||||
_, type, time = *message.match(/(\w+) Load \(([0-9.]+)ms\)/)
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ describe Gitlab::Search::FoundBlob do
|
|||
end
|
||||
|
||||
context 'with ISO-8859-1' do
|
||||
let(:search_result) { "master:encoding/iso8859.txt\x001\x00\xC4\xFC\nmaster:encoding/iso8859.txt\x002\x00\nmaster:encoding/iso8859.txt\x003\x00foo\n".force_encoding(Encoding::ASCII_8BIT) }
|
||||
let(:search_result) { (+"master:encoding/iso8859.txt\x001\x00\xC4\xFC\nmaster:encoding/iso8859.txt\x002\x00\nmaster:encoding/iso8859.txt\x003\x00foo\n").force_encoding(Encoding::ASCII_8BIT) }
|
||||
|
||||
it 'returns results as UTF-8' do
|
||||
expect(subject.filename).to eq('encoding/iso8859.txt')
|
||||
|
|
Loading…
Reference in a new issue