From 0bb9b3e9ad27afdff0c051cdb225700534b2729a Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Mon, 15 Mar 2010 09:31:17 -0500 Subject: [PATCH] Fix test for daylight saving time --- spec/job_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/job_spec.rb b/spec/job_spec.rb index 915caac16..d04afb4a1 100644 --- a/spec/job_spec.rb +++ b/spec/job_spec.rb @@ -21,7 +21,7 @@ context "db_time_now" do it "should return time in current time zone if set" do Time.zone = 'Eastern Time (US & Canada)' - Delayed::Job.db_time_now.zone.should == 'EST' + %w(EST EDT).should include(Delayed::Job.db_time_now.zone) end it "should return UTC time if that is the AR default" do @@ -33,7 +33,7 @@ it "should return local time if that is the AR default" do Time.zone = 'Central Time (US & Canada)' ActiveRecord::Base.default_timezone = :local - Delayed::Job.db_time_now.zone.should == 'CST' + %w(CST CDT).should include(Delayed::Job.db_time_now.zone) end end