From f30b09cf5b0602d22916856835e43eb295066e3a Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Wed, 14 May 2008 11:18:55 +1000 Subject: [PATCH] added time zone config for Time class needed when running specs using vendored rails --- spec/spec_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6abd8ed..691353e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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:'})