X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/685df702ef6f3e8feac2dca08808cd9ace066a0d..23fa74823a66df95330f75f9bfd5cb2bffcb2505:/test/models/message_test.rb diff --git a/test/models/message_test.rb b/test/models/message_test.rb index e2d87136e..285222f1e 100644 --- a/test/models/message_test.rb +++ b/test/models/message_test.rb @@ -1,9 +1,6 @@ -# -*- coding: utf-8 -*- require "test_helper" class MessageTest < ActiveSupport::TestCase - api_fixtures - EURO = "\xe2\x82\xac".freeze # euro symbol def test_check_empty_message_fails @@ -67,10 +64,8 @@ class MessageTest < ActiveSupport::TestCase # its OK to accept invalid UTF-8 as long as we return it unmodified. db_msg = msg.class.find(msg.id) assert_equal char, db_msg.title, "Database silently truncated message title" - rescue ArgumentError => ex assert_equal ex.to_s, "invalid byte sequence in UTF-8" - end end end