“We are using
- Sounds intense! No answers, though.
It’s not possible to stub a delegated method; stub it on the object
delegated to instead.
In order to get an accurate number of days since the epoch, do this:
(Time.now.to_f / 60 / 60 / 24).round. The key here is the
to_ito prevent losing precision early on.