class XmlMiniTest::ToTagTest

Public Instance Methods

assert_xml(xml) click to toggle source
# File activesupport/test/xml_mini_test.rb, line 62
def assert_xml(xml)
  assert_equal xml, @options[:builder].target!
end
setup() click to toggle source
# File activesupport/test/xml_mini_test.rb, line 66
def setup
  @xml = ActiveSupport::XmlMini
  @options = { skip_instruct: true, builder: Builder::XmlMarkup.new }
end
to_xml(options) click to toggle source
# File activesupport/test/xml_mini_test.rb, line 84
def to_xml(options) options[:builder].yo(options[:root].to_s) end