Permalink
Browse files

Fix test for daylight saving time

  • Loading branch information...
1 parent 98b0f90 commit 0bb9b3e9ad27afdff0c051cdb225700534b2729a @bkeepers bkeepers committed Mar 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/job_spec.rb
View
@@ -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

0 comments on commit 0bb9b3e

Please sign in to comment.