X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e5cbe87ed37f9cba8224fa4049047d7f981f66a..bc71737f052473615935f5f169a3b8e4fba229a6:/test/helpers/application_helper_test.rb diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 06c1c09f8..7cd6bce89 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -56,7 +56,7 @@ class ApplicationHelperTest < ActionView::TestCase end def test_friendly_date - date = friendly_date(Time.new(2014, 3, 5, 18, 58, 23).utc) + date = friendly_date(Time.utc(2014, 3, 5, 18, 58, 23)) assert_match %r{^.*$}, date date = friendly_date(Time.now.utc - 1.hour)