X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/03cde71a5ee0fcbf4aa07c94bc973f5ab2a90292..84844514fd691def2be3d451ca08e24e33ab9108:/test/controllers/messages_controller_test.rb diff --git a/test/controllers/messages_controller_test.rb b/test/controllers/messages_controller_test.rb index c3d764578..1193d3b25 100644 --- a/test/controllers/messages_controller_test.rb +++ b/test/controllers/messages_controller_test.rb @@ -191,7 +191,7 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest m = Message.last assert_equal user.id, m.from_user_id assert_equal recipient_user.id, m.to_user_id - assert_in_delta Time.now, m.sent_on, 2 + assert_in_delta Time.now.utc, m.sent_on, 2 assert_equal "Test Message", m.title assert_equal "Test message body", m.body assert_equal "markdown", m.body_format