I am writing some tests (as I should) for some code that parses XML.

The XML (snippet):

<datecreate>02/02/10 10:34:33</datecreate>
<datemodify>02/02/10 11:34:24</datemodify>

gets parsed and converted to:

{
 :created_at => '2010-02-02 10:34:33',
 :updated_at => '2010-02-02 11:34:24'
}

if I .inspect the returned hash (in the test) from the function all is
well, but when I run a test comparing with the expected values it
fails thus (snippet):

at top level in :updated_at=>"2010-02-02 11 at line 34
at top level in :created_at=>"2010-02-02 10 at line 34

If I replace : with a . in the date conversion function, and change
the expected hash in the test it is fine.

Something does not like ':'.

Any ideas?

cheers,

Richard

-- 
You received this message because you are subscribed to the Google Groups 
"WellRailed" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wellrailed?hl=en.

Reply via email to