Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-07-25 13:53:43 +0300
committerThong Kuah <tkuah@gitlab.com>2019-07-26 04:23:30 +0300
commit8be61f7695728e88dabcba0e74714044800eaf67 (patch)
tree91a9006e8f2bbd9c14bc86bdd27a8eba4c338632 /spec/features/projects
parent73e848850c2fbb890ae7d5e0886cd2d85aafa3d2 (diff)
Fix can't modify frozen String errors
Use unary plus as recommended by Performance/UnfreezeString cop
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/wiki/user_views_wiki_page_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/projects/wiki/user_views_wiki_page_spec.rb b/spec/features/projects/wiki/user_views_wiki_page_spec.rb
index e19f9b6c2c1..05742b63c43 100644
--- a/spec/features/projects/wiki/user_views_wiki_page_spec.rb
+++ b/spec/features/projects/wiki/user_views_wiki_page_spec.rb
@@ -131,7 +131,7 @@ describe 'User views a wiki page' do
end
context 'when page has invalid content encoding' do
- let(:content) { 'whatever'.force_encoding('ISO-8859-1') }
+ let(:content) { (+'whatever').force_encoding('ISO-8859-1') }
before do
allow(Gitlab::EncodingHelper).to receive(:encode!).and_return(content)