diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-08-22 15:17:11 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-08-22 15:17:11 +0300 |
commit | c5acf26e0609ec0c5e16b2fb232d7058e6c066cd (patch) | |
tree | e0795905f4f750f6314ae3e8c64207c1f704ce73 /spec/lib | |
parent | 8c42a0eac09cb349789c963d38ee4e3ff5ecc0a8 (diff) |
Fix frozen string errors
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/search/found_blob_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/search/found_blob_spec.rb b/spec/lib/gitlab/search/found_blob_spec.rb index 58784706c24..3496fb29836 100644 --- a/spec/lib/gitlab/search/found_blob_spec.rb +++ b/spec/lib/gitlab/search/found_blob_spec.rb @@ -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') |