Module: ExpoTurbo::Rails::Testing
- Defined in:
- lib/expo_turbo/rails/testing.rb
Defined Under Namespace
Classes: XmlParseError
Class Method Summary collapse
Class Method Details
.parse_document(xml) ⇒ Object
14 15 16 17 18 |
# File 'lib/expo_turbo/rails/testing.rb', line 14 def parse_document(xml) XmlFragments.parse_document(xml) rescue XmlFragments::ParseError => error raise XmlParseError, error., cause: nil end |
.parse_stream_fragment(xml) ⇒ Object
20 21 22 23 24 |
# File 'lib/expo_turbo/rails/testing.rb', line 20 def parse_stream_fragment(xml) XmlFragments.parse_stream_fragment(xml, root_name: STREAM_FRAGMENT_ROOT) rescue XmlFragments::ParseError => error raise XmlParseError, error., cause: nil end |