Added symbol to roundtrip tests.
This commit is contained in:
parent
341fe3d90f
commit
72f7184dd4
|
@ -44,6 +44,8 @@ class XMLToRuby
|
||||||
e.text.to_f
|
e.text.to_f
|
||||||
when 'string', 'code'
|
when 'string', 'code'
|
||||||
e.text.to_s
|
e.text.to_s
|
||||||
|
when 'symbol'
|
||||||
|
e.text.to_s.intern
|
||||||
when 'boolean'
|
when 'boolean'
|
||||||
e.text.to_s == 'true'
|
e.text.to_s == 'true'
|
||||||
when 'array'
|
when 'array'
|
||||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
<twonk>
|
<twonk>
|
||||||
<meta/>
|
<meta/>
|
||||||
<doc>
|
<doc>
|
||||||
<oid name="_id">4ea067497065180748000000</oid>
|
<oid name="_id">33dc67499236d9a01a000000</oid>
|
||||||
<int name="an_int">42</int>
|
<int name="an_int">42</int>
|
||||||
<string name="a_string">foo</string>
|
<string name="a_string">foo</string>
|
||||||
<boolean name="truthiness">true</boolean>
|
<boolean name="truthiness">true</boolean>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<date name="now">1231515664416</date>
|
<date name="now">1231515664416</date>
|
||||||
<ref name="dbref">
|
<ref name="dbref">
|
||||||
<ns>namespace</ns>
|
<ns>namespace</ns>
|
||||||
<oid>4ea067497065180748010000</oid>
|
<oid>33dc67499236d9a01a010000</oid>
|
||||||
</ref>
|
</ref>
|
||||||
<regex name="regex">
|
<regex name="regex">
|
||||||
<pattern>foobar</pattern>
|
<pattern>foobar</pattern>
|
||||||
|
@ -25,5 +25,6 @@
|
||||||
</regex>
|
</regex>
|
||||||
<null name="a_null_value"></null>
|
<null name="a_null_value"></null>
|
||||||
<code name="$where">this is code</code>
|
<code name="$where">this is code</code>
|
||||||
|
<symbol name="a_symbol">symbol_value</symbol>
|
||||||
</doc>
|
</doc>
|
||||||
</twonk>
|
</twonk>
|
||||||
|
|
Loading…
Reference in New Issue