X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f381ff6fb2411c0edf0aa709860a26c72b6c9d18..99c54bc5b6c06f9457d45cdd42bd078b20ffb779:/test/models/message_test.rb?ds=sidebyside 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