3 ms·
eek. Time tests should be using something like https://github.com/travisjeffery/timecop https://github.com/travisjeffery/timecop for repeatability. If you do me
by bazzargh 11y ago
eek. Time tests should be using something like https://github.com/travisjeffery/timecop https://github.com/travisjeffery/timecop for repeatability. If you do mean to allow random starting values like that, you should look into property-based testing http://www.troikatech.com/blog/2014/04/02/property-based-testing-in-ruby http://www.troikatech.com/blog/2014/04/02/property-based-tes... - test hundreds of possible values at a time, instead of just the one time you ran the tests at.