spec/minitest_helper.rb
# Public: Returns an array of the values of nodes in an xml payload.
#
# node_name - xml node name, for example: NIletter
#
# Returns an Array
Returns an array of the values of nodes in an xml payload.
node_name - xml node name, for example: NIletter

Returns an Array
Returns an array of the values of nodes in an xml payload . node_name - xml node name for example : NIletter Returns an Array
def value_of_nodes(node_name)
  ns = nodes(node_name)
  ns.map do |n|
    raise "failed to find #{node_name.inspect} in #{subject.inspect}" if n.nil?
    n.content
  end
end
def value_of_nodes ( node_name ) ns = nodes ( node_name ) ns . map do | n | raise "failed to find #{node_name.inspect} in #{subject.inspect}" if n . nil? n . content end end
Public: Returns an array of the values of nodes in an xml payload.
Public : Returns an array of the values of nodes in an xml payload .
node_name