Skip to content

Commit

Permalink
Make the test suite compatible with --enable-frozen-string-literal
Browse files Browse the repository at this point in the history
Ref: https://bugs.ruby-lang.org/issues/20205

Since `rexml` is tested as part of ruby-core CI, it needs to be compatible
with the `--enable-frozen-string-literal` option.
  • Loading branch information
byroot committed Mar 15, 2024
1 parent 77cb0dc commit 4d1e219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/formatter/test_default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module REXMLTests
class DefaultFormatterTest < Test::Unit::TestCase
def format(node)
formatter = REXML::Formatters::Default.new
output = ""
output = +""
formatter.write(node, output)
output
end
Expand Down

0 comments on commit 4d1e219

Please sign in to comment.