jodi at nnovation.ca
Mon Mar 12 16:15:30 EDT 2007
On 12-Mar-07, at 3:52 PM, aslak hellesoy wrote:
> On 3/12/07, Jodi Showers <jodi at nnovation.ca> wrote:
>> 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 sure why you think this is RSpec related.
> Check the RDocs for Date - it has no utc method (but Time does).
I thought my before_filter was succeeding, and rspec wasn't seeing a
lib - or Date was being mocked by rspec.
turns out the simple answer was the before_filter wasn't working. 8->
More information about the rspec-users