jodi at nnovation.ca
Mon Mar 12 14:50:43 EDT 2007
I'm having a helluva time getting Date.today.utc to resolve -
"undefined method `utc' for #<Date: 4908343/2,0,2299161>"
model usage in before_create filter is :
activated_at = Date.today.utc
I'm not stubbing out Date (should I be? [ stub(Date, :utc =>
Date.today) didn't help any ].
The before filter is working fine within the app, but rspec isn't
happy. Should I include something particular?
Thanx for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users