mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 17:26:06 +01:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user