From 5483de0cc345772eb22a461c4509a0bd072863a9 Mon Sep 17 00:00:00 2001 From: Geoff Buesing Date: Tue, 11 Mar 2008 07:19:36 +0000 Subject: Fix Numeric time tests broken by DST change by anchoring them to fixed times instead of Time.now. Anchor TimeZone#now DST test to time specified with Time.at instead of Time.local to work around platform differences with Time.local and DST representation git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9009 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/core_ext/numeric_ext_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/test/core_ext/numeric_ext_test.rb') diff --git a/activesupport/test/core_ext/numeric_ext_test.rb b/activesupport/test/core_ext/numeric_ext_test.rb index 35f90aa776..5401ed7c7e 100644 --- a/activesupport/test/core_ext/numeric_ext_test.rb +++ b/activesupport/test/core_ext/numeric_ext_test.rb @@ -2,8 +2,8 @@ require 'abstract_unit' class NumericExtTimeAndDateTimeTest < Test::Unit::TestCase def setup - @now = Time.now - @dtnow = DateTime.now + @now = Time.local(2005,2,10,15,30,45) + @dtnow = DateTime.civil(2005,2,10,15,30,45) @seconds = { 1.minute => 60, 10.minutes => 600, -- cgit v1.2.3