Sha256: 07a5bdb62f299945562dc02aa8293fe63e36df034bd52d3bd575c8067a161f44
Contents?: true
Size: 323 Bytes
Versions: 20
Compression:
Stored size: 323 Bytes
Contents
### # In our specs, I want to make sure time gets mocked so I can accurately test # times displayed to the user. # class PBTimeTester def self.now ::Time.now end end class ::ProgressBar::Time class << self alias_method :old_now, :now def now(time = ::PBTimeTester) old_now(time) end end end
Version data entries
20 entries across 20 versions & 3 rubygems