[rspec-users] DateTime.now.utc in fixtures

J. B. Rainsberger jbrainsberger at gmail.com
Tue Oct 12 05:57:02 EDT 2010

Russell Quinn wrote:

> I have the following in my fixtures:
> publish_date:<%= DateTime.now.utc - 1.day %>
> But 'DateTime.now.utc' always evaluates to my system time. Does anyone
> have any ideas?

You might not like it, but what about fixing the date?
J. B. Rainsberger :: http://www.jbrains.ca ::

More information about the rspec-users mailing list