Skip to content

Commit

Permalink
test: suppress "literal string will be frozen" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 22, 2024
1 parent 771ea6f commit 38e3573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-html.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2013-2017 Kouhei Sutou <[email protected]>
# Copyright (C) 2013-2024 Sutou Kouhei <[email protected]>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -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")
<html>
<body>Hello</body>
</html>
Expand Down

0 comments on commit 38e3573

Please sign in to comment.