]> git.openstreetmap.org Git - rails.git/blobdiff - test/helpers/application_helper_test.rb
Bump osm-community-index from 5.5.5 to 5.6.0
[rails.git] / test / helpers / application_helper_test.rb
index 06c1c09f85133fb359e007de5ff5c38902188d8d..7cd6bce89417fb40ae497c1debdc032817d2ab90 100644 (file)
@@ -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{^<span title=" *5 March 2014 at 18:58">.*</span>$}, date
 
     date = friendly_date(Time.now.utc - 1.hour)