Skip to content

Commit

Permalink
Fix test for daylight saving time
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 15, 2010
1 parent 98b0f90 commit 0bb9b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/job_spec.rb
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 0bb9b3e

Please sign in to comment.