aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml
diff options
context:
space:
mode:
authorSutou Kouhei <kou@cozmixng.org>2019-10-12 12:07:15 +0900
committerGitHub <noreply@github.com>2019-10-12 12:07:15 +0900
commit412cd56766a4822c48117a16d79303d3d915b28a (patch)
tree536900f38bfbb1e687262e723405288d2e8aa6bb /test/rexml
parentc866663784ea5a8f16e7fe5127127fb46ae90e6e (diff)
downloadruby-412cd56766a4822c48117a16d79303d3d915b28a.tar.gz
Import REXML 3.2.3 (#2548)
Diffstat (limited to 'test/rexml')
-rw-r--r--test/rexml/test_xml_declaration.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rexml/test_xml_declaration.rb b/test/rexml/test_xml_declaration.rb
index 1d5a6d312f..da7076126e 100644
--- a/test/rexml/test_xml_declaration.rb
+++ b/test/rexml/test_xml_declaration.rb
@@ -38,5 +38,11 @@ module REXMLTests
"encoding=\"UTF-8\" standalone=\"yes\"?>",
@xml_declaration.to_s)
end
+
+ def test_is_writethis_attribute_copied_by_clone
+ assert_equal(true, @xml_declaration.clone.writethis)
+ @xml_declaration.nowrite
+ assert_equal(false, @xml_declaration.clone.writethis)
+ end
end
end