mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
added time zone config for Time class needed when running specs using
vendored rails
This commit is contained in:
parent
b019f87625
commit
f30b09cf5b
@ -18,6 +18,8 @@ else
|
||||
puts "Using gem Rails version #{Rails::VERSION::STRING}"
|
||||
end
|
||||
|
||||
Time.zone_default = Time.send!(:get_zone, 'UTC')
|
||||
|
||||
require 'validates_timeliness'
|
||||
|
||||
ActiveRecord::Base.establish_connection({:adapter => 'sqlite3', :database => ':memory:'})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user