Skip to content
Snippets Groups Projects
Commit 016d0e9c authored by Roy Zwambag's avatar Roy Zwambag Committed by Matthias Käppler
Browse files

Freeze the text variable string

This fixes Uploads Rewriter spec in Ruby 3
since interpolated strings are not frozen
by default anymore.
parent ec1f504f
No related branches found
No related tags found
2 merge requests!97251Synchronize ruby3 branch manually due to conflicts,!97019Freeze the text variable string to fix Uploads Rewriter spec in Ruby 3
......@@ -19,7 +19,7 @@
end
let(:text) do
"Text and #{image_uploader.markdown_link} and #{zip_uploader.markdown_link}"
"Text and #{image_uploader.markdown_link} and #{zip_uploader.markdown_link}".freeze # rubocop:disable Style/RedundantFreeze
end
def referenced_files(text, project)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment