shorten long line of test/unit/lib/redmine/notifiable_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20557 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-12-03 13:20:03 +00:00
parent 2d9d922b47
commit 36c99ba9f1

View File

@@ -24,8 +24,15 @@ class Redmine::NotifiableTest < ActiveSupport::TestCase
end end
def test_all def test_all
%w(issue_added issue_updated issue_note_added issue_status_updated issue_assigned_to_updated issue_priority_updated news_added news_comment_added document_added file_added message_posted wiki_content_added wiki_content_updated).each do |notifiable| %w(issue_added issue_updated issue_note_added issue_status_updated
assert Redmine::Notifiable.all.collect(&:name).include?(notifiable), "missing #{notifiable}" issue_assigned_to_updated issue_priority_updated news_added
news_comment_added document_added file_added
message_posted
wiki_content_added wiki_content_updated).each do |notifiable|
assert(
Redmine::Notifiable.all.collect(&:name).include?(notifiable),
"missing #{notifiable}"
)
end end
end end
end end