[Rails] Inconsistent Hash#to_xml Method

2010-02-11 Thread TomRossi7
I have a unit test that demonstrates some inconsistent behavior with a Hash being converted to XML with the :root option. Sometimes it works fine: Hash.new.to_xml(:root = 'test') ?xml version=\1.0\ encoding=\UTF-8\?\ntest\n/test\n But sometimes I get an argument error: Hash.new.to_xml(:root =

Re: [Rails] Inconsistent Hash#to_xml Method

2010-02-11 Thread Peter De Berdt
On 11 Feb 2010, at 15:43, TomRossi7 wrote: I have a unit test that demonstrates some inconsistent behavior with a Hash being converted to XML with the :root option. Sometimes it works fine: Hash.new.to_xml(:root = 'test') ?xml version=\1.0\ encoding=\UTF-8\?\ntest\n/test\n But sometimes I