2011-10-29 16:19:11 +04:00
|
|
|
#-- encoding: UTF-8
|
2011-05-30 00:11:52 +04:00
|
|
|
#-- copyright
|
|
|
|
# ChiliProject is a project management system.
|
2011-05-30 22:52:25 +04:00
|
|
|
#
|
2011-05-30 00:11:52 +04:00
|
|
|
# Copyright (C) 2010-2011 the ChiliProject Team
|
2011-05-30 22:52:25 +04:00
|
|
|
#
|
2010-09-29 00:19:55 +04:00
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
2011-05-30 22:52:25 +04:00
|
|
|
#
|
2011-05-30 00:11:52 +04:00
|
|
|
# See doc/COPYRIGHT.rdoc for more details.
|
|
|
|
#++
|
2010-12-13 02:24:34 +03:00
|
|
|
require File.expand_path('../../../../test_helper', __FILE__)
|
2010-09-29 00:19:55 +04:00
|
|
|
|
|
|
|
class Redmine::NotifiableTest < ActiveSupport::TestCase
|
|
|
|
def setup
|
|
|
|
end
|
|
|
|
|
2010-09-29 01:09:06 +04:00
|
|
|
def test_all
|
2011-03-04 17:32:58 +03:00
|
|
|
assert_equal 12, Redmine::Notifiable.all.length
|
2010-09-29 00:19:55 +04:00
|
|
|
|
2011-03-04 17:32:58 +03:00
|
|
|
%w(issue_added issue_updated issue_note_added issue_status_updated issue_priority_updated news_added news_comment_added document_added file_added message_posted wiki_content_added wiki_content_updated).each do |notifiable|
|
2010-09-29 01:09:06 +04:00
|
|
|
assert Redmine::Notifiable.all.collect(&:name).include?(notifiable), "missing #{notifiable}"
|
2010-09-29 00:19:55 +04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|