class REXMLEngineTest
Public Instance Methods
test_default_is_rexml()
click to toggle source
# File activesupport/test/xml_mini/rexml_engine_test.rb, line 6 def test_default_is_rexml assert_equal ActiveSupport::XmlMini_REXML, ActiveSupport::XmlMini.backend end
test_parse_from_empty_string()
click to toggle source
# File activesupport/test/xml_mini/rexml_engine_test.rb, line 10 def test_parse_from_empty_string assert_equal({}, ActiveSupport::XmlMini.parse("")) end
test_parse_from_frozen_string()
click to toggle source
# File activesupport/test/xml_mini/rexml_engine_test.rb, line 14 def test_parse_from_frozen_string xml_string = "<root></root>".freeze assert_equal({ "root" => {} }, ActiveSupport::XmlMini.parse(xml_string)) end
Private Instance Methods
engine()
click to toggle source
# File activesupport/test/xml_mini/rexml_engine_test.rb, line 20 def engine "REXML" end
expansion_attack_error()
click to toggle source
# File activesupport/test/xml_mini/rexml_engine_test.rb, line 24 def expansion_attack_error RuntimeError end