search for: next_duration

Displaying 1 result from an estimated 1 matches for "next_duration".

Did you mean: new_duration
2008 Oct 26
0
daylight savings time difference with rspec?
Hi all, I wanted to check this with you. I have an rspec example that checks the correct expiration date set on an object. The expiration is set in the model with expires_on = Time.now + next_duration[phase] where next_duration can either be in units of seconds or n.days (should be the same thing). n can be 3, 7, 25, or 30 days. in my example I check an interval because the two events are not simultaneous between when the model calls Time.now and when the rspec example calls it: rhs = exp...