Skip to content
This repository
Browse code

These tests shouldn't depend on local time to pass or fail, we can us…

…e utc here.

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit f625b87f241a6a002274bd01750796985d6e0d8d 1 parent 63039b9
Emilio Tagua authored September 22, 2010 josevalim committed September 24, 2010
2  actionpack/test/template/date_helper_i18n_test.rb
@@ -5,7 +5,7 @@ class DateHelperDistanceOfTimeInWordsI18nTests < Test::Unit::TestCase
5 5
   attr_reader :request
6 6
 
7 7
   def setup
8  
-    @from = Time.mktime(2004, 6, 6, 21, 45, 0)
  8
+    @from = Time.utc(2004, 6, 6, 21, 45, 0)
9 9
   end
10 10
 
11 11
   # distance_of_time_in_words
2  actionpack/test/template/date_helper_test.rb
@@ -99,7 +99,7 @@ def assert_distance_of_time_in_words(from, to=nil)
99 99
   end
100 100
 
101 101
   def test_distance_in_words
102  
-    from = Time.mktime(2004, 6, 6, 21, 45, 0)
  102
+    from = Time.utc(2004, 6, 6, 21, 45, 0)
103 103
     assert_distance_of_time_in_words(from)
104 104
   end
105 105
 

0 notes on commit f625b87

Please sign in to comment.
Something went wrong with that request. Please try again.