X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f6695c9079f4eeeecaa796c879868f797f97cd55..9c04912f1deb7b114c61e838a6e4a4b7775167d8:/test/models/note_comment_test.rb diff --git a/test/models/note_comment_test.rb b/test/models/note_comment_test.rb index 2375ba9d4..21d67dc67 100644 --- a/test/models/note_comment_test.rb +++ b/test/models/note_comment_test.rb @@ -1,12 +1,9 @@ -# -*- coding: utf-8 -*- require "test_helper" class NoteCommentTest < ActiveSupport::TestCase - fixtures :users - def test_event_valid - ok = %w(opened closed reopened commented hidden) - bad = %w(expropriated fubared) + ok = %w[opened closed reopened commented hidden] + bad = %w[expropriated fubared] ok.each do |event| note_comment = create(:note_comment) @@ -22,8 +19,8 @@ class NoteCommentTest < ActiveSupport::TestCase end def test_body_valid - ok = %W(Name vergrößern foo\nbar - ルシステムにも対応します 輕觸搖晃的遊戲) + ok = %W[Name vergrößern foo\nbar + ルシステムにも対応します 輕觸搖晃的遊戲] bad = ["foo\x00bar", "foo\x08bar", "foo\x1fbar", "foo\x7fbar", "foo\ufffebar", "foo\uffffbar"]