Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f625b87f241a6a002274bd01750796985d6e0d8d 1 parent 63039b9
@miloops miloops authored josevalim committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.