Sha256: d7182af83a38e87f51e7da14265beafc21d778fdd895f9e5e552fdd22436f018

Contents?: true

Size: 225 Bytes

Versions: 9

Compression:

Stored size: 225 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paper_trail-4.2.0 test/time_travel_helper.rb
paper_trail-4.1.0 test/time_travel_helper.rb
paper_trail-4.0.2 test/time_travel_helper.rb
paper_trail-4.0.1 test/time_travel_helper.rb
paper_trail-4.0.0 test/time_travel_helper.rb
paper_trail-4.0.0.rc2 test/time_travel_helper.rb
paper_trail-4.0.0.rc1 test/time_travel_helper.rb
paper_trail-4.0.0.beta2 test/time_travel_helper.rb
paper_trail-4.0.0.beta1 test/time_travel_helper.rb