Rails oddity: created_at not auto-updated in fixtures
Today I discovered the following Rails oddity.
Models created in a test fixture don’t have their created_at attributes auto-updated. They need to be specified like this:
created_at: <%=Time.now.to_s(:db)%>
Thanks to toretore on #rubyonrails (irc.freenode.net) for this tip.

July 7th, 2007 at 6:00 pm
Nice tip, we are still using fixtures for some specs and this trick is helpfull. Welcome to RubyCorner