X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b70da7b8ea15ab48bb2f34155567cea6dffc8fc9..d3b67140313c26ad431c67ab1d56203aa41f77c7:/test/controllers/messages_controller_test.rb diff --git a/test/controllers/messages_controller_test.rb b/test/controllers/messages_controller_test.rb index c3d764578..ca17401fd 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 @@ -220,7 +220,7 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest :message => { :title => "Test Message", :body => "Test message body" }) assert_response :success assert_template "new" - assert_select ".error", /wait a while/ + assert_select ".alert.alert-danger", /wait a while/ end end end