summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-28 21:09:06 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-28 21:09:06 +0000
commit26ef9da02b7ef7550712317ad050e5a2f31744c6 (patch)
tree2bd63ea6bb64aca39a733ca598253c48aa57e72d /test
parent4c9f261a245b256ecd299801583ad23bb6921ec2 (diff)
downloadredmine-26ef9da02b7ef7550712317ad050e5a2f31744c6.tar.gz
redmine-26ef9da02b7ef7550712317ad050e5a2f31744c6.zip
Changed the notifications to use a hierarchy UI
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4222 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/notifiable_test.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/unit/lib/redmine/notifiable_test.rb b/test/unit/lib/redmine/notifiable_test.rb
index acfe6be5f..494d16b95 100644
--- a/test/unit/lib/redmine/notifiable_test.rb
+++ b/test/unit/lib/redmine/notifiable_test.rb
@@ -21,18 +21,11 @@ class Redmine::NotifiableTest < ActiveSupport::TestCase
def setup
end
- def test_included_core_notifications
- assert_equal 11, Redmine::Notifiable::CoreNotifications.length
- Redmine::Notifiable::CoreNotifications.length
+ def test_all
+ assert_equal 11, Redmine::Notifiable.all.length
%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|
- assert Redmine::Notifiable::CoreNotifications.include?(notifiable), "missing #{notifiable}"
- end
- end
-
- def test_all_should_include_all_of_the_core_notifications
- Redmine::Notifiable::CoreNotifications.each do |notifiable|
- assert Redmine::Notifiable.all.include?(notifiable), "missing #{notifiable} in #all"
+ assert Redmine::Notifiable.all.collect(&:name).include?(notifiable), "missing #{notifiable}"
end
end
end