]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/browse_controller_test.rb
Fix rubocop Rails/TimeZone warnings
[rails.git] / test / controllers / browse_controller_test.rb
index 9a77e803417c2ac1b7b73f3d182c7ab3baf36e5c..7ad16dcd982ee8020a583c3cbcf5bc97414a0057 100644 (file)
@@ -153,7 +153,7 @@ class BrowseControllerTest < ActionDispatch::IntegrationTest
 
   def test_read_closed_note
     user = create(:user)
-    closed_note = create(:note_with_comments, :status => "closed", :closed_at => Time.now, :comments_count => 2) do |note|
+    closed_note = create(:note_with_comments, :status => "closed", :closed_at => Time.now.utc, :comments_count => 2) do |note|
       create(:note_comment, :event => "closed", :note => note, :author => user)
     end