Skip to content

Time Mocking Support

Jeff Felchner edited this page Apr 24, 2016 · 2 revisions

When mocking time, the concept of when now is becomes distorted. You can imagine that because ruby-progressbar tracks elapsed and estimated times, if it used the mocked version of now the results would be very undesirable. But, if you use one of our supported Ruby time mocking libraries, your elapsed and estimated times will always appear correctly. Currently supported are: