Mercurial > hg > soundsoftware-site
annotate test/unit/lib/redmine/.svn/text-base/notifiable_test.rb.svn-base @ 623:a434a588f16c feature_36
More layout fixes
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 24 Aug 2011 15:44:55 +0100 |
parents | cbce1fd3b1b7 |
children |
rev | line source |
---|---|
Chris@441 | 1 # Redmine - project management software |
Chris@441 | 2 # Copyright (C) 2006-2011 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@119 | 18 require File.expand_path('../../../../test_helper', __FILE__) |
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@441 | 25 assert_equal 12, Redmine::Notifiable.all.length |
chris@37 | 26 |
Chris@441 | 27 %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 | 28 assert Redmine::Notifiable.all.collect(&:name).include?(notifiable), "missing #{notifiable}" |
chris@37 | 29 end |
chris@37 | 30 end |
chris@37 | 31 end |