annotate test/unit/lib/redmine/notifiable_test.rb @ 864:2465362d1b56 bug_145

Close obsolete branch bug_145
author Chris Cannam
date Wed, 11 May 2011 11:57:41 +0100
parents 94944d00e43c
children af80e5618e9b
rev   line source
chris@37 1 # redMine - project management software
chris@37 2 # Copyright (C) 2006-2008 Jean-Philippe Lang
chris@37 3 #
chris@37 4 # This program is free software; you can redistribute it and/or
chris@37 5 # modify it under the terms of the GNU General Public License
chris@37 6 # as published by the Free Software Foundation; either version 2
chris@37 7 # of the License, or (at your option) any later version.
chris@37 8 #
chris@37 9 # This program is distributed in the hope that it will be useful,
chris@37 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
chris@37 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
chris@37 12 # GNU General Public License for more details.
chris@37 13 #
chris@37 14 # You should have received a copy of the GNU General Public License
chris@37 15 # along with this program; if not, write to the Free Software
chris@37 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
chris@37 17
chris@37 18 require File.dirname(__FILE__) + '/../../../test_helper'
chris@37 19
chris@37 20 class Redmine::NotifiableTest < ActiveSupport::TestCase
chris@37 21 def setup
chris@37 22 end
chris@37 23
chris@37 24 def test_all
chris@37 25 assert_equal 11, Redmine::Notifiable.all.length
chris@37 26
chris@37 27 %w(issue_added issue_updated issue_note_added issue_status_updated issue_priority_updated news_added document_added file_added message_posted wiki_content_added wiki_content_updated).each do |notifiable|
chris@37 28 assert Redmine::Notifiable.all.collect(&:name).include?(notifiable), "missing #{notifiable}"
chris@37 29 end
chris@37 30 end
chris@37 31 end