diff options
Diffstat (limited to 'test/rexml')
42 files changed, 42 insertions, 0 deletions
diff --git a/test/rexml/listener.rb b/test/rexml/listener.rb index 81c9e8822c..6bede03c59 100644 --- a/test/rexml/listener.rb +++ b/test/rexml/listener.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Listener attr_reader :ts, :te attr_reader :normalize diff --git a/test/rexml/parse/test_document_type_declaration.rb b/test/rexml/parse/test_document_type_declaration.rb index 59fe561155..80f70888fb 100644 --- a/test/rexml/parse/test_document_type_declaration.rb +++ b/test/rexml/parse/test_document_type_declaration.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit" require "rexml/document" diff --git a/test/rexml/parse/test_notation_declaration.rb b/test/rexml/parse/test_notation_declaration.rb index 0a4e737abf..0d29f0d81f 100644 --- a/test/rexml/parse/test_notation_declaration.rb +++ b/test/rexml/parse/test_notation_declaration.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit' require 'rexml/document' diff --git a/test/rexml/parser/test_sax2.rb b/test/rexml/parser/test_sax2.rb index dba5eab033..91d135f5f7 100644 --- a/test/rexml/parser/test_sax2.rb +++ b/test/rexml/parser/test_sax2.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit" require "rexml/parsers/sax2parser" require "rexml/sax2listener" diff --git a/test/rexml/parser/test_tree.rb b/test/rexml/parser/test_tree.rb index fa010f6975..7ab0addca1 100644 --- a/test/rexml/parser/test_tree.rb +++ b/test/rexml/parser/test_tree.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit" require "rexml/document" require "rexml/parsers/treeparser" diff --git a/test/rexml/parser/test_ultra_light.rb b/test/rexml/parser/test_ultra_light.rb index 4960fc16dc..c48a13d311 100644 --- a/test/rexml/parser/test_ultra_light.rb +++ b/test/rexml/parser/test_ultra_light.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit" require "rexml/parsers/ultralightparser" diff --git a/test/rexml/rexml_test_utils.rb b/test/rexml/rexml_test_utils.rb index 57fe65ca73..7c59629e53 100644 --- a/test/rexml/rexml_test_utils.rb +++ b/test/rexml/rexml_test_utils.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit' module REXMLTestUtils def fixture_path(*components) diff --git a/test/rexml/test_attributes.rb b/test/rexml/test_attributes.rb index aea1d8857c..d6f566bdf8 100644 --- a/test/rexml/test_attributes.rb +++ b/test/rexml/test_attributes.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit/testcase' require 'rexml/document' diff --git a/test/rexml/test_attributes_mixin.rb b/test/rexml/test_attributes_mixin.rb index 17cca4efc3..3a9f54eefd 100644 --- a/test/rexml/test_attributes_mixin.rb +++ b/test/rexml/test_attributes_mixin.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit' require 'rexml/document' diff --git a/test/rexml/test_changing_encoding.rb b/test/rexml/test_changing_encoding.rb index 9471ad13ad..a2dc07254a 100644 --- a/test/rexml/test_changing_encoding.rb +++ b/test/rexml/test_changing_encoding.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false require 'rexml/encoding' diff --git a/test/rexml/test_comment.rb b/test/rexml/test_comment.rb index d5e78a5cde..0af2f5ca76 100644 --- a/test/rexml/test_comment.rb +++ b/test/rexml/test_comment.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require 'rexml/document' diff --git a/test/rexml/test_contrib.rb b/test/rexml/test_contrib.rb index fa84ebef3a..8462b3c23f 100644 --- a/test/rexml/test_contrib.rb +++ b/test/rexml/test_contrib.rb @@ -1,4 +1,5 @@ # coding: binary +# frozen_string_literal: false require_relative "rexml_test_utils" diff --git a/test/rexml/test_core.rb b/test/rexml/test_core.rb index 97aada9104..f4eba0bbb3 100644 --- a/test/rexml/test_core.rb +++ b/test/rexml/test_core.rb @@ -1,4 +1,5 @@ # coding: binary +# frozen_string_literal: false require_relative "rexml_test_utils" diff --git a/test/rexml/test_doctype.rb b/test/rexml/test_doctype.rb index 0b3ea11929..91de05b05f 100644 --- a/test/rexml/test_doctype.rb +++ b/test/rexml/test_doctype.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit' require 'rexml/document' diff --git a/test/rexml/test_document.rb b/test/rexml/test_document.rb index 46cd6f7dbd..c0faae4ae0 100644 --- a/test/rexml/test_document.rb +++ b/test/rexml/test_document.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false require "rexml/document" require "test/unit" diff --git a/test/rexml/test_elements.rb b/test/rexml/test_elements.rb index f253a75daf..a850e62209 100644 --- a/test/rexml/test_elements.rb +++ b/test/rexml/test_elements.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit/testcase' require 'rexml/document' diff --git a/test/rexml/test_encoding.rb b/test/rexml/test_encoding.rb index 058fb974b2..919db131f0 100644 --- a/test/rexml/test_encoding.rb +++ b/test/rexml/test_encoding.rb @@ -1,4 +1,5 @@ # coding: binary +# frozen_string_literal: false require_relative "rexml_test_utils" diff --git a/test/rexml/test_entity.rb b/test/rexml/test_entity.rb index bef1bd6c01..6dc6637074 100644 --- a/test/rexml/test_entity.rb +++ b/test/rexml/test_entity.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require 'rexml/document' diff --git a/test/rexml/test_functions.rb b/test/rexml/test_functions.rb index bf501ff0c2..5ac823dd8f 100644 --- a/test/rexml/test_functions.rb +++ b/test/rexml/test_functions.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require "rexml/document" diff --git a/test/rexml/test_functions_number.rb b/test/rexml/test_functions_number.rb index 0b5ec92f6c..84ec5c7ba7 100644 --- a/test/rexml/test_functions_number.rb +++ b/test/rexml/test_functions_number.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rexml/document' require 'test/unit' require 'rexml/functions' diff --git a/test/rexml/test_jaxen.rb b/test/rexml/test_jaxen.rb index 1eec73f3e0..aa9e2998ab 100644 --- a/test/rexml/test_jaxen.rb +++ b/test/rexml/test_jaxen.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'rexml_test_utils' require "rexml/document" diff --git a/test/rexml/test_light.rb b/test/rexml/test_light.rb index b775eb79e9..99bd9cac3f 100644 --- a/test/rexml/test_light.rb +++ b/test/rexml/test_light.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative "rexml_test_utils" require "rexml/light/node" require "rexml/parsers/lightparser" diff --git a/test/rexml/test_lightparser.rb b/test/rexml/test_lightparser.rb index f8212dcd2e..1aeac072dd 100644 --- a/test/rexml/test_lightparser.rb +++ b/test/rexml/test_lightparser.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'rexml_test_utils' require 'rexml/parsers/lightparser' diff --git a/test/rexml/test_listener.rb b/test/rexml/test_listener.rb index 309e827880..322d368be8 100644 --- a/test/rexml/test_listener.rb +++ b/test/rexml/test_listener.rb @@ -1,4 +1,5 @@ # coding: binary +# frozen_string_literal: false require_relative 'rexml_test_utils' diff --git a/test/rexml/test_martin_fowler.rb b/test/rexml/test_martin_fowler.rb index 26db110869..da685a80ec 100644 --- a/test/rexml/test_martin_fowler.rb +++ b/test/rexml/test_martin_fowler.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit' require 'rexml/document' diff --git a/test/rexml/test_namespace.rb b/test/rexml/test_namespace.rb index f5cd294568..90e1d36945 100644 --- a/test/rexml/test_namespace.rb +++ b/test/rexml/test_namespace.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative "rexml_test_utils" require "rexml/document" diff --git a/test/rexml/test_order.rb b/test/rexml/test_order.rb index 0e84961b37..807d9faa96 100644 --- a/test/rexml/test_order.rb +++ b/test/rexml/test_order.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'rexml_test_utils' require 'rexml/document' begin diff --git a/test/rexml/test_preceding_sibling.rb b/test/rexml/test_preceding_sibling.rb index 54fdd5b22e..d89a1e1c90 100644 --- a/test/rexml/test_preceding_sibling.rb +++ b/test/rexml/test_preceding_sibling.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # ISSUE 32 require 'test/unit' require 'rexml/document' diff --git a/test/rexml/test_pullparser.rb b/test/rexml/test_pullparser.rb index db336a16e5..31b5b74bd6 100644 --- a/test/rexml/test_pullparser.rb +++ b/test/rexml/test_pullparser.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require 'rexml/parsers/pullparser' diff --git a/test/rexml/test_rexml_issuezilla.rb b/test/rexml/test_rexml_issuezilla.rb index bb634663d5..1c54c9d53d 100644 --- a/test/rexml/test_rexml_issuezilla.rb +++ b/test/rexml/test_rexml_issuezilla.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative 'rexml_test_utils' require 'rexml/document' diff --git a/test/rexml/test_sax.rb b/test/rexml/test_sax.rb index 2d37ec9dfb..00539f0d4c 100644 --- a/test/rexml/test_sax.rb +++ b/test/rexml/test_sax.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative "rexml_test_utils" require 'rexml/sax2listener' require 'rexml/parsers/sax2parser' diff --git a/test/rexml/test_stream.rb b/test/rexml/test_stream.rb index 3164d91c91..d7ceedc70e 100644 --- a/test/rexml/test_stream.rb +++ b/test/rexml/test_stream.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require "rexml/document" require 'rexml/streamlistener' diff --git a/test/rexml/test_text.rb b/test/rexml/test_text.rb index 52ee11ef78..3f8036eee3 100644 --- a/test/rexml/test_text.rb +++ b/test/rexml/test_text.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "rexml/text" module REXMLTests diff --git a/test/rexml/test_ticket_80.rb b/test/rexml/test_ticket_80.rb index ffeece5692..ab6a57efaf 100644 --- a/test/rexml/test_ticket_80.rb +++ b/test/rexml/test_ticket_80.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #------------------------------------------------------------------------------ # file: rexml_test.rb # desc: test's REXML's XML/XPath implementation diff --git a/test/rexml/test_validation_rng.rb b/test/rexml/test_validation_rng.rb index 8989fe2cbf..b5b50450e0 100644 --- a/test/rexml/test_validation_rng.rb +++ b/test/rexml/test_validation_rng.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require "rexml/document" diff --git a/test/rexml/test_xml_declaration.rb b/test/rexml/test_xml_declaration.rb index a96d40c542..a4d97c41d0 100644 --- a/test/rexml/test_xml_declaration.rb +++ b/test/rexml/test_xml_declaration.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false # # Created by Henrik MÃ¥rtensson on 2007-02-18. # Copyright (c) 2007. All rights reserved. diff --git a/test/rexml/xpath/test_attribute.rb b/test/rexml/xpath/test_attribute.rb index 95af4de399..9304db4e0d 100644 --- a/test/rexml/xpath/test_attribute.rb +++ b/test/rexml/xpath/test_attribute.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit' require 'rexml/document' diff --git a/test/rexml/xpath/test_axis_preceding_sibling.rb b/test/rexml/xpath/test_axis_preceding_sibling.rb index 273180772a..5842c6bc50 100644 --- a/test/rexml/xpath/test_axis_preceding_sibling.rb +++ b/test/rexml/xpath/test_axis_preceding_sibling.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require "rexml/document" diff --git a/test/rexml/xpath/test_base.rb b/test/rexml/xpath/test_base.rb index a57ba632c4..5079fdd75a 100644 --- a/test/rexml/xpath/test_base.rb +++ b/test/rexml/xpath/test_base.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require_relative "../rexml_test_utils" require "rexml/document" diff --git a/test/rexml/xpath/test_node.rb b/test/rexml/xpath/test_node.rb index aec2de1cfe..e0e958e70f 100644 --- a/test/rexml/xpath/test_node.rb +++ b/test/rexml/xpath/test_node.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false require_relative "../rexml_test_utils" diff --git a/test/rexml/xpath/test_predicate.rb b/test/rexml/xpath/test_predicate.rb index 287e131c54..ce1aaa324b 100644 --- a/test/rexml/xpath/test_predicate.rb +++ b/test/rexml/xpath/test_predicate.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "test/unit/testcase" require "rexml/document" require "rexml/xpath" diff --git a/test/rexml/xpath/test_text.rb b/test/rexml/xpath/test_text.rb index 46aba3c2ef..03afe9667c 100644 --- a/test/rexml/xpath/test_text.rb +++ b/test/rexml/xpath/test_text.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'test/unit' require 'rexml/document' require 'rexml/element' |