Sha256: ebd6bd68f6e8c7d5712068938398b3d838247ced7cc9d1d9495e986a217e5573
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
require 'rubygems' require 'bundler' require 'simplecov' SimpleCov.start begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'test/unit' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rcron' class Test::Unit::TestCase end # Overrides timings constructs to boost up the test speed # - This might break some test results class Time class << self alias org_now now end def self.now @@first_call ||= Time.org_now return @@first_call + (Time.org_now - @@first_call) * 20 end end def sleep n Kernel.sleep n * 0.05 end Thread.abort_on_exception = false # FIXME: Without this, test fails.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rcron-0.1.2 | test/helper.rb |
rcron-0.1.1 | test/helper.rb |
rcron-0.1.0 | test/helper.rb |