1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/test/time_travel_helper.rb
2014-11-04 12:20:37 +11:00

15 lines
No EOL
225 B
Ruby

if RUBY_VERSION < "1.9.2"
require 'delorean'
class Timecop
def self.travel(t)
Delorean.time_travel_to t
end
def self.return
Delorean.back_to_the_present
end
end
else
require 'timecop'
end