X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/550c4a3a45814fde5c809334c85f1ebc47659a82..bc71737f052473615935f5f169a3b8e4fba229a6:/test/helpers/application_helper_test.rb?ds=sidebyside 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)