[rspec-users] Odd Date-based spec failing

Matt Darby matt at matt-darby.com
Tue Jul 1 11:21:52 EDT 2008


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.

Hrm, quite interesting there. So would this be considered a Rails issue?


More information about the rspec-users mailing list