Permalink
Browse files

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...
1 parent 63039b9 commit f625b87f241a6a002274bd01750796985d6e0d8d @miloops miloops committed with josevalim Sep 22, 2010
View
2 actionpack/test/template/date_helper_i18n_test.rb
@@ -5,7 +5,7 @@ class DateHelperDistanceOfTimeInWordsI18nTests < Test::Unit::TestCase
attr_reader :request
def setup
- @from = Time.mktime(2004, 6, 6, 21, 45, 0)
+ @from = Time.utc(2004, 6, 6, 21, 45, 0)
end
# distance_of_time_in_words
View
2 actionpack/test/template/date_helper_test.rb
@@ -99,7 +99,7 @@ def assert_distance_of_time_in_words(from, to=nil)
end
def test_distance_in_words
- from = Time.mktime(2004, 6, 6, 21, 45, 0)
+ from = Time.utc(2004, 6, 6, 21, 45, 0)
assert_distance_of_time_in_words(from)
end

0 comments on commit f625b87

Please sign in to comment.