Sha256: f41f167d85b44783b61ba80106933820eb92bc696a317c9c2d62a097f80b7550

Contents?: true

Size: 284 Bytes

Versions: 37

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

module XmlSpecHelper
  # Use Ox to dump the pre-rendered Ox marshalled XML into its final format
  # and tidy it up to remove vaguaries that can upset tests.
  def format_xml(raw)
    Ox.dump(raw, indent: -1, skip: :skip_return).tr("\n", " ")
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
renalware-core-2.1.1 spec/support/xml_spec_helper.rb
renalware-core-2.1.0 spec/support/xml_spec_helper.rb
renalware-core-2.0.167 spec/support/xml_spec_helper.rb
renalware-core-2.0.166 spec/support/xml_spec_helper.rb
renalware-core-2.0.165 spec/support/xml_spec_helper.rb
renalware-core-2.0.164 spec/support/xml_spec_helper.rb
renalware-core-2.0.163 spec/support/xml_spec_helper.rb
renalware-core-2.0.162 spec/support/xml_spec_helper.rb
renalware-core-2.0.161 spec/support/xml_spec_helper.rb
renalware-core-2.0.160 spec/support/xml_spec_helper.rb
renalware-core-2.0.159 spec/support/xml_spec_helper.rb
renalware-core-2.0.158 spec/support/xml_spec_helper.rb
renalware-core-2.0.157 spec/support/xml_spec_helper.rb
renalware-core-2.0.156 spec/support/xml_spec_helper.rb
renalware-core-2.0.155 spec/support/xml_spec_helper.rb
renalware-core-2.0.153 spec/support/xml_spec_helper.rb
renalware-core-2.0.152 spec/support/xml_spec_helper.rb
renalware-core-2.0.151 spec/support/xml_spec_helper.rb
renalware-core-2.0.149 spec/support/xml_spec_helper.rb
renalware-core-2.0.148 spec/support/xml_spec_helper.rb