Skip to content

Time argument matcher for should_receive

gitlab-qa-bot requested to merge github/fork/kirs/time-matcher into master

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))

Merge request reports