Chris@441: # Redmine - project management software Chris@441: # Copyright (C) 2006-2011 Jean-Philippe Lang chris@37: # chris@37: # This program is free software; you can redistribute it and/or chris@37: # modify it under the terms of the GNU General Public License chris@37: # as published by the Free Software Foundation; either version 2 chris@37: # of the License, or (at your option) any later version. Chris@909: # chris@37: # This program is distributed in the hope that it will be useful, chris@37: # but WITHOUT ANY WARRANTY; without even the implied warranty of chris@37: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the chris@37: # GNU General Public License for more details. Chris@909: # chris@37: # You should have received a copy of the GNU General Public License chris@37: # along with this program; if not, write to the Free Software chris@37: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. chris@37: Chris@119: require File.expand_path('../../../../test_helper', __FILE__) chris@37: chris@37: class Redmine::NotifiableTest < ActiveSupport::TestCase chris@37: def setup chris@37: end chris@37: chris@37: def test_all Chris@441: assert_equal 12, Redmine::Notifiable.all.length chris@37: Chris@441: %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| chris@37: assert Redmine::Notifiable.all.collect(&:name).include?(notifiable), "missing #{notifiable}" chris@37: end chris@37: end chris@37: end