Sha256: fec96fb3dd02646d196e630d0fa772aede1b2efe3e4a6bc0e9788b5b38c81075
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'fileutils' require 'logger' FileUtils.mkdir_p(File.dirname(__FILE__) + "/tmp") $:.unshift(File.join(File.dirname(__FILE__), "../lib")) require 'active_record' require 'mongoid' require 'chronic' require 'timecop' require 'by_star' # Specs should pass regardless of timezone Time.zone = %w(Asia/Tokyo America/New_York Australia/Sydney UTC).sample puts "Running specs in #{Time.zone} timezone..." # Set Rails time to 2014-01-01 00:00:00 Timecop.travel(Time.zone.local(2014)) RSpec.configure do |c| c.filter_run_excluding sydney: true unless Time.zone.name == 'Australia/Sydney' end def testing_mongoid? ENV['DB'] == 'mongodb' end def testing_active_record? !testing_mongoid? end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
by_star-4.0.1 | spec/spec_helper.rb |