What happened to the (dynamic) fixtures?


#1

Hi, i’ve a fixture with some ruby code, something like this:

first:
attr1: text
attr2: <%= 3.days.ago %>

But now the <&= 3.days.ago %> doesn’t return anymore the correct value,
but nil.
What happened? How can i put some dynamic text into the fixtures like N
days ago ?
Thanks


#2

Found, it’s kind a bug… with a datetime attribute in the fixture the
value must converted to the db format (to_s(:db)), otherwise a simple
Time.now would return nil