[rspec-users] Odd Date-based spec failing

Matt Darby matt at matt-darby.com
Thu Jul 3 08:27:17 EDT 2008


On Jul 1, 11:21 am, Matt Darby <m... at matt-darby.com> wrote:
> On Jul 1, 2008, at 8:23 AM, Tom Stuart wrote:
>
> > $ ./script/console
> > >> Date.today.minus_with_duration(5.days)
> > => Thu, 26 Jun 2008
> > >> Date.today.minus_without_duration(5.days.to_i)
> > => Sun, 17 Sep 0825
>
> > Is this a load-order problem? Perhaps  
> > ActiveSupport::CoreExtensions::Date::Calculations isn't kicking in  
> > correctly.

Anyone else have thoughts on this?


More information about the rspec-users mailing list