Time argument matcher for should_receive
Created by: kirs
I often write something like
object.should_receive(:mymethod).with(3.hours.ago)
But it won't pass.
With this addition it's now possible to write:
object.should_receive(:mymethod).with(time_argument(3.hours.ago))