X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..2e1ccafdce30a06fab7a72e5c856ce8a6c23bfdd:/test/models/note_comment_test.rb diff --git a/test/models/note_comment_test.rb b/test/models/note_comment_test.rb index 9f10a62de..323a827c0 100644 --- a/test/models/note_comment_test.rb +++ b/test/models/note_comment_test.rb @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -require 'test_helper' +require "test_helper" class NoteCommentTest < ActiveSupport::TestCase fixtures :users, :notes, :note_comments @@ -22,8 +22,8 @@ class NoteCommentTest < ActiveSupport::TestCase end def test_body_valid - ok = ["Name", "vergrößern", "foo\x0abar", - "ルシステムにも対応します", "輕觸搖晃的遊戲"] + ok = %W(Name vergrößern foo\nbar + ルシステムにも対応します 輕觸搖晃的遊戲) bad = ["foo\x00bar", "foo\x08bar", "foo\x1fbar", "foo\x7fbar", "foo\ufffebar", "foo\uffffbar"]