From 38e3573377a9de9f5a78da764c0beaacc7d7f0ed Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Sun, 22 Sep 2024 16:51:45 +0900 Subject: [PATCH] test: suppress "literal string will be frozen" warnings --- test/test-html.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-html.rb b/test/test-html.rb index 3e036ff..07ce718 100644 --- a/test/test-html.rb +++ b/test/test-html.rb @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2017 Kouhei Sutou +# Copyright (C) 2013-2024 Sutou Kouhei # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -188,7 +188,7 @@ def normalize_decomposed_data(decomposed_data) sub_test_case("detect") do def test_nothing - @data.body = <<-HTML.force_encoding("UTF-8") + @data.body = <<-HTML.dup.force_encoding("UTF-8") Hello