aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/date_helper_test.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-22 14:50:08 -0300
committerJosé Valim <jose.valim@gmail.com>2010-09-24 15:51:29 +0200
commitf625b87f241a6a002274bd01750796985d6e0d8d (patch)
tree6dddf6118bc610d72c8f4079da902c76c48c175d /actionpack/test/template/date_helper_test.rb
parent63039b9c3356f73421b3742134959014d81973b0 (diff)
downloadrails-f625b87f241a6a002274bd01750796985d6e0d8d.tar.gz
rails-f625b87f241a6a002274bd01750796985d6e0d8d.tar.bz2
rails-f625b87f241a6a002274bd01750796985d6e0d8d.zip
These tests shouldn't depend on local time to pass or fail, we can use utc here.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/template/date_helper_test.rb')
-rw-r--r--actionpack/test/template/date_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/date_helper_test.rb b/actionpack/test/template/date_helper_test.rb
index 0d9508dfe8..ea7c096b97 100644
--- a/actionpack/test/template/date_helper_test.rb
+++ b/actionpack/test/template/date_helper_test.rb
@@ -99,7 +99,7 @@ class DateHelperTest < ActionView::TestCase
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