soulcutter/saxerator

Attributes hashes should respect symbolize keys

soulcutter opened this issue · 1 comments

e.g.

xml = <<-XML
<params>
  <param name="Color">blue</param>
  <param name="Collection">Winter 2014/2015</param>
</params>
XML
parser = Saxerator.parser(xml) do |config|
  config.output_type = :hash
  config.symbolize_keys!
end

parser.for_tag(:param).each do |param|
  param.attributes # => { "name" => "Color" } SHOULD BE { :name => "Color" }
end

Fixed by #23