[Nitro] Og fixtures for Time class

TRANS transfire at gmail.com
Sat Dec 24 00:34:16 EST 2005

On 12/19/05, Humber Aquino <humberaquino at gmail.com> wrote:
> Hi everyone! I'm having a little problem with the fixtures..

You've probably alrady figured this out, bu just in case.... it looks
like it's a mater of the YAML not converting to a time. Look at this
irb session:

irb(main):013:0> y = %q{
irb(main):014:0' ---
irb(main):015:0' a: 2005-10-11
irb(main):016:0' b: 2005-10-11 09:00:00
irb(main):017:0' }
=> "\n---\na: 2005-10-11\nb: 2005-10-11 09:00:00\n"
irb(main):018:0> YAML::load(y)
=> {"a"=>#<Date: 4907309/2,0,2299161>, "b"=>"2005-10-11 09:00:00"}


More information about the Nitro-general mailing list